/* ========================================
   TABRIZ ISLAMIC ART UNIVERSITY
   Research Portal - Main Stylesheet
   ======================================== */

:root {
  --navy: #1A2744;
  --navy-light: #243159;
  --gold: #C8A96E;
  --gold-light: #DFC08A;
  --gold-pale: #F5EDD8;
  --cream: #FAF7F2;
  --white: #FFFFFF;
  --gray-100: #F8F8F8;
  --gray-200: #EFEFEF;
  --gray-400: #AAAAAA;
  --gray-600: #666666;
  --gray-800: #333333;
  --text: #1E1E1E;
  --border: rgba(200, 169, 110, 0.25);
  --shadow-sm: 0 2px 12px rgba(26, 39, 68, 0.08);
  --shadow-md: 0 8px 32px rgba(26, 39, 68, 0.12);
  --shadow-lg: 0 16px 48px rgba(26, 39, 68, 0.16);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font: 'Vazirmatn', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ========== PRELOADER ========== */
#preloader {
  position: fixed; inset: 0;
  background: var(--navy);
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}
#preloader.hidden { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-logo { margin-bottom: 20px; animation: pulse 1.5s ease-in-out infinite; }
.preloader-logo svg { width: 64px; height: 64px; }
.preloader-text { color: var(--gold); font-size: 1.1rem; font-weight: 500; letter-spacing: 3px; }
@keyframes pulse { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.05);opacity:0.8} }

/* ========== HEADER ========== */
.header-top {
  background: var(--navy);
  padding: 8px 0;
  border-bottom: 1px solid rgba(200,169,110,0.2);
}
.header-top-inner {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 0.82rem; color: rgba(255,255,255,0.65);
}
.separator { margin: 0 12px; opacity: 0.4; }
.header-lang { display: flex; gap: 16px; align-items: center; }
.lang-btn {
  color: var(--gold-light); font-size: 0.8rem;
  border: 1px solid rgba(200,169,110,0.4);
  padding: 2px 10px; border-radius: 4px;
  transition: var(--transition);
}
.lang-btn:hover { background: rgba(200,169,110,0.15); }
.admin-link {
  color: var(--gold-light); font-size: 0.82rem;
  display: flex; align-items: center; gap: 5px;
  transition: var(--transition);
}
.admin-link:hover { color: var(--gold); }

