/* =====================================================================
   ROSPEN — "United by Clinical Nutrition" Bootstrap 5 Theme
*/

:root {
  /* Core navy backdrop (matches header background) */
  --rospen-navy-950: #061423;
  --rospen-navy-900: #0a1e33;
  --rospen-navy-800: #0d2a4a;
  --rospen-navy-700: #123a63;
  --rospen-navy-600: #1a4d80;

  /* Rope accent colors */
  --rospen-red:     #e5342b;
  --rospen-gold:    #f3b013;
  --rospen-blue:    #1f6fe0;
  --rospen-pink:    #ec3e91;
  --rospen-magenta: #c0299a;
  --rospen-purple:  #7b3ff2;
  --rospen-teal:    #1ea3a3;
  --rospen-green:   #2fb457;
  --rospen-orange:  #f2791b;
  --rospen-silver:  #aab4c2;
  --header-image: url('/upload/header-background.png');

  /* Bootstrap theme-color overrides */
  --bs-primary: var(--rospen-blue);
  --bs-primary-rgb: 31, 111, 224;
  --bs-secondary: var(--rospen-purple);
  --bs-secondary-rgb: 123, 63, 242;
  --bs-success: var(--rospen-green);
  --bs-success-rgb: 47, 180, 87;
  --bs-info: var(--rospen-teal);
  --bs-info-rgb: 30, 163, 163;
  --bs-warning: var(--rospen-gold);
  --bs-warning-rgb: 243, 176, 19;
  --bs-danger: var(--rospen-red);
  --bs-danger-rgb: 229, 52, 43;
  --bs-light: #f4f7fb;
  --bs-dark: var(--rospen-navy-950);
  --bs-body-bg: var(--rospen-navy-950);
  --bs-body-color: #dfe6ef;
  --bs-border-radius: 0.75rem;
  --bs-border-radius-lg: 1rem;
  --bs-border-radius-sm: 0.5rem;

  /* Signature gradients */
  --grad-hero: radial-gradient(120% 140% at 15% 20%,
                  var(--rospen-navy-700) 0%,
                  var(--rospen-navy-800) 45%,
                  var(--rospen-navy-950) 100%);
  --grad-rope: linear-gradient(90deg,
                  var(--rospen-red) 0%,
                  var(--rospen-gold) 16%,
                  var(--rospen-green) 33%,
                  var(--rospen-teal) 50%,
                  var(--rospen-blue) 66%,
                  var(--rospen-purple) 83%,
                  var(--rospen-pink) 100%);
  --grad-brand: linear-gradient(135deg, var(--rospen-blue) 0%, var(--rospen-purple) 55%, var(--rospen-pink) 100%);
  --grad-warm: linear-gradient(135deg, var(--rospen-orange) 0%, var(--rospen-red) 50%, var(--rospen-magenta) 100%);
  --grad-cool: linear-gradient(135deg, var(--rospen-teal) 0%, var(--rospen-blue) 60%, var(--rospen-purple) 100%);
  --grad-gold: linear-gradient(135deg, #ffd873 0%, var(--rospen-gold) 55%, var(--rospen-orange) 100%);
  --grad-card: linear-gradient(160deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.02) 100%);

  /* Shadows / glows */
  --shadow-sm: 0 2px 8px rgba(3, 10, 20, 0.35);
  --shadow-md: 0 10px 30px rgba(3, 10, 20, 0.45);
  --shadow-lg: 0 20px 55px rgba(3, 10, 20, 0.55);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  --glow-blue: 0 0 0 4px rgba(31, 111, 224, 0.25), 0 8px 24px rgba(31, 111, 224, 0.35);
  --glow-purple: 0 0 0 4px rgba(123, 63, 242, 0.25), 0 8px 24px rgba(123, 63, 242, 0.35);
  --glow-gold: 0 0 0 4px rgba(243, 176, 19, 0.25), 0 8px 24px rgba(243, 176, 19, 0.35);

  --font-heading: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --bs-gutter-x: 1.5rem; */
    /* --bs-gutter-y: 0;
}

/* ---------------------------------------------------------------------
   2. BASE / TYPOGRAPHY
   --------------------------------------------------------------------- */
body {
  background-color: var(--rospen-navy-950);
  background-image:
    radial-gradient(60% 50% at 85% 0%, rgba(123, 63, 242, 0.18) 0%, transparent 60%),
    radial-gradient(55% 45% at 10% 10%, rgba(31, 111, 224, 0.16) 0%, transparent 60%),
    var(--grad-hero);  
  background-attachment: fixed;
  color: var(--bs-body-color);
  font-family: var(--font-body);
  letter-spacing: 0.1px;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
}

a {
  color: #7fb2ff;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover { color: #a9c9ff; }

hr {
  border: none;
  height: 2px;
  background: var(--grad-rope);
  opacity: 0.6;
  border-radius: 2px;
}

::selection {
  background: rgba(123, 63, 242, 0.4);
  color: #fff;
}

/* Thin gradient scrollbar (webkit) */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--rospen-navy-900); }
::-webkit-scrollbar-thumb {
  background: var(--grad-brand);
  border-radius: 10px;
  border: 2px solid var(--rospen-navy-900);
}

