/*
Theme Name: PhamHo Academic Scholar
Theme URI: https://phamho.com
Author: Assoc. Prof. Pham Vu Phi Ho, Ph.D.
Author URI: https://phamho.com
Description: Premium Academic & Scholar Theme for Assoc. Prof. Pham Vu Phi Ho, Ph.D. - President of AsiaCALL, IUH Faculty of Foreign Languages. Features bilingual research portfolio, Scopus/ISI indexing, and AI Assistant integration.
Version: 2.3.0
License: GNU General Public License v2 or later
Text Domain: phamho-academic
*/

/* ==========================================================================
   PHAMHO.COM - ACADEMIC & SCHOLAR PORTFOLIO DESIGN SYSTEM
   Assoc. Prof. Pham Vu Phi Ho, Ph.D.
   ========================================================================== */

:root {
  /* Color Palette */
  --primary: #0f2b48;
  --primary-light: #1b3d63;
  --primary-dark: #08182b;
  --accent: #d4af37;
  --accent-light: #e6ca65;
  --accent-dark: #b89320;
  --accent-gold-gradient: linear-gradient(135deg, #d4af37 0%, #f39c12 100%);
  --hero-gradient: linear-gradient(135deg, #0b1f36 0%, #15385e 50%, #1a426f 100%);
  
  /* Neutral tones */
  --bg-body: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #ffffff;
  --bg-subtle: #f1f5f9;
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  
  /* Status & Badges */
  --badge-scopus-bg: #e0f2fe;
  --badge-scopus-text: #0369a1;
  --badge-isi-bg: #fef3c7;
  --badge-isi-text: #92400e;
  --badge-book-bg: #f3e8ff;
  --badge-book-text: #6b21a8;
  --badge-spiritual-bg: #dcfce7;
  --badge-spiritual-text: #15803d;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 12px -2px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.1);
  --shadow-xl: 0 20px 35px -5px rgba(15, 23, 42, 0.12);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.25);

  /* Dimensions */
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --container-max: 1200px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark Mode Theme */
[data-theme="dark"] {
  --primary: #60a5fa;
  --primary-light: #93c5fd;
  --primary-dark: #3b82f6;
  --bg-body: #090e17;
  --bg-surface: #111a28;
  --bg-surface-elevated: #182436;
  --bg-subtle: #152030;
  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-light: #64748b;
  --border-color: #233348;
  --border-light: #1a2738;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.6);
  --shadow-xl: 0 20px 35px rgba(0, 0, 0, 0.7);

  --badge-scopus-bg: #0c4a6e;
  --badge-scopus-text: #bae6fd;
  --badge-isi-bg: #78350f;
  --badge-isi-text: #fde68a;
  --badge-book-bg: #581c87;
  --badge-book-text: #e9d5ff;
  --badge-spiritual-bg: #14532d;
  --badge-spiritual-text: #bbf7d0;
}

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

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

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s ease, color 0.3s ease;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

p {
  margin-bottom: 1rem;
}

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

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

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ==========================================================================
   NAVIGATION BAR
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-color);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: var(--transition);
}

[data-theme="dark"] .site-header {
  background-color: rgba(17, 26, 40, 0.9);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
  height: 64px;
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1.25rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  object-fit: cover;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.brand-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.01em;
  white-space: nowrap;
  line-height: 1.2;
}