.header-main {
  background: var(--white);
  padding: 16px 0;
  box-shadow: var(--shadow-sm);
  position: sticky; top: 0; z-index: 100;
}
.header-main-inner {
  display: flex; align-items: center;
  justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.logo-area { display: flex; align-items: center; gap: 14px; }
.logo-text { display: flex; flex-direction: column; min-width: 0; }
.logo-text h1 { font-size: 1.1rem; font-weight: 700; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-text p { font-size: 0.78rem; color: var(--gray-600); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.main-nav { flex: 1; min-width: 0; overflow: visible; }
.main-nav ul { display: flex; list-style: none; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; row-gap: 6px; }
.main-nav a {
  padding: 8px 12px; border-radius: 8px;
  font-size: 0.92rem; font-weight: 500; color: var(--gray-800);
  transition: var(--transition); position: relative;
  line-height: 1.35;
  white-space: normal;
}
.main-nav.compact a { font-size: 0.82rem; padding: 7px 10px; }

/* Hero title animation */
.hero-title.animate { opacity: 1; transform: translateY(0); transition: transform 0.7s cubic-bezier(0.2,0.9,0.2,1), opacity 0.7s; }
.hero-title { opacity: 0; transform: translateY(18px); }
.hero-subtitle.animate { opacity: 1; transform: translateY(0); transition: transform 0.9s cubic-bezier(0.2,0.9,0.2,1), opacity 0.9s; }
.hero-subtitle { opacity: 0; transform: translateY(10px); }
.main-nav a:hover, .main-nav a.active {
  color: var(--navy); background: var(--gold-pale);
}
.main-nav a.active::after {
  content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold);
}

/* Special menu item styling - for Virtual Museum */
.menu-item-special > a {
  background: linear-gradient(135deg, var(--gold) 0%, #B8924A 100%) !important;
  color: var(--navy) !important;
  font-weight: 700;
  padding: 10px 16px !important;
  border-radius: 12px !important;
}
.menu-item-special > a:hover {
  background: linear-gradient(135deg, #DFC08A 0%, #C8A96E 100%) !important;
  box-shadow: 0 4px 12px rgba(200, 169, 110, 0.3);
}

/* Text formatting preservation - pre-wrap for admin-edited content */
#homepageMainText, #aboutContent, .text-preserve-formatting,
[id*="Text"], [id*="Content"], [id*="Description"] {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: break-word;
}


.mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.mobile-menu-btn span {
  display: block; width: 24px; height: 2px;
  background: var(--navy); border-radius: 2px; transition: var(--transition);
}

.mobile-nav {
  display: none; position: fixed; top: 120px; right: 0; left: 0;
  background: var(--white); z-index: 99;
  box-shadow: var(--shadow-md); padding: 16px;
}
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; }
.mobile-nav li { border-bottom: 1px solid var(--gray-200); }
.mobile-nav a { display: block; padding: 12px 16px; font-weight: 500; color: var(--navy); }

/* ========== HERO ========== */
.site-header-banner img { width: 100%; height: 320px; object-fit: cover; display: block; border-bottom: 6px solid rgba(0,0,0,0.04); }
.site-header-banner { width:100%; overflow:hidden; }

.hero-description { padding: 48px 0 80px; }
.hero-content { max-width: 780px; margin: 0 auto; }

/* Glassmorphism card used for hero description and other highlight blocks */
.glass-card {
  background: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 8px 32px rgba(26,39,68,0.08);
  backdrop-filter: blur(8px) saturate(120%);
  -webkit-backdrop-filter: blur(8px) saturate(120%);
  transition: transform 0.45s cubic-bezier(0.2,0.9,0.2,1), opacity 0.45s;
  opacity: 0; transform: translateY(8px);
}
.glass-card.show { opacity: 1; transform: translateY(0); }

/* Darker text for hero description (since it sits on white/cream background) */
.hero-description .hero-title {
  background: none; -webkit-background-clip: unset; -webkit-text-fill-color: unset;
  color: var(--navy);
}
.hero-description .hero-subtitle { color: var(--gray-600); }

/* Small accent headline for homepage */
.homepage-headline { font-size:1.1rem; font-weight:800; color:var(--navy); margin-bottom:8px; }

/* Global subtle entrance for elements */
@keyframes subtleFadeUp { from { opacity: 0; transform: translateY(8px);} to { opacity:1; transform: translateY(0);} }
.animate-subtle { animation: subtleFadeUp 0.6s ease both; }

/* Button helpers (moved from admin.css so public pages get same look) */
.topbar-btn {
  padding: 10px 18px; border-radius: 10px; border: none;
  font-size: 0.95rem; font-weight: 700; font-family: var(--font);
  cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap:8px;
}
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: #0D1A38; }
.btn-ghost { background: transparent; border: 1px solid var(--border); color: var(--navy); }
.btn-ghost:hover { background: var(--gray-100); }

/* Ensure full-width forms buttons look good */
.btn-full { display:block; width:100%; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(200,169,110,0.15); border: 1px solid rgba(200,169,110,0.4);
  color: var(--gold-light); font-size: 0.82rem; font-weight: 500;
  padding: 6px 16px; border-radius: 100px; margin-bottom: 20px;
}
.hero-badge::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); animation: blink 2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800;
  color: var(--white); line-height: 1.25; margin-bottom: 16px;
  background: linear-gradient(90deg, #FFFFFF 0%, #DFC08A 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
  font-size: 1.05rem; color: rgba(255,255,255,0.72); margin-bottom: 36px; max-width: 600px;
}

/* ========== HERO SEARCH BOX — PREMIUM REDESIGN ========== */
.hero-search { margin-bottom: 36px; position: relative; }

.search-tabs {
  display: inline-flex;
  gap: 0;
  margin-bottom: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 100px;
  padding: 4px;
}
.tab-btn {
  padding: 7px 20px;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--font);
  transition: var(--transition);
  white-space: nowrap;
}
.tab-btn:hover { color: rgba(255,255,255,0.9); }
.tab-btn.active {
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(200,169,110,0.4);
}

.search-box {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.97);
  border-radius: 16px;
  border: 2px solid rgba(200,169,110,0.35);
  box-shadow: 0 8px 40px rgba(0,0,0,0.28), inset 0 1px 0 rgba(255,255,255,0.6);
  overflow: hidden;
  transition: var(--transition);
}
.search-box:focus-within {
  border-color: var(--gold);
  box-shadow: 0 8px 48px rgba(0,0,0,0.32), 0 0 0 4px rgba(200,169,110,0.15);
}
.search-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px 0 18px;
  color: var(--gold);
  flex-shrink: 0;
}
.search-input {
  flex: 1;
  padding: 18px 12px 18px 8px;
  border: none;
  background: transparent;
  color: var(--navy);
  font-size: 1rem;
  font-family: var(--font);
  font-weight: 500;
  outline: none;
  min-width: 0;
}
.search-input::placeholder { color: #b0b8c8; font-weight: 400; }
.search-divider {
  width: 1px;
  height: 30px;
  background: rgba(26,39,68,0.1);
  flex-shrink: 0;
}
.search-filter {
  padding: 18px 32px 18px 14px;
  border: none;
  background: transparent;
  color: var(--navy);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
  flex-shrink: 0;
  min-width: 120px;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231A2744' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 10px center;
}
.search-filter option { background: var(--white); color: var(--navy); }
.search-btn {
  margin: 6px;
  padding: 13px 26px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--gold) 0%, #B8924A 100%);
  color: var(--navy);
  border: none;
  font-size: 0.95rem;
  font-weight: 800;
  font-family: var(--font);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(200,169,110,0.45);
}
.search-btn:hover {
  background: linear-gradient(135deg, #DFC08A 0%, var(--gold) 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(200,169,110,0.55);
}
.search-btn:active { transform: translateY(0); }
.search-hints {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.search-hint-label { font-size: 0.75rem; color: rgba(255,255,255,0.4); white-space: nowrap; }
.search-hint-tag {
  padding: 3px 12px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.6);
  font-size: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font);
}
.search-hint-tag:hover {
  background: rgba(200,169,110,0.18);
  border-color: rgba(200,169,110,0.4);
  color: var(--gold-light);
}