/* ---------------------------------------------------------------------
   3. HERO / HEADER
   Recreates the banner's mood: navy gradient field, glow, rope divider.
   --------------------------------------------------------------------- */
.bg-hero {
  position: relative;
  background: var(--grad-hero);
  background-size: cover;
  background-position: center;
  color: #fff;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.bg-hero::before {
  /* soft colorful glow, echoing the braided heart */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(35% 60% at 70% 40%, rgba(233, 62, 145, 0.25) 0%, transparent 70%),
    radial-gradient(30% 55% at 55% 55%, rgba(243, 176, 19, 0.18) 0%, transparent 70%),
    radial-gradient(30% 55% at 80% 60%, rgba(31, 111, 224, 0.22) 0%, transparent 70%);
  pointer-events: none;
}

.bg-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 6px;
  background: var(--grad-rope);
}

.bg-hero .container,
.bg-hero .container-fluid {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 50rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cfe0ff;
  backdrop-filter: blur(6px);
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.hero-title .grad-text { display: inline-block; }

/* ---------------------------------------------------------------------
   4. GRADIENT TEXT & BORDER UTILITIES
   --------------------------------------------------------------------- */
.grad-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.grad-text-warm { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-text-cool { background: var(--grad-cool); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-text-gold { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }

.grad-rule {
  height: 4px;
  width: 100%;
  border-radius: 4px;
  background: var(--grad-rope);
}

.grad-border {
  position: relative;
  border-radius: var(--bs-border-radius-lg);
  padding: 1px;
  background: var(--grad-brand);
}
.grad-border > * {
  border-radius: calc(var(--bs-border-radius-lg) - 1px);
  background: var(--rospen-navy-900);
  display: block;
}

/* ---------------------------------------------------------------------
   5. NAVBAR
   --------------------------------------------------------------------- */
.navbar {
  background: linear-gradient(180deg, rgba(10, 30, 51, 0.96) 0%, rgba(10, 30, 51, 0.85) 100%);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.navbar-brand {
  font-family: var(--font-heading);
  font-weight: 700;
  color: #fff !important;
}

.navbar .nav-link {
  color: rgba(255, 255, 255, 0.75) !important;
  font-weight: 500;
  position: relative;
  padding-inline: 0.9rem;
  transition: color 0.2s ease;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #fff !important;
}
.navbar .nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: -2px;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-brand);
}

/* ---------------------------------------------------------------------
   6. BUTTONS
   --------------------------------------------------------------------- */
.btn {
  font-weight: 600;
  border-radius: 50rem;
  padding: 0.6rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--grad-cool);
  color: #fff;
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--grad-cool);
  box-shadow: var(--glow-blue);
  filter: brightness(1.08);
  color: #fff;
}

.btn-secondary {
  background: var(--grad-brand);
  color: #fff;
}
.btn-secondary:hover, .btn-secondary:focus {
  box-shadow: var(--glow-purple);
  filter: brightness(1.08);
  color: #fff;
}

