/* ===== Hope UI – Research Portal Styles ===== */
:root {
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --text: #1f2937;
  --muted: #6b7280;
  --bg: #f9fafb;
  --white: #ffffff;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow: 0 4px 14px rgba(0,0,0,0.04);
  --transition: 0.2s ease;
}

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

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ===== Navigation Bar ===== */
.app-navbar {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  padding: 0.8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.app-navbar .logo img { max-height:40px; }
.app-navbar .nav-links { display: flex; gap: 1.8rem; align-items: center; }
.app-navbar .nav-links a {
  color: var(--text); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  transition: var(--transition); border-bottom: 2px solid transparent; padding-bottom: 0.15rem;
}
.app-navbar .nav-links a:hover,
.app-navbar .nav-links a.active {
  color: var(--primary); border-bottom-color: var(--primary);
}
.btn-login {
  background: var(--primary); color: #fff; border: none; border-radius: 10px;
  padding: 0.5rem 1.3rem; font-weight: 500; cursor: pointer; text-decoration: none;
  transition: var(--transition);
}
.btn-login:hover { background: var(--primary-hover); }
.user-dropdown { position: relative; }
.user-dropdown-trigger {
  background: none; border: none; color: var(--text); font-weight: 500; cursor: pointer;
  display: flex; align-items: center; gap: 0.3rem;
}
.user-dropdown-menu {
  display: none; position: absolute; right: 0; top: 100%; background: var(--white);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); border-radius: 8px; padding: 0.5rem;
  min-width: 160px; z-index: 200;
}
.user-dropdown-menu a {
  display: block; padding: 0.5rem 1rem; color: var(--text); text-decoration: none;
  border-radius: 6px; transition: var(--transition);
}
.user-dropdown-menu a:hover { background: #f3f4f6; }

/* ===== Page Wrapper ===== */
.page-content {
  max-width: 1200px; margin: 2rem auto; padding: 0 2rem;
}

/* ===== Cards ===== */
.card {
  background: var(--white); border-radius: 16px; box-shadow: var(--shadow);
  padding: 2rem; margin-bottom: 2rem; border: 1px solid #f3f4f6;
}

/* ===== Tables ===== */
.table-responsive {
  background: var(--white); border-radius: 12px; box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.table { width: 100%; border-collapse: collapse; margin-bottom: 0; font-size: 0.9rem; }
.table thead { background: #f8fafc; border-bottom: 2px solid var(--border); }
.table th { font-weight: 600; color: var(--text); padding: 0.8rem 1rem; white-space: nowrap; }
.table td { padding: 0.8rem 1rem; border-bottom: 1px solid #f3f4f6; vertical-align: middle; }
.table tbody tr:hover { background: #f9fafb; }

/* ===== Forms ===== */
.form-control {
  width: 100%; padding: 0.65rem 1rem; border: 1px solid var(--border); border-radius: 10px;
  font-size: 0.95rem; background: #fff; transition: var(--transition); color: var(--text);
}
.form-control:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,70,229,0.1); outline: none;
}
textarea.form-control { resize: vertical; }
label { font-weight: 500; font-size: 0.85rem; color: var(--muted); margin-bottom: 0.25rem; display: block; }
.form-group { margin-bottom: 1.3rem; }
.check-group {
  display: flex; flex-wrap: wrap; gap: 0.8rem;
}
.check-group .form-check { padding-left: 1.5rem; margin: 0; }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-check-label { font-weight: 500; font-size: 0.9rem; color: var(--text); }

/* ===== Buttons ===== */
.btn {
  padding: 0.5rem 1.3rem; font-size: 0.9rem; border-radius: 10px; font-weight: 500;
  cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem;
  transition: var(--transition); text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline {
  background: transparent; border: 1px solid var(--border); color: var(--text);
}
.btn-outline:hover { background: #f3f4f6; }
.btn-danger { background: #dc2626; color: #fff; border-color: #dc2626; }
.btn-danger:hover { background: #b91c1c; }
.btn-success { background: #059669; color: #fff; border-color: #059669; }
.btn-success:hover { background: #047857; }

/* ===== Badges ===== */
.badge {
  padding: 0.3em 0.7em; border-radius: 20px; font-weight: 600; font-size: 0.8rem;
}
.badge-success { background: #d1fae5; color: #065f46; }
.badge-info { background: #dbeafe; color: #1e3a8a; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }

/* ===== Modal (Login/Register) ===== */
.modal-content { border-radius: 20px; border: none; box-shadow: 0 25px 50px rgba(0,0,0,0.15); }
.modal-body { padding: 2rem; }
.nav-tabs { border-bottom: 2px solid var(--border); margin-bottom: 1.5rem; }
.nav-tabs .nav-link {
  border: none; color: var(--muted); font-weight: 600; padding: 0.6rem 1.5rem;
  border-radius: 30px; margin-right: 0.5rem; background: #f1f3f5; transition: var(--transition);
}
.nav-tabs .nav-link.active { background: var(--primary); color: #fff; }

/* ===== Print Styles (for cover letter) ===== */
@media print {
  .no-print { display: none; }
  body { padding: 0; background: #fff; }
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .app-navbar { flex-direction: column; text-align: center; }
  .app-navbar .nav-links { flex-wrap: wrap; justify-content: center; gap: 1rem; }
}




/* ===== CMS UI Components ===== */
.ui-btn { padding: 0.6rem 1.5rem; border-radius: 8px; font-weight: 600; display: inline-block; }
.ui-btn-primary { background: var(--primary); color: #fff; }
.ui-btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.ui-tabs .nav-link { border: none; color: var(--muted); font-weight: 600; }
.ui-tabs .nav-link.active { background: var(--primary); color: #fff; border-radius: 8px; }
.ui-accordion .card { border: 1px solid #e5e7eb; border-radius: 8px; margin-bottom: 0.5rem; }
.ui-accordion .card-header { background: #f9fafb; cursor: pointer; }
.ui-panel { background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.04); padding: 1.5rem; }
.ui-grid { display: grid; gap: 1.5rem; }
.ui-grid-2 { grid-template-columns: repeat(2, 1fr); }
.ui-grid-3 { grid-template-columns: repeat(3, 1fr); }
.ui-grid-4 { grid-template-columns: repeat(4, 1fr); }
/* Carousel */
.brand-carousel { padding: 2rem 0; }
.brand-carousel .slick-slide { margin: 0 10px; }
.brand-carousel img { max-height: 60px; opacity: 0.7; transition: 0.2s; }
.brand-carousel img:hover { opacity: 1; }






/* ===== Public Page Sections ===== */
.section {
  padding: 5rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-section {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
}
.hero-section .hero-overlay {
  position: absolute; top:0; left:0; right:0; bottom:0;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(3px); z-index: 1;
}
.hero-content {
  position: relative; z-index: 2; max-width: 800px; padding: 2rem;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 1rem;
}
.hero-content p {
  font-size: clamp(1rem, 2vw, 1.25rem); opacity: 0.9; margin-bottom: 2rem;
}
.hero-content a {
  display: inline-block; padding: 0.9rem 2.5rem; background: #fff; color: #1e3c72;
  border-radius: 40px; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2); transition: 0.2s;
}

/* Features / Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.card-grid .card-item {
  background: #fff; border-radius: 16px; padding: 2rem;
  text-align: center; border: 1px solid #e5e7eb;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04);
  transition: transform 0.2s;
}
.card-grid .card-item:hover { transform: translateY(-3px); }
.card-grid .card-item i { font-size: 2.5rem; color: var(--primary); margin-bottom: 1rem; }
.card-grid .card-item h3 { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.5rem; }
.card-grid .card-item p { color: var(--muted); font-size: 0.95rem; }


/* ===== Auth button (visually distinct from nav links) ===== */
.auth-area {
  margin-left: 1.5rem;
  padding-left: 1.5rem;
  border-left: 2px solid var(--border);
}
.btn-auth {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 25px;
  padding: 0.55rem 1.8rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(79,70,229,0.25);
  letter-spacing: 0.2px;
}
.btn-auth:hover {
  background: #3730e0;
  box-shadow: 0 4px 14px rgba(79,70,229,0.35);
  transform: translateY(-1px);
}




/* Article list (compact rows) */
.article-list {
  display: flex; flex-direction: column; gap: 1rem;
}
.article-item {
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; border-radius: 12px; padding: 1rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid #f1f5f9;
}
.article-item .article-info { flex:1; min-width:0; }
.article-item .article-info .badge-article {
  font-size: 0.75rem; font-weight: 600; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.2rem;
}
.article-item .article-title {
  font-size: 1rem; font-weight: 600; margin-bottom: 0.3rem;
}
.article-item .article-title a { color: var(--text); text-decoration: none; }
.article-item .article-title a:hover { color: var(--primary); }
.article-item .article-meta {
  font-size: 0.85rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem;
}
.article-item .article-actions { display: flex; gap: 0.5rem; margin-left: 1rem; flex-shrink: 0; }

/* CTA section */
.cta-section {
  position: relative; padding: 4rem 2rem; text-align: center; color: #fff;
  background: linear-gradient(135deg, #1e3c72, #2a5298);
}
.cta-section .cta-overlay {
  position: absolute; top:0; left:0; right:0; bottom:0; background: rgba(0,0,0,0.5);
  z-index: 1;
}
.cta-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.cta-content h2 { font-size: 2rem; font-weight: 700; }
.cta-content p { font-size: 1.1rem; opacity: 0.9; margin: 1rem 0 2rem; }
.cta-content a {
  display: inline-block; padding: 0.9rem 2.5rem; background: #fff; color: #1e3c72;
  border-radius: 40px; font-weight: 700; text-decoration: none;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* Editorial Board page */
.editorial-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; margin-bottom: 2.5rem; padding-bottom: 1rem; border-bottom: 2px solid var(--border);
}
.editorial-toolbar h2 { font-size: 2rem; font-weight: 700; }
.search-box { position: relative; }
.search-box input {
  width: 250px; padding: 0.6rem 1rem 0.6rem 2.5rem; border: 1px solid var(--border);
  border-radius: 30px; font-size: 0.95rem; background: #f9fafb; outline: none;
}
.search-box i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.filter-select {
  padding: 0.6rem 1.2rem; border-radius: 30px; border: 1px solid var(--border);
  background: #f9fafb; font-size: 0.95rem; outline: none;
}
.member-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem;
}
.member-card {
  background: #fff; border-radius: 16px; padding: 1.5rem;
  box-shadow: 0 4px 14px rgba(0,0,0,0.04); border: 1px solid #f3f4f6;
  transition: 0.2s;
}
.member-card:hover { box-shadow: 0 10px 25px rgba(0,0,0,0.06); transform: translateY(-2px); }
.member-role {
  font-size: 0.8rem; font-weight: 600; color: var(--primary);
  text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.3rem;
}
.member-name { font-size: 1.1rem; font-weight: 600; margin-bottom: 0.4rem; }
.member-details { font-size: 0.9rem; color: var(--muted); margin-bottom: 0.3rem; display: flex; gap: 0.5rem; }
.member-details i { color: var(--primary); width: 1rem; }