.hero-stats {
  display: flex; gap: 0; align-items: center;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); overflow: hidden;
}
.stat-item { flex: 1; padding: 18px 20px; text-align: center; }
.stat-num { display: block; font-size: 1.8rem; font-weight: 800; color: var(--gold); line-height: 1; }
.stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-top: 4px; display: block; }
.stat-divider { width: 1px; height: 50px; background: rgba(255,255,255,0.12); flex-shrink: 0; }

.hero-scroll { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); text-align: center; color: rgba(255,255,255,0.4); font-size: 0.75rem; letter-spacing: 2px; }
.scroll-line { width: 1px; height: 40px; background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent); margin: 8px auto 0; }

/* ========== SEARCH RESULTS ========== */
.search-results-section { padding: 48px 0; background: var(--white); border-bottom: 1px solid var(--gray-200); }
.results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.results-header h3 { font-size: 1.3rem; color: var(--navy); font-weight: 700; }
.results-header span { color: var(--gray-600); font-size: 0.9rem; }
.results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 20px; }

/* ========== SECTIONS ========== */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-label { font-size: 0.82rem; font-weight: 600; color: var(--gold); letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--navy); margin-bottom: 12px; }
.section-desc { font-size: 1rem; color: var(--gray-600); max-width: 520px; margin: 0 auto; }
.section-footer { text-align: center; margin-top: 40px; }

