/* =============================================
   ResearchPublished.com — RSIS International
   Design: Deep Navy + Ivory + Gold Academic
   ============================================= */

:root {
  --navy:       #0d1b2a;
  --navy-mid:   #1a2f45;
  --navy-light: #243d56;
  --gold:       #c9a84c;
  --gold-light: #e8c96a;
  --ivory:      #f8f5ef;
  --white:      #ffffff;
  --text:       #2c3e50;
  --text-light: #5a6a7a;
  --border:     #e0ddd6;
  --green:      #2d6a4f;
  --purple:     #5e3a8c;
  --amber:      #b55e1f;
  --blue:       #1a4f8a;
  --shadow-sm:  0 2px 8px rgba(13,27,42,0.08);
  --shadow-md:  0 6px 24px rgba(13,27,42,0.12);
  --shadow-lg:  0 16px 48px rgba(13,27,42,0.16);
  --radius:     8px;
  --radius-lg:  16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

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

/* ---- TOP BAR ---- */
.topbar {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  padding: 8px 0;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-links a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}

/* ---- NAVBAR ---- */
.navbar {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark {
  width: 44px; height: 44px;
  background: var(--navy);
  color: var(--gold);
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-main { font-size: 18px; font-weight: 600; color: var(--navy); }
.logo-sub  { font-size: 11px; color: var(--text-light); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius);
  transition: all 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--navy);
  background: var(--ivory);
}

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  min-width: 280px;
  padding: 8px 0;
  list-style: none;
  z-index: 200;
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu li a {
  display: block;
  padding: 10px 20px;
  font-size: 14px;
  color: var(--text);
  border-radius: 0;
}
.dropdown-menu li a:hover { background: var(--ivory); color: var(--navy); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--navy);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary   { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-mid); border-color: var(--navy-mid); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline   { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-ghost     { background: transparent; color: var(--navy); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-gold      { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.btn-gold:hover { background: var(--gold-light); }
.btn-sm        { padding: 8px 16px; font-size: 13px; }
.btn-full      { width: 100%; justify-content: center; }

/* ---- SECTIONS ---- */
.section { padding: 80px 0; }
.bg-navy  { background: var(--navy); color: var(--white); }
.bg-light { background: var(--ivory); }

.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-header h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 40px);
  color: var(--navy);
  margin: 8px 0 16px;
  line-height: 1.25;
}
.section-header.light h2 { color: var(--white); }
.section-sub { color: var(--text-light); font-size: 17px; }
.section-header.light .section-sub { color: rgba(255,255,255,0.7); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(201,168,76,0.1);
  padding: 4px 12px;
  border-radius: 20px;
}
.eyebrow-gold { color: var(--gold); background: rgba(201,168,76,0.15); }

/* ---- HERO ---- */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-bg-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(201,168,76,0.06) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(201,168,76,0.04) 0%, transparent 40%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  border: 1px solid rgba(201,168,76,0.4);
  color: var(--gold);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 6px 18px;
  border-radius: 20px;
  margin-bottom: 28px;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.15;
  max-width: 720px;
  margin-bottom: 24px;
}
.hero-accent { color: var(--gold); }
.hero-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.75);
  max-width: 580px;
  margin-bottom: 40px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 56px; }
.hero-cta .btn-outline { border-color: rgba(255,255,255,0.4); color: var(--white); }
.hero-cta .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: var(--white); }

.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.stat { display: flex; flex-direction: column; gap: 2px; }
.stat-num { font-family: 'Playfair Display', serif; font-size: 32px; color: var(--gold); font-weight: 700; }
.stat-label { font-size: 13px; color: rgba(255,255,255,0.6); }
.stat-divider { width: 1px; height: 40px; background: rgba(255,255,255,0.15); }