.btn-warning {
  background: var(--grad-gold);
  color: #2a1a00;
}
.btn-warning:hover, .btn-warning:focus {
  box-shadow: var(--glow-gold);
  filter: brightness(1.05);
  color: #2a1a00;
}

.btn-outline-light {
  border: 1.5px solid rgba(255, 255, 255, 0.5);
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}
.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.btn-lg { padding: 0.85rem 2.1rem; font-size: 1.05rem; }

/* ---------------------------------------------------------------------
   7. CARDS
   --------------------------------------------------------------------- */
.card {
  background: var(--grad-card), var(--rospen-navy-900);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--bs-border-radius-lg);
  box-shadow: var(--shadow-md);
  color: #e7edf5;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 255, 255, 0.16);
}
.card-title { color: #fff; font-family: var(--font-heading); }
.card-header {
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 600;
}
.card-footer {
  background: rgba(0, 0, 0, 0.12);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* top accent stripe variants: <div class="card card-accent-warm"> */
.card-accent-top { position: relative; overflow: hidden; }
.card-accent-top::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-brand);
}
.card-accent-top.card-accent-warm::before { background: var(--grad-warm); }
.card-accent-top.card-accent-cool::before { background: var(--grad-cool); }
.card-accent-top.card-accent-gold::before { background: var(--grad-gold); }
.card-accent-top.card-accent-rope::before { background: var(--grad-rope); }

/* Glassmorphism variant for use on top of .bg-hero */
.glass-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--bs-border-radius-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-lg), var(--shadow-inset);
  color: #fff;
}

/* ---------------------------------------------------------------------
   8. BADGES / PILLS / TAGS
   --------------------------------------------------------------------- */
