/* ==========================================================================
   IJMAP — International Journal of Management and Psychology
   Official Global Portal (ijmapglobal.com)
   Modern Minimalist Design System — Poppins Typography & Academic Teal
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400;1,500&display=swap');

:root {
  --primary-teal: #008080;
  --primary-teal-hover: #006666;
  --primary-teal-light: #20b2aa;
  --primary-teal-subtle: #e6f6f5;
  --primary-teal-border: #b2dfdb;

  --navy-darkest: #040914;
  --navy-dark: #07132b;
  --navy-primary: #0d2044;
  --navy-light: #163366;
  --navy-subtle: #f0f4f9;

  --slate-dark: #0f172a;
  --slate-body: #334155;
  --slate-muted: #64748b;
  --slate-light: #f8fafc;
  --slate-border: #e2e8f0;

  --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
}

body {
  font-family: var(--font-family);
  color: var(--slate-body);
  background-color: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
}

@supports not (overflow-x: clip) {
  html, body {
    overflow-x: hidden;
  }
}

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

img, svg, video, iframe {
  max-width: 100%;
  height: auto;
}

p, a, span, h1, h2, h3, h4, h5, h6, li, td, th {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ── Typography Utility ──────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-family);
  color: var(--navy-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.font-display {
  font-family: var(--font-family);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* ── Top Announcement Bar ────────────────────────────────────────── */
.top-announcement-bar {
  background: linear-gradient(90deg, #050d1a 0%, #0d2044 50%, #050d1a 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-family);
  width: 100%;
  overflow-x: hidden;
}

/* ── Sticky Clean Navbar ─────────────────────────────────────────── */
#navbar {
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  transition: all 0.25s ease-in-out;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--slate-border);
  width: 100%;
  max-width: 100%;
}

#navbar.scrolled {
  box-shadow: 0 4px 20px -2px rgba(13, 32, 68, 0.12);
}

#mobile-menu {
  max-height: calc(100vh - 4.5rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-link {
  font-family: var(--font-family);
  font-weight: 500;
  font-size: 0.8125rem;
  letter-spacing: 0.01em;
  color: #1e293b;
  padding: 0.35rem 0.5rem;
  position: relative;
  transition: all 0.18s ease;
  white-space: nowrap;
  border-radius: 0.375rem;
  display: inline-flex;
  align-items: center;
}

@media (min-width: 1280px) and (max-width: 1440px) {
  .nav-link {
    font-size: 0.78rem;
    padding: 0.3rem 0.42rem;
  }
}

.nav-link:hover {
  color: var(--primary-teal);
  background-color: rgba(0, 128, 128, 0.05);
}

.nav-link.active {
  color: var(--primary-teal);
  font-weight: 600;
  background-color: var(--primary-teal-subtle);
}

/* Mobile Menu Links (Comfortable Touch Target) */
#mobile-menu a {
  min-height: 42px;
  display: flex;
  align-items: center;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background-color: var(--primary-teal);
  color: #ffffff !important;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.825rem;
  padding: 0.6rem 1.25rem;
  border-radius: 0.375rem;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 128, 128, 0.25);
  white-space: nowrap;
}

.btn-primary:hover {
  background-color: var(--primary-teal-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 128, 128, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background-color: #ffffff;
  color: var(--navy-primary);
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.825rem;
  padding: 0.6rem 1.15rem;
  border-radius: 0.375rem;
  border: 1px solid var(--slate-border);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-secondary:hover {
  background-color: var(--slate-light);
  border-color: var(--primary-teal);
  color: var(--primary-teal);
  transform: translateY(-1px);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  font-family: var(--font-family);
  font-weight: 600;
  font-size: 0.825rem;
  padding: 0.6rem 1.25rem;
  border-radius: 0.375rem;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

.btn-primary, .btn-secondary, .btn-outline-white {
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .btn-primary, .btn-secondary, .btn-outline-white {
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }
}

/* ── Hero Section (FIXED COLOR & VISIBILITY) ─────────────────────── */
.hero-gradient {
  background: linear-gradient(135deg, #050d1a 0%, #0d2044 55%, #0f3554 100%) !important;
  color: #ffffff !important;
  position: relative;
  overflow: hidden;
}

.hero-gradient::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 15%, rgba(0, 128, 128, 0.28) 0%, transparent 50%),
                    radial-gradient(circle at 15% 85%, rgba(32, 178, 170, 0.15) 0%, transparent 40%);
  pointer-events: none;
}

.hero-gradient h1 {
  color: #ffffff !important;
  font-weight: 800;
}

.hero-gradient p {
  color: #e2e8f0 !important;
}

/* ── Badges ──────────────────────────────────────────────────────── */
.badge-academic {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: var(--primary-teal-subtle);
  color: var(--primary-teal-hover);
  border: 1px solid var(--primary-teal-border);
  white-space: nowrap;
}

.badge-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  white-space: nowrap;
}

/* ── Section Titles ──────────────────────────────────────────────── */
.section-subtitle {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-teal);
  margin-bottom: 0.4rem;
  display: inline-block;
}