/* ---- JOURNALS ---- */
.journals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.journal-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all 0.25s;
  box-shadow: var(--shadow-sm);
}
.journal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--gold); }
.journal-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  width: fit-content;
}
.tag-blue   { background: #e8f0fb; color: var(--blue); }
.tag-green  { background: #e6f4ee; color: var(--green); }
.tag-amber  { background: #fdf0e6; color: var(--amber); }
.tag-purple { background: #f0eaf8; color: var(--purple); }

.journal-abbr {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
}
.journal-card h3 { font-size: 15px; font-weight: 600; color: var(--navy); line-height: 1.4; }
.journal-card p  { font-size: 14px; color: var(--text-light); flex-grow: 1; }
.journal-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--text-light);
  flex-wrap: wrap;
}
.journal-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }

/* ---- WHY SECTION ---- */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.why-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.2s;
}
.why-card:hover { background: rgba(255,255,255,0.1); border-color: rgba(201,168,76,0.4); }
.why-icon { font-size: 32px; margin-bottom: 12px; }
.why-card h4 { font-size: 17px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.why-card p  { font-size: 14px; color: rgba(255,255,255,0.65); }

/* ---- NEWSLETTER ---- */
.newsletter-box {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.newsletter-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: 32px;
  color: var(--navy);
  margin: 8px 0 16px;
}
.newsletter-left p { color: var(--text-light); margin-bottom: 20px; }
.newsletter-benefits { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.newsletter-benefits li { font-size: 14px; color: var(--text); font-weight: 500; }

.newsletter-form { display: flex; flex-direction: column; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(13,27,42,0.08);
}
.form-note { font-size: 12px; color: var(--text-light); text-align: center; }

/* ---- QUICK LINKS ---- */
.quicklinks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.qlink {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.2s;
}
.qlink:hover { border-color: var(--navy); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.qlink-icon { font-size: 28px; flex-shrink: 0; }
.qlink strong { display: block; font-weight: 600; color: var(--navy); font-size: 15px; }
.qlink span { font-size: 13px; color: var(--text-light); }
.qlink-arrow { margin-left: auto; font-size: 20px; color: var(--text-light); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 60px 0 50px;
}
.page-hero .eyebrow { margin-bottom: 16px; display: block; }
.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2;
  margin-bottom: 16px;
}
.page-hero p { font-size: 17px; color: rgba(255,255,255,0.7); max-width: 580px; }

/* ---- GENERAL CONTENT ---- */
.content-section { padding: 60px 0; }
.content-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.content-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--navy);
  margin-bottom: 16px;
}
.steps-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.steps-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.step-num {
  width: 36px; height: 36px;
  background: var(--navy);
  color: var(--gold);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
}
.step-content strong { display: block; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.step-content p { font-size: 14px; color: var(--text-light); }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.three-col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.info-card {
  background: var(--ivory);
  border-radius: var(--radius-lg);
  padding: 28px;
  border-left: 4px solid var(--gold);
}
.info-card h4 { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 10px; }
.info-card p  { font-size: 14px; color: var(--text-light); }

/* ---- FOOTER ---- */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.75);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--white);
  font-size: 18px;
  font-weight: 600;
}
.footer-logo .logo-mark { background: rgba(255,255,255,0.1); }
.footer-brand p { font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.footer-main-link { color: var(--gold); font-size: 14px; font-weight: 500; text-decoration: none; }
.footer-main-link:hover { text-decoration: underline; }
.footer-col h5 {
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--gold); }
.footer-bottom {
  padding: 20px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  text-align: center;
}

/* ---- ALERT/MESSAGE ---- */
.alert {
  padding: 14px 20px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 20px;
}
.alert-success { background: #e6f4ee; color: #2d6a4f; border: 1px solid #b0d9c0; }
.alert-error   { background: #fde8e8; color: #c0392b; border: 1px solid #f0b0b0; }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .newsletter-box { grid-template-columns: 1fr; padding: 36px 24px; gap: 32px; }
  .two-col { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); padding: 16px; gap: 4px; box-shadow: var(--shadow-md); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero-stats { gap: 20px; }
  .stat-divider { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .journals-grid { grid-template-columns: 1fr; }
  .three-col { grid-template-columns: 1fr; }
  .topbar-inner { flex-direction: column; gap: 4px; font-size: 12px; }
  .dropdown-menu { position: static; box-shadow: none; border: none; padding-left: 12px; }
}
