/* ============================================================
   NIBS Education — Global Styles
   Palette: Navy #1B3A6B · Ice White #F4F7FB · Orange #F97316
   ============================================================ */

:root {
  --navy:   #1B3A6B;
  --dark:   #0D1E3A;
  --accent: #2563EB;
  --orange: #F97316;
  --light:  #F4F7FB;
  --white:  #FFFFFF;
  --muted:  #64748B;
  --border: #DBEAFE;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
  background: var(--dark);
  color: var(--light);
  scroll-behavior: smooth;
}

/* ── NAVBAR ── */
#main-nav {
  background: transparent;
  transition: background 0.4s ease, box-shadow 0.4s ease;
  padding: 1rem 0;
  --bs-navbar-color:             rgba(255,255,255,0.8);
  --bs-navbar-hover-color:       #fff;
  --bs-navbar-active-color:      #fff;
  --bs-navbar-disabled-color:    rgba(255,255,255,0.4);
  --bs-navbar-brand-color:       #fff;
  --bs-navbar-brand-hover-color: #fff;
  --bs-navbar-toggler-border-color: rgba(255,255,255,0.2);
  --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255%2C255%2C255%2C0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

#main-nav.scrolled,
#main-nav.menu-open {
  background: rgba(27, 58, 107, 0.97);
  box-shadow: 0 2px 20px rgba(27,58,107,0.3);
  backdrop-filter: blur(10px);
}

#main-nav.menu-open {
  transition: background 0.05s, box-shadow 0.05s;
}

.navbar-brand {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand-nibs {
  color: #fff;
}

.brand-edu {
  color: var(--muted);
  font-weight: 300;
}

#main-nav .nav-link {
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  font-weight: 400;
  transition: color 0.2s;
}

#main-nav .nav-link:hover,
#main-nav .nav-link.active {
  color: #fff;
}

.btn-cta {
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1.4rem;
  border-radius: 50px;
  border: none;
  transition: background 0.2s, transform 0.2s;
  text-decoration: none;
}

.btn-cta:hover {
  background: #e2e8f0;
  transform: translateY(-1px);
}

/* ── HERO ── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-image: url('/assets/images/hero-bg.webp');
  background-size: cover;
  background-position: center top;
  background-color: var(--navy); /* fallback if image missing */
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(10, 15, 30, 0.85) 0%,
    rgba(10, 15, 30, 0.55) 60%,
    rgba(10, 15, 30, 0.3) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 5rem;
  max-width: 720px;
}

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.2rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  line-height: 1.7;
  margin-bottom: 2.5rem;
}

.btn-hero-primary {
  background: #fff;
  color: var(--navy);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
}

.btn-hero-primary:hover {
  background: #e2e8f0;
  transform: translateY(-2px);
  color: var(--navy);
}

.btn-hero-outline {
  background: transparent;
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
  padding: 0.85rem 2.2rem;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.5);
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.btn-hero-outline:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* Scroll hint dot */
.hero-scroll-hint {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero-scroll-hint span {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.5; }
  50%       { transform: translateY(8px); opacity: 1; }
}

/* ── HIGHLIGHTS ── */
.highlights-section {
  background: #0d1321;
  padding: 5rem 0;
}

.highlight-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  height: 100%;
  transition: transform 0.25s, border-color 0.25s;
}

.highlight-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.35);
}

.highlight-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.highlight-card h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

.highlight-card p {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}

.link-arrow {
  color: var(--orange);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.link-arrow:hover {
  color: #FB923C;
}

/* ── LANGUAGE DROPDOWN ── */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.btn-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 0.28rem 0.72rem;
  border-radius: 50px;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.07em;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
}

.btn-lang:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}

.lang-chevron {
  font-size: 0.7em;
  opacity: 0.7;
  display: inline-block;
  transition: transform 0.2s;
}

.lang-dropdown.open .lang-chevron {
  transform: rotate(180deg);
}

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  background: rgba(10, 21, 38, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 8px;
  list-style: none;
  padding: 0.3rem;
  margin: 0;
  min-width: 100%;
  z-index: 1100;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.lang-dropdown.open .lang-menu {
  display: block;
}

.lang-menu li button {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: rgba(255,255,255,0.75);
  font-family: 'Inter', sans-serif;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  padding: 0.35rem 0.65rem;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.lang-menu li button:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}

.lang-menu li button.active {
  color: #fff;
}

.lang-menu li button.active::before {
  content: '✓ ';
  font-size: 0.7em;
}

/* ── INFO BUTTON & MODAL ── */
.info-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(27,58,107,0.1);
  border: 1.5px solid rgba(27,58,107,0.3);
  color: #1B3A6B;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s, border-color 0.15s;
  line-height: 1;
  padding: 0;
  vertical-align: middle;
  font-style: normal;
}

.info-btn:hover {
  background: rgba(27,58,107,0.18);
  border-color: #1B3A6B;
}

.info-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.info-modal.open {
  display: flex;
}

.info-modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 2rem 1.75rem;
  width: 100%;
  max-width: 540px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-height: 80vh;
  overflow-y: auto;
}

.info-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #94a3b8;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.15s, background 0.15s;
}

.info-modal-close:hover {
  color: #1e293b;
  background: #f1f5f9;
}

.info-modal-title {
  color: #1B3A6B;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-right: 2rem;
}

.info-modal-body {
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.75;
}

.info-modal-body p { margin-bottom: 0.75rem; }
.info-modal-body p:last-child { margin-bottom: 0; }
.info-modal-body strong { color: #1B3A6B; }

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  color: var(--muted);
  font-size: 0.85rem;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ── FEEDBACK TAB ── */
#feedback-wrap {
  position: fixed;
  top: 50%;
  right: 0;
  z-index: 1050;
  transform: translateY(-50%);
  display: flex;
  align-items: stretch;
  box-shadow: -2px 0 12px rgba(0,0,0,0.25);
}

#feedback-toggle {
  width: 20px;
  min-height: 36px;
  background: var(--orange);
  border: none;
  border-radius: 8px 0 0 8px;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  transition: background 0.2s;
  flex-shrink: 0;
}

#feedback-toggle:hover {
  background: #ea6f0a;
}

#feedback-btn {
  writing-mode: vertical-rl;
  padding: 1.1rem 0.7rem;
  background: var(--orange);
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  max-width: 60px;
  max-height: 200px;
  transition: max-width 0.35s ease, max-height 0.35s ease, opacity 0.25s ease;
}

#feedback-wrap.collapsed #feedback-btn {
  max-width: 0;
  max-height: 0;
  opacity: 0;
}

#feedback-btn:hover {
  background: #ea6f0a;
  color: #fff;
  text-decoration: none;
}

@media print {
  #feedback-wrap { display: none !important; }
}