.brand-subtitle {
  font-size: 0.68rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  margin-top: 0.15rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 1.25vw, 1.35rem);
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.nav-link {
  font-size: 0.885rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 0.4rem 0.2rem;
  position: relative;
  white-space: nowrap;
  display: inline-block;
  letter-spacing: -0.01em;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

[data-theme="dark"] .nav-link:hover, [data-theme="dark"] .nav-link.active {
  color: var(--accent);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2.5px;
  background: var(--accent-gold-gradient);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle, .search-trigger-btn, .mobile-toggle {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.theme-toggle:hover, .search-trigger-btn:hover, .mobile-toggle:hover {
  background: var(--border-color);
  transform: translateY(-1px);
}

.mobile-toggle {
  display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  background: var(--hero-gradient);
  color: #ffffff;
  padding: 5rem 0 4.5rem;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(212, 175, 55, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #fef08a;
  padding: 0.35rem 0.85rem;
  border-radius: 30px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 2.75rem;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.15;
}

.hero-title span {
  background: var(--accent-gold-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  font-weight: 400;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.hero-bio {
  font-size: 0.975rem;
  color: #94a3b8;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.scholar-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.4rem 0.8rem;
  border-radius: 8px;
  font-size: 0.825rem;
  font-weight: 600;
  transition: var(--transition);
}

.scholar-badge:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  color: #fef08a;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.btn-primary {
  background: var(--accent-gold-gradient);
  color: #0b1f36;
  box-shadow: var(--shadow-gold);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(212, 175, 55, 0.4);
}

.btn-outline {
  background: transparent;
  color: #ffffff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-2px);
}

.hero-profile-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow-xl);
}

.hero-profile-img-wrap {
  position: relative;
  width: 180px;
  height: 180px;
  margin: 0 auto 1.25rem;
}

.hero-profile-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--accent);
  box-shadow: 0 0 30px rgba(212, 175, 55, 0.35);
}

.profile-floating-badge {
  position: absolute;
  bottom: 5px;
  right: 5px;
  background: var(--accent);
  color: #0b1f36;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow-md);
}

.hero-profile-name {
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.hero-profile-role {
  font-size: 0.85rem;
  color: #cbd5e1;
  margin-bottom: 1rem;
}

.hero-profile-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-box {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 0.7rem;
  color: #94a3b8;
  text-transform: uppercase;
}

/* ==========================================================================
   METRICS BAR SECTION
   ========================================================================== */
.metrics-section {
  margin-top: -2rem;
  position: relative;
  z-index: 20;
}

.metrics-card {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.metric-item {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.metric-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: rgba(212, 175, 55, 0.12);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

[data-theme="dark"] .metric-icon {
  color: var(--accent);
}

.metric-info h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.1rem;
  color: var(--text-main);
}

.metric-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0;
  font-weight: 500;
}

/* ==========================================================================
   SECTION COMMON STYLES
   ========================================================================== */
.section {
  padding: 4.5rem 0;
}

.section-header {
  margin-bottom: 2.75rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.section-title-wrap {
  max-width: 600px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent-dark);
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}

[data-theme="dark"] .section-tag {
  color: var(--accent);
}

.section-title {
  font-size: 2.15rem;
  color: var(--text-main);
  position: relative;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
  margin-top: 0.5rem;
  margin-bottom: 0;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--primary);
  border-bottom: 2px solid transparent;
}

[data-theme="dark"] .view-all-link {
  color: var(--accent);
}

.view-all-link:hover {
  gap: 0.75rem;
  border-bottom-color: currentColor;
}

/* ==========================================================================
   CARDS & GRIDS
   ========================================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(212, 175, 55, 0.4);
}

.card-img-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-subtle);
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img {
  transform: scale(1.05);
}

.card-category-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(15, 43, 72, 0.85);
  backdrop-filter: blur(6px);
  color: #ffffff;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  line-height: 1.35;
  color: var(--text-main);
  transition: var(--transition);
}

.card-title a:hover {
  color: var(--accent-dark);
}

[data-theme="dark"] .card-title a:hover {
  color: var(--accent);
}

.card-excerpt {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

.read-more-btn {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

[data-theme="dark"] .read-more-btn {
  color: var(--accent);
}

.read-more-btn:hover {
  gap: 0.6rem;
}

/* ==========================================================================
   PUBLICATIONS STYLES
   ========================================================================== */
.pub-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
  border-left: 4px solid var(--accent);
}

.pub-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateX(4px);
  border-color: var(--accent);
}

.pub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pub-badges {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.pub-badge {
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.pub-badge.scopus { background: var(--badge-scopus-bg); color: var(--badge-scopus-text); }
.pub-badge.isi { background: var(--badge-isi-bg); color: var(--badge-isi-text); }
.pub-badge.book { background: var(--badge-book-bg); color: var(--badge-book-text); }
.pub-badge.journal { background: var(--badge-spiritual-bg); color: var(--badge-spiritual-text); }

.pub-year {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pub-title {
  font-size: 1.15rem;
  font-family: 'Playfair Display', serif;
  color: var(--text-main);
  line-height: 1.35;
}

.pub-title a:hover {
  color: var(--accent-dark);
}

[data-theme="dark"] .pub-title a:hover {
  color: var(--accent);
}

.pub-authors {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.pub-authors strong {
  color: var(--text-main);
}

.pub-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.pub-action-btn {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  transition: var(--transition);
}

.pub-action-btn:hover {
  background: var(--border-color);
  color: var(--primary);
}

/* ==========================================================================
   JOURNAL SHOWCASE SECTION
   ========================================================================== */
.journals-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.journal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.journal-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.journal-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(15, 43, 72, 0.1), rgba(212, 175, 55, 0.2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  color: var(--primary);
}

[data-theme="dark"] .journal-icon {
  color: var(--accent);
}

.journal-acronym {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.35rem;
}

.journal-name {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 1rem;
}

.journal-role {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-dark);
  background: rgba(212, 175, 55, 0.15);
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  margin-bottom: 1.25rem;
}

.journals-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.journal-type-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.journal-type-badge.journal {
  background: rgba(15, 43, 72, 0.1);
  color: var(--primary);
}

[data-theme="dark"] .journal-type-badge.journal {
  background: rgba(212, 175, 55, 0.2);
  color: var(--accent);
}

.journal-type-badge.proceeding {
  background: rgba(46, 117, 89, 0.12);
  color: #1e704e;
}

[data-theme="dark"] .journal-type-badge.proceeding {
  background: rgba(78, 203, 143, 0.2);
  color: #4ecb8f;
}

/* Organizations Grid */
.org-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.org-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.org-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
  background: var(--accent-gold-gradient);
}

.org-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--accent);
}

.org-card-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.org-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(15, 43, 72, 0.2);
}

