:root {
  /* Brand Color Palette */
  --primary-color: #077BC3;
  --primary-hover: #086199;
  --text-dark: #1e293b;
  --text-muted: #64748b;
  --bg-surface: #f8fafc;
  --bg-white: #ffffff;
  --border-subtle: #e2e8f0;

  /* Responsive Fluid Container Constraint */
  --site-max-width: 1380px;
}

/* Base Setup */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* Universal Fixed-Ratio Container for All Screens (including 27"+) */
.app-container {
  width: 100%;
  max-width: var(--site-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: clamp(1rem, 3vw, 2.5rem);
  padding-right: clamp(1rem, 3vw, 2.5rem);
}

/* Header & Navigation Styling */
.custom-header {
  background-color: var(--bg-white);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(8px);
}

.custom-nav-link {
  color: var(--text-dark) !important;
  font-weight: 500;
  font-size: clamp(0.9rem, 0.95vw, 1.05rem);
  padding: 0.5rem 1rem !important;
  transition: color 0.2s ease;
}

.custom-nav-link:hover {
  color: var(--primary-color) !important;
}

/* Buttons */
.btn-brand-primary {
  background-color: var(--primary-color);
  border: 1px solid var(--primary-color);
  color: #ffffff !important;
  font-weight: 500;
  font-size: clamp(0.9rem, 0.95vw, 1.05rem);
  border-radius: 8px;
  padding: 0.5rem 1.4rem;
  transition: all 0.2s ease;
}

.btn-brand-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 4px 12px rgba(11, 123, 193, 0.25);
}

.btn-brand-link {
  color: var(--primary-color) !important;
  font-weight: 600;
  font-size: clamp(0.9rem, 0.95vw, 1.05rem);
  text-decoration: none;
  padding: 0.5rem 0.8rem;
}

.btn-brand-link:hover {
  color: var(--primary-hover) !important;
}

/* Responsive Hero / Dashboard Card */
.hero-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: clamp(2rem, 5vw, 4.5rem);
  margin-top: clamp(1.5rem, 3vw, 3.5rem);
  margin-bottom: clamp(1.5rem, 3vw, 3.5rem);
}

.hero-title {
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.25vw, 1.35rem);
  color: var(--text-muted);
  max-width: 750px;
}

/* Custom Dropdown Styling */
.custom-dropdown-menu {
  border-radius: 12px;
  padding: 0.5rem;
  background-color: var(--bg-white);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid var(--border-subtle);
  min-width: 190px;
  margin-top: 0.4rem;
}

.custom-dropdown-item {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-dark);
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.custom-dropdown-item:hover {
  background-color: #f1f6fb;
  color: var(--primary-color);
  transform: translateX(3px);
}

/* Open Dropdown on Hover on Desktop (min-width: 992px) */
@media (min-width: 992px) {
  .custom-nav-dropdown:hover .custom-dropdown-menu {
    display: block;
    animation: fadeInSlide 0.2s ease forwards;
  }
}

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

/* Footer Pinning & Styling */
.app-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-subtle);
  background-color: #fafbfc;
  padding: 1.5rem 0;
}