/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* ── BPS logo palette ── */
  --royal: #1E3A8A; --royal-deep: #15306E; --royal-press: #102554;
  --forest: #0B6E3B; --forest-deep: #0A5C31;
  --gold: #C0922E; --gold-deep: #8A6A18;
  --mint: #A8E49A; --mint-deep: #3F7A33;
  --royal-wash: #EEF1FA; --forest-wash: #EAF5EE; --gold-wash: #FBF5E7; --mint-wash: #F0FAEC;

  /* ── legacy aliases (now mapped to new palette) ── */
  --green-primary: #1E3A8A;
  --green-dark: #15306E;
  --green-hero-btn: #1E3A8A;
  --green-muted: #0B6E3B;
  --gradient-hero: #FFFFFF;
  --gradient-page: #FFFFFF;
  --text-dark: #1B2230;
  --text-body: #525E72;
  --white: #ffffff;
  --nav-height: 64px;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Playfair Display', Georgia, serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: #FFFFFF;
  overflow-x: hidden;
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  z-index: 100;
  /* System-wide navbar gradient — applied to every page via common.css */
  background: linear-gradient(135deg, #1E3A8A 0%, #15306E 55%, #0B6E3B 100%) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.navbar__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-dark);
}

.navbar__logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(30,58,138,0.25);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  flex-shrink: 0;
  object-fit: cover;
}

.navbar__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.navbar__logo svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

.navbar__logo::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid rgba(30,58,138,0.3);
  opacity: 0.6;
  pointer-events: none;
}

.navbar__title {
  margin: 0;               /* now an <h3>; neutralize default heading margins */
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #ffffff;
}

.navbar__right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.navbar__links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}

.navbar__links a:hover {
  color: #ffffff;
}

.navbar__links a:hover::after {
  width: 100%;
}

.navbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: var(--green-primary);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(30,58,138,0.3);
}

.navbar__cta:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(30,58,138,0.4);
}

.navbar__cta svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.navbar__cta:hover svg {
  transform: translateX(3px);
}

/* Profile avatar button in navbar */
.navbar__profile {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-primary), #15306E);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid rgba(30,58,138,0.3);
  position: relative;
}

.navbar__profile:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 16px rgba(30,58,138,0.3);
  border-color: var(--green-primary);
}

.navbar__profile svg {
  width: 20px;
  height: 20px;
  fill: var(--white);
}

/* Hidden by default, shown when logged in */
.navbar__profile { display: none; }
body.logged-in .navbar__profile { display: flex; }
body.logged-in .navbar__cta { display: none; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 40px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  min-width: 160px;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.15);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn:hover::before {
  transform: translateX(0);
}

.btn--primary {
  background: #1E3A8A;
  color: var(--white);
  box-shadow: 0 6px 24px rgba(30,58,138,0.35);
}

.btn--primary:hover {
  background: #15306E;
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(30,58,138,0.45);
}

.btn--secondary {
  background: #4A6BC5;
  color: var(--white);
  box-shadow: 0 4px 16px rgba(74,107,197,0.25);
}

.btn--secondary:hover {
  background: #3A5BB5;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(74,107,197,0.35);
}

.btn--accent {
  background: #7B95D8;
  color: var(--white);
  box-shadow: 0 6px 24px rgba(123,149,216,0.35);
}

.btn--accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(123,149,216,0.45);
}

.btn--white {
  background: var(--white);
  color: var(--text-dark);
  font-weight: 700;
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(255,255,255,0.25);
}

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.3);
}

.btn--outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}

/* ===== CONTAINER & SECTION COMMON ===== */
.container {
  max-width: 1140px;
  margin: 0 auto;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--green-primary);
  margin-bottom: 12px;
}

.section-heading {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  color: var(--text-dark);
  margin-bottom: 16px;
  line-height: 1.15;
}

.section-subheading {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  max-width: 560px;
  margin-bottom: 56px;
}

/* ===== FOOTER ===== */
.footer {
  padding: 60px 24px 30px;
  background: #0d1f14;
  color: rgba(255,255,255,0.6);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer__brand-desc {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 16px;
  max-width: 300px;
}

.footer__heading {
  font-weight: 700;
  font-size: 14px;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer__links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s ease;
}

.footer__links a:hover {
  color: var(--green-primary);
}

.footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer__copyright {
  font-size: 13px;
}

.footer__legal {
  display: flex;
  gap: 24px;
}

.footer__legal a {
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.3s ease;
}

.footer__legal a:hover {
  color: var(--green-primary);
}

/* ===== REVEAL ANIMATION ===== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== RESPONSIVE COMMON ===== */
@media (max-width: 900px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 0 20px;
  }
  .navbar__title {
    font-size: 11px;
    letter-spacing: 1px;
  }
  .navbar__cta {
    padding: 8px 18px;
    font-size: 13px;
  }
  .navbar__links {
    display: none;
  }
  .btn {
    width: 100%;
    max-width: 280px;
  }
  .footer__grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ===== NOTIFICATION BELL (number inside bell body) ===== */
.navbar__notif {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.navbar__notif:hover {
  transform: scale(1.12);
}

.navbar__notif svg {
  width: 26px;
  height: 26px;
  overflow: visible;
}

.navbar__notif-badge {
  display: none !important; /* hidden — count shown inside SVG */
}

/* ===== NOTIFICATION BELL (number inside bell body) ===== */
.navbar__notif {
  position: relative;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.navbar__notif:hover {
  transform: scale(1.12);
}

.navbar__notif svg {
  width: 26px;
  height: 26px;
  overflow: visible;
}

.navbar__notif-badge {
  display: none !important;
}

/* ===== STYLED FILE INPUT ===== */
.file-pick {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  max-width: 100%;
}
.file-pick__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  background: #1E3A8A;
  color: #fff;
  border-radius: 9px;
  font-size: 12.5px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  transition: background .15s;
  flex-shrink: 0;
  border: none;
  line-height: 1;
}
.file-pick:hover .file-pick__btn { background: #15306E; }
.file-pick__name {
  display: block;
  font-size: 12px;
  color: #718096;
  max-width: 240px;
  width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 9px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  background: #f8fafc;
  font-family: 'Inter', sans-serif;
  line-height: 1;
  box-sizing: border-box;
}