/* ========== ARTICLE CARD ========== */
.articles-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 24px; }
.article-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border); padding: 28px;
  transition: var(--transition); cursor: pointer; position: relative; overflow: hidden;
}
.article-card::before {
  content: ''; position: absolute; top: 0; right: 0;
  width: 4px; height: 100%; background: var(--gold);
  transform: scaleY(0); transform-origin: top; transition: var(--transition);
}
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.article-card:hover::before { transform: scaleY(1); }
.article-type {
  display: inline-block; padding: 4px 12px; border-radius: 100px;
  background: var(--gold-pale); color: var(--gold); font-size: 0.75rem; font-weight: 600;
  margin-bottom: 14px;
}
.article-title { font-size: 1rem; font-weight: 700; color: var(--navy); line-height: 1.5; margin-bottom: 10px; }
.article-authors { font-size: 0.85rem; color: var(--gold); font-weight: 500; margin-bottom: 10px; }
.article-journal { font-size: 0.82rem; color: var(--gray-600); margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.article-abstract { font-size: 0.85rem; color: var(--gray-600); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 16px; }
.article-meta { display: flex; justify-content: space-between; align-items: center; padding-top: 14px; border-top: 1px solid var(--gray-200); }
.article-year { font-size: 0.82rem; color: var(--gray-600); display: flex; align-items: center; gap: 5px; }
.article-downloads { font-size: 0.82rem; color: var(--gray-600); display: flex; align-items: center; gap: 5px; }
.article-link { font-size: 0.82rem; color: var(--navy); font-weight: 600; display: flex; align-items: center; gap: 4px; }
.article-link:hover { color: var(--gold); }

/* ========== CATEGORIES ========== */
.categories-section { background: var(--navy); }
.categories-section .section-title { color: var(--white); }
.categories-section .section-label { color: var(--gold); }
.categories-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.category-card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(200,169,110,0.2);
  border-radius: var(--radius); padding: 28px 20px; text-align: center;
  transition: var(--transition); cursor: pointer;
}
.category-card:hover { background: rgba(200,169,110,0.1); border-color: var(--gold); transform: translateY(-2px); }
.category-icon { font-size: 2rem; margin-bottom: 12px; }
.category-name { font-size: 0.95rem; font-weight: 600; color: var(--white); margin-bottom: 6px; }
.category-count { font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ========== RESEARCHERS ========== */
.researchers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.researcher-card {
  background: var(--white); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 20px; text-align: center; transition: var(--transition);
}
.researcher-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold); }
.researcher-avatar {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 16px;
  background: var(--gold-pale); display: flex; align-items: center; justify-content: center;
  overflow: hidden; border: 3px solid var(--border);
}
.researcher-avatar img { width: 100%; height: 100%; object-fit: cover; }
.researcher-avatar-placeholder { font-size: 2rem; color: var(--gold); font-weight: 700; }
.researcher-name { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.researcher-title { font-size: 0.82rem; color: var(--gray-600); margin-bottom: 10px; }
.researcher-field { display: inline-block; padding: 3px 12px; border-radius: 100px; background: var(--gold-pale); color: var(--gold); font-size: 0.75rem; font-weight: 600; margin-bottom: 14px; }
.researcher-stats { display: flex; justify-content: center; gap: 20px; }
.r-stat { text-align: center; }
.r-stat-num { font-size: 1.1rem; font-weight: 700; color: var(--navy); display: block; }
.r-stat-label { font-size: 0.72rem; color: var(--gray-600); }

/* ========== STATS BANNER ========== */
.stats-banner { background: linear-gradient(135deg, var(--gold) 0%, #B8924A 100%); padding: 60px 0; }
.banner-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.banner-text h3 { font-size: 1.4rem; font-weight: 700; color: var(--navy); margin-bottom: 8px; }
.banner-text p { font-size: 0.95rem; color: rgba(26,39,68,0.75); max-width: 560px; }

/* ========== FORM ELEMENTS (public pages: advanced search, etc.) ========== */
.form-col { margin-bottom: 0; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-input,
.form-textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: 10px;
  font-family: var(--font);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--white);
  outline: none;
  transition: var(--transition);
}
.form-input::placeholder,
.form-textarea::placeholder { color: #aaa; }
.form-input:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(200,169,110,0.12);
}
.form-textarea { resize: vertical; min-height: 90px; }

select.form-input {
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 16px center;
  padding-left: 36px;
}
select.form-input:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23C8A96E' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: var(--white);
  padding: 14px 32px; border-radius: 10px;
  font-size: 0.95rem; font-weight: 700; font-family: var(--font);
  border: none; cursor: pointer; transition: var(--transition); white-space: nowrap;
}
.btn-primary:hover { background: #0D1A38; transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--navy);
  padding: 12px 28px; border-radius: 10px; border: 2px solid var(--navy);
  font-size: 0.9rem; font-weight: 600; font-family: var(--font);
  cursor: pointer; transition: var(--transition);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }

/* ========== FOOTER ========== */
.main-footer { background: #0D1A38; }
.footer-top { padding: 60px 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; }

.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo span { font-size: 1.1rem; font-weight: 700; color: var(--white); }
.footer-about p { font-size: 0.875rem; color: rgba(255,255,255,0.55); line-height: 1.8; }
.footer-col h4 { font-size: 0.95rem; font-weight: 700; color: var(--white); margin-bottom: 16px; padding-bottom: 10px; border-bottom: 1px solid rgba(200,169,110,0.3); }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.875rem; color: rgba(255,255,255,0.55); transition: var(--transition); }
.footer-col a:hover { color: var(--gold); padding-right: 4px; }
.footer-contact p { font-size: 0.875rem; color: rgba(255,255,255,0.55); margin-bottom: 8px; }
.footer-bottom { padding: 20px 0; border-top: 1px solid rgba(255,255,255,0.08); text-align: center; }
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.4); }