.badge {
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 0.45em 0.85em;
  border-radius: 50rem;
}
.badge.bg-primary { background: var(--grad-cool) !important; }
.badge.bg-secondary { background: var(--grad-brand) !important; }
.badge.bg-warning { background: var(--grad-gold) !important; color: #2a1a00 !important; }
.badge.bg-danger { background: var(--grad-warm) !important; }

.badge-outline {
  background: transparent;
  border: 1.5px solid;
  border-image: var(--grad-rope) 1;
  color: #fff;
}

/* ---------------------------------------------------------------------
   9. SECTIONS / DIVIDERS
   --------------------------------------------------------------------- */
.section {
  padding-block: clamp(3rem, 6vw, 6rem);
}

.section-muted {
  background: linear-gradient(180deg, var(--rospen-navy-900) 0%, var(--rospen-navy-950) 100%);
}

.section-title-wrap { margin-bottom: 2.5rem; }
.section-kicker {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Sponsor / logo strip, echoing the header's logo row */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--bs-border-radius-lg);
}
.logo-strip img {
  max-height: 42px;
  width: auto;
  filter: grayscale(20%) brightness(1.05);
  opacity: 0.9;
  transition: opacity 0.2s ease, filter 0.2s ease;
}
.logo-strip img:hover { opacity: 1; filter: none; }

/* ---------------------------------------------------------------------
   10. FORMS
   --------------------------------------------------------------------- */
.form-control, .form-select {
  background-color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  border-radius: var(--bs-border-radius-sm);
  padding: 0.65rem 0.9rem;
}
.form-control::placeholder { color: rgba(255, 255, 255, 0.45); }
.form-control:focus, .form-select:focus {
  background-color: rgba(255, 255, 255, 0.09);
  border-color: var(--rospen-blue);
  color: #000;
  box-shadow: var(--glow-blue);
}
.form-label { color: #cfe0ff; font-weight: 600; }

/* ---------------------------------------------------------------------
   11. TABLES
   --------------------------------------------------------------------- */
.table {
  --bs-table-bg: transparent;
  --bs-table-color: #dfe6ef;
  --bs-table-border-color: rgba(255, 255, 255, 0.1);
}
.table thead th {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: #a9c9ff;
  border-bottom-width: 2px;
}
.table-hover tbody tr:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* ---------------------------------------------------------------------
   12. ALERTS
   --------------------------------------------------------------------- */
.alert {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid;
  border-radius: var(--bs-border-radius);
  background: rgba(255, 255, 255, 0.05);
  color: #e7edf5;
}
.alert-primary { border-left-color: var(--rospen-blue); }
.alert-success { border-left-color: var(--rospen-green); }
.alert-warning { border-left-color: var(--rospen-gold); }
.alert-danger  { border-left-color: var(--rospen-red); }

/* ---------------------------------------------------------------------
   13. FOOTER
   --------------------------------------------------------------------- */
/* .footer {
  background: var(--rospen-navy-950);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
  position: relative;
}
.footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-rope);
} */
.footer a { color: rgba(255, 255, 255, 0.8); }
.footer a:hover { color: #fff; }

/* ---------------------------------------------------------------------
   14. MISC UTILITIES
   --------------------------------------------------------------------- */
.shadow-glow-blue   { box-shadow: var(--glow-blue) !important; }
.shadow-glow-purple { box-shadow: var(--glow-purple) !important; }
.shadow-glow-gold   { box-shadow: var(--glow-gold) !important; }

.bg-grad-brand { background: var(--grad-brand) !important; }
.bg-grad-warm  { background: var(--grad-warm) !important; }
.bg-grad-cool  { background: var(--grad-cool) !important; }
.bg-grad-gold  { background: var(--grad-gold) !important; }
.bg-grad-rope  { background: var(--grad-rope) !important; }

.rounded-xl { border-radius: var(--bs-border-radius-lg) !important; }

/* Fade-up entrance helper (pair with an IntersectionObserver if desired) */
.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.logo-header-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.logo-header {  
  max-height: 80px;
  max-width: 200px;
  margin-right: 1rem;
  background-color: rgba(255, 255, 255, 0.5);
  padding: .3rem 1rem;
  border-radius: var(--bs-border-radius-lg);
}

header, header .container {
    padding-left: 0;
    padding-right: 0;
}

.container-fluid {
    padding-left: 0;
    padding-right: 0;
}

.head-container {
    padding-left: 0;
    padding-right: 0;
    border-bottom: solid 1px rgba(255, 255, 255, 0.5);
    box-shadow: 0px 10px 10px rgba(255, 255, 255, 0.5);
}

footer {
    padding: 1rem 10px;
    background: var(--rospen-navy-950);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0px -5px 10px rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.65);
}

main {
    margin-top: 0;
    background-color: var(--rospen-navy-900);
    /* Darken the image so the page background is not washed out. */
    background-image:
      linear-gradient(rgba(88, 97, 108, 0.42), rgba(6, 20, 35, 0.42)),
      var(--header-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 80vh;
    /* height: 100vh; */
}

.foto {
    max-width: 150px;
    height: auto;
    border-radius: var(--bs-border-radius-lg);
    box-shadow: 0px 4px 6px rgba(255, 255, 255, 0.4);
}

main section {
    padding: 2rem 0;
}

.cards { 
    background-color: #fff;
    padding: 2rem;
    border-radius: var(--bs-border-radius-lg);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    color: var(--rospen-navy-900);
}

.cards h1, .cards h2, .cards h3, .cards h4, .cards h5, .cards h6 { 
    background-color: #fff;
    color: var(--rospen-navy-600);
}

.invalid-feedback {
    position: relative;
    top: -10px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 4px;
    border-bottom-left-radius: var(--bs-border-radius-sm);
    border-bottom-right-radius: var(--bs-border-radius-sm);
}

td { 
  color: #fff;
}

/* ---------------------------------------------------------------------
   15. RESPONSIVE TWEAKS
   --------------------------------------------------------------------- */
@media (max-width: 768px) {
  .hero-title { font-size: 2rem; }
  .logo-strip { gap: 1.5rem; }
  .section { padding-block: 2.5rem; }
  .container, .container-fluid { padding-left: 0!important; padding-right: 0!important; margin: 0; }
}