.section-title {
  font-weight: 800;
  color: var(--navy-primary);
  letter-spacing: -0.02em;
}

.section-rule {
  width: 40px;
  height: 3px;
  background: var(--primary-teal);
  border-radius: 2px;
  margin-top: 0.65rem;
  margin-bottom: 1.15rem;
}

.section-rule.center {
  margin-left: auto;
  margin-right: auto;
}

/* ── Cards ───────────────────────────────────────────────────────── */
.academic-card {
  background-color: #ffffff;
  border: 1px solid var(--slate-border);
  border-radius: 0.5rem;
  padding: 1.5rem;
  transition: all 0.25s ease;
}

.academic-card:hover {
  border-color: var(--primary-teal-border);
  box-shadow: 0 10px 25px -5px rgba(13, 32, 68, 0.08);
  transform: translateY(-2px);
}

.card-icon-wrapper {
  width: 3rem;
  height: 3rem;
  border-radius: 0.5rem;
  background-color: var(--primary-teal-subtle);
  color: var(--primary-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(0, 128, 128, 0.15);
}

/* ── Sidebar Meta Card ───────────────────────────────────────────── */
.meta-box {
  background-color: var(--slate-light);
  border: 1px solid var(--slate-border);
  border-radius: 0.5rem;
  padding: 1.35rem;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.7rem 0;
  border-bottom: 1px dashed var(--slate-border);
  font-size: 0.84rem;
}

.meta-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.meta-label {
  font-weight: 600;
  color: var(--navy-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.meta-value {
  color: var(--slate-muted);
  text-align: right;
  font-weight: 500;
}

/* ── Process Steps Timeline ──────────────────────────────────────── */
.step-item {
  position: relative;
  padding-left: 2.75rem;
  padding-bottom: 1.75rem;
}

.step-item:last-child {
  padding-bottom: 0;
}

.step-item::before {
  content: '';
  position: absolute;
  left: 1.15rem;
  top: 2.25rem;
  bottom: 0;
  width: 2px;
  background-color: var(--slate-border);
}

.step-item:last-child::before {
  display: none;
}

.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background-color: var(--primary-teal);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  border: 3px solid #ffffff;
  box-shadow: 0 0 0 1px var(--primary-teal);
}

/* ── Interactive Checklist ───────────────────────────────────────── */
.checklist-item {
  cursor: pointer;
  padding: 0.8rem 1rem;
  border-radius: 0.375rem;
  border: 1px solid var(--slate-border);
  transition: all 0.2s ease;
  user-select: none;
}

.checklist-item:hover {
  background-color: var(--slate-light);
  border-color: #cbd5e1;
}

.checklist-item.checked {
  background-color: var(--primary-teal-subtle);
  border-color: var(--primary-teal-border);
}

/* ── Modals ──────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(7, 19, 43, 0.7);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: #ffffff;
  border-radius: 0.5rem;
  width: 100%;
  max-width: 44rem;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--slate-border);
}

/* ── Footer ──────────────────────────────────────────────────────── */
footer {
  background-color: var(--navy-darkest);
  color: #94a3b8;
  border-top: 3px solid var(--primary-teal);
}

.footer-link {
  color: #cbd5e1;
  font-size: 0.84rem;
  transition: color 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-link:hover {
  color: var(--primary-teal-light);
}