/* ========== ARTICLE DETAIL PAGE ========== */
.article-detail { padding: 60px 0; }
.article-detail-header { background: var(--navy); padding: 60px 0; margin-bottom: 0; }
.article-detail-header .breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-bottom: 20px; }
.article-detail-header .breadcrumb a { color: rgba(255,255,255,0.5); }
.article-detail-header .breadcrumb a:hover { color: var(--gold); }
.article-detail-header h1 { font-size: clamp(1.4rem, 3vw, 2rem); color: var(--white); font-weight: 800; line-height: 1.4; margin-bottom: 20px; }
.article-detail-meta { display: flex; flex-wrap: wrap; gap: 20px; }
.meta-badge { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: rgba(255,255,255,0.7); }
.meta-badge svg { color: var(--gold); }

.detail-body { padding: 48px 0; }
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 40px; }
.detail-main { }
.detail-sidebar { }
.detail-section { background: var(--white); border-radius: var(--radius); padding: 28px; margin-bottom: 20px; border: 1px solid var(--border); }
.detail-section h3 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--gold-pale); }
.detail-section p { font-size: 0.9rem; color: var(--gray-800); line-height: 1.9; }
.keywords-list { display: flex; flex-wrap: wrap; gap: 8px; }
.keyword-tag { padding: 5px 14px; border-radius: 100px; background: var(--gold-pale); color: var(--navy); font-size: 0.82rem; font-weight: 500; }

/* ========== PAGE HEADER ========== */
.page-header { background: var(--navy); padding: 60px 0 48px; }
.page-header .breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.82rem; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.page-header .breadcrumb a { color: rgba(255,255,255,0.5); }
.page-header .breadcrumb a:hover { color: var(--gold); }
.page-header h1 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; color: var(--white); margin-bottom: 8px; }
.page-header p { color: rgba(255,255,255,0.65); font-size: 0.95rem; }