[data-theme="dark"] .org-card-icon {
  background: linear-gradient(135deg, #1e3a5f, #0b1f36);
  color: var(--accent);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.org-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.org-card-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.org-role-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(212, 175, 55, 0.15);
  color: var(--accent-dark);
  font-size: 0.825rem;
  font-weight: 700;
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  align-self: flex-start;
}

[data-theme="dark"] .org-role-badge {
  color: var(--accent);
}

.org-card-desc {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-main);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.org-card-footer {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

/* Spiritual Section (Đường Về Nước Trời) */
.spiritual-banner {
  background: linear-gradient(135deg, #0b1f36 0%, #153258 50%, #08182b 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  margin-bottom: 2.5rem;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(212, 175, 55, 0.25);
  box-shadow: 0 10px 30px rgba(11, 31, 54, 0.25);
}

.spiritual-banner::after {
  content: '🕊️';
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 8rem;
  opacity: 0.08;
  pointer-events: none;
}

.spiritual-banner h3 {
  color: #ffffff;
  font-family: var(--font-heading);
  font-size: 1.85rem;
  margin-bottom: 0.75rem;
}

.spiritual-banner p {
  color: #d8e2ef;
  font-size: 1rem;
  line-height: 1.7;
  max-width: 800px;
  margin-bottom: 0;
}

/* ==========================================================================
   FILTER & SEARCH CONTROLS
   ========================================================================== */
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.filter-tab {
  padding: 0.5rem 1rem;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.filter-tab:hover, .filter-tab.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

[data-theme="dark"] .filter-tab:hover, [data-theme="dark"] .filter-tab.active {
  background: var(--accent);
  color: #0b1f36;
  border-color: var(--accent);
}

.search-input-wrap {
  position: relative;
  min-width: 280px;
}

.search-input-wrap input {
  width: 100%;
  padding: 0.6rem 1rem 0.6rem 2.4rem;
  border-radius: 30px;
  border: 1px solid var(--border-color);
  background: var(--bg-body);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.search-input-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.search-icon-inside {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}

.page-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-main);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.page-btn:hover, .page-btn.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

[data-theme="dark"] .page-btn:hover, [data-theme="dark"] .page-btn.active {
  background: var(--accent);
  color: #0b1f36;
  border-color: var(--accent);
}

/* ==========================================================================
   ARTICLE / POST DETAIL VIEW
   ========================================================================== */
.post-detail-header {
  padding: 4rem 0 2.5rem;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-color);
}

.post-detail-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.post-detail-title {
  font-size: 2.75rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.article-content {
  padding: 3.5rem 0;
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--text-main);
}

.article-content p {
  margin-bottom: 1.5rem;
}

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

.article-content img {
  border-radius: var(--radius-md);
  margin: 2rem auto;
  box-shadow: var(--shadow-md);
}

.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  background: var(--bg-subtle);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  margin: 2rem 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: #08182b;
  color: #e2e8f0;
  padding: 4.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.35rem;
  margin-bottom: 0.5rem;
}

.footer-brand p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: #ffffff;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.65rem;
}

.footer-links a {
  color: #94a3b8;
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: var(--accent);
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: #64748b;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-profile-card {
    max-width: 360px;
    margin: 0 auto;
  }
  
  .hero-cta-group, .hero-badges-row {
    justify-content: center;
  }

  .metrics-card {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .journals-grid, .journals-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .org-cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--header-height);
    left: 0;
    width: 100%;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border-bottom: 1px solid var(--border-color);
  }

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

  .mobile-toggle {
    display: flex;
  }

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

  .grid-3, .grid-2, .journals-grid, .journals-grid-3, .org-cards-grid, .metrics-card {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   FLOATING AI ASSISTANT ROBOT WIDGET
   ========================================================================== */
.floating-ai-widget {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-ai-widget:hover {
  transform: translateY(-4px) scale(1.05);
}

.floating-ai-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--hero-gradient);
  border: 2.5px solid var(--accent);
  box-shadow: 0 6px 25px rgba(15, 43, 72, 0.35), 0 0 15px rgba(212, 175, 55, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  position: relative;
  transition: all 0.3s ease;
  user-select: none;
}

[data-theme="dark"] .floating-ai-btn {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  border-color: var(--accent);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.4);
}

.floating-ai-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 15px;
  height: 15px;
  background: #10b981;
  border: 2px solid #ffffff;
  border-radius: 50%;
  animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.floating-ai-tooltip {
  background: var(--bg-surface);
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: 20px;
  font-size: 0.825rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--border-color);
  white-space: nowrap;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s, transform 0.2s;
  animation: floatTooltip 3s ease-in-out infinite;
}

[data-theme="dark"] .floating-ai-tooltip {
  background: var(--bg-surface-elevated);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

@keyframes floatTooltip {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@media (max-width: 600px) {
  .floating-ai-tooltip {
    display: none;
  }
  .floating-ai-widget {
    bottom: 18px;
    right: 18px;
  }
  .floating-ai-btn {
    width: 52px;
    height: 52px;
    font-size: 24px;
  }
}