/* ========== SEARCH PAGE ========== */
.search-page { padding: 48px 0; }
.search-layout { display: grid; grid-template-columns: 280px 1fr; gap: 32px; }
.search-sidebar { background: var(--white); border-radius: var(--radius); padding: 24px; border: 1px solid var(--border); height: fit-content; position: sticky; top: 100px; }
.filter-section { margin-bottom: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--gray-200); }
.filter-section:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.filter-title { font-size: 0.9rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.filter-options { display: flex; flex-direction: column; gap: 10px; }
.filter-option { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 0.875rem; color: var(--gray-800); }
.filter-option input[type="checkbox"] { accent-color: var(--gold); width: 16px; height: 16px; }
.filter-option input[type="radio"] { accent-color: var(--gold); width: 16px; height: 16px; }
.search-main { }
.search-controls { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--gray-200); }
.results-info { font-size: 0.9rem; color: var(--gray-600); }
.sort-select { padding: 8px 14px; border: 1px solid var(--gray-200); border-radius: 8px; font-family: var(--font); font-size: 0.875rem; outline: none; color: var(--gray-800); }

/* ========== RESEARCHER PROFILE ========== */
.researcher-profile { padding: 0; }
.profile-header { background: var(--navy); padding: 60px 0; }
.profile-header-inner { display: flex; align-items: center; gap: 32px; }
.profile-photo { width: 120px; height: 120px; border-radius: 50%; border: 4px solid var(--gold); overflow: hidden; background: rgba(200,169,110,0.1); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-photo-placeholder { font-size: 3rem; color: var(--gold); font-weight: 700; }
.profile-info h1 { font-size: 1.8rem; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.profile-info .title { font-size: 0.95rem; color: var(--gold-light); margin-bottom: 12px; }
.profile-info .department { font-size: 0.875rem; color: rgba(255,255,255,0.65); }
.profile-stats-bar { display: flex; gap: 32px; margin-top: 20px; }
.profile-stat-item { text-align: center; }
.profile-stat-num { font-size: 1.5rem; font-weight: 800; color: var(--gold); display: block; }
.profile-stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.55); }
.profile-body { padding: 40px 0; }
.profile-layout { display: grid; grid-template-columns: 1fr 320px; gap: 32px; }

/* ========== PAGINATION ========== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 40px; }
.page-btn {
  width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--gray-200);
  background: var(--white); color: var(--gray-800); cursor: pointer; font-family: var(--font);
  font-size: 0.9rem; transition: var(--transition); display: flex; align-items: center; justify-content: center;
}
.page-btn:hover, .page-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }

/* ========== UTILITIES ========== */
.empty-state { text-align: center; padding: 60px 20px; color: var(--gray-600); }
.empty-state svg { width: 64px; height: 64px; color: var(--gray-400); margin: 0 auto 16px; }
.empty-state h3 { font-size: 1.1rem; color: var(--gray-800); margin-bottom: 8px; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; }
.badge-gold { background: var(--gold-pale); color: var(--gold); }
.badge-blue { background: rgba(26,39,68,0.08); color: var(--navy); }
.loading { display: flex; justify-content: center; padding: 40px; }
.spinner { width: 40px; height: 40px; border: 3px solid var(--gray-200); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .detail-layout, .profile-layout { grid-template-columns: 1fr; }
  .search-layout { grid-template-columns: 1fr; }
  .search-sidebar { position: static; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .mobile-menu-btn { display: flex; }
  .header-top-inner { flex-direction: column; gap: 6px; text-align: center; }
  .search-box { flex-wrap: wrap; }
  .hero-stats { flex-wrap: wrap; }
  .banner-inner { flex-direction: column; text-align: center; }
  .articles-grid, .researchers-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .profile-header-inner { flex-direction: column; text-align: center; }
  .profile-stats-bar { justify-content: center; }
}
@media (max-width: 480px) {
  .hero { padding: 60px 0; }
  .search-tabs { flex-wrap: wrap; }
  .stat-item { padding: 14px 10px; }
  .stat-num { font-size: 1.4rem; }
}
