/* Copyright (C) 2026 Aedishub+ - All Rights Reserved. Confidential and Proprietary. */
/* Universal reset for all elements, including ::after and ::before */
*,
::after,
::before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  /* Ensures padding/border doesn't affect width/height */
}

/* Define custom CSS variables */
:root {
  --bg-color: #f0ebe5;
  /* Light beige background */
  --primary-color: #0E5354;
  /* Teal color for primary elements */
  --secondary-color: #E4C766;
  /* Gold/yellow color for secondary elements */
  --text-color: #333;
  /* Dark text color for readability */
  --heading-color: #0E5354;
  /* Teal color for headings */
  --font-family: "Roboto", sans-serif;
  /* Custom font family */
}

body {
  background-color: var(--bg-color);
  font-family: var(--font-family);
  color: var(--text-color);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p {
  font-size: 1rem;
  margin-bottom: 1em;
  line-height: 1.7;
}

a {
  text-decoration: none;
  transition: color 0.2s ease;
}



img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive typography */
@media (min-width: 768px) {
  h1 { font-size: 3rem; }
  h2 { font-size: 2.5rem; }
  h3 { font-size: 1.75rem; }
  p { font-size: 1.125rem; }
}

@media (min-width: 1024px) {
  h1 { font-size: 3.5rem; }
  h2 { font-size: 3rem; }
  h3 { font-size: 2rem; }
}

.font-lexend {
  font-family: "Lexend Mega", sans-serif;
}

.font-nunito {
  font-family: "Nunito Sans", sans-serif;
}

.text-color {
  color: var(--heading-color);
}

.button-color {
  background: var(--secondary-color);
}

/* Fix navbar semi-bold on articles page - force normal weight */
.nav-link-hover,
[role="navigation"] a {
  font-weight: 400 !important;
}

/* Container with proper max-width and responsive padding */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1rem;
}

@media (min-width: 640px) {
  .container {
    padding: 1rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 1rem;
  }
}

/* Accessibility improvements */
:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: 2px;
}

/* Skip to main content link for accessibility */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--primary-color);
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Print styles */
@media print {
  body {
    background: white;
    color: black;
  }
  
  a {
    text-decoration: underline;
  }
  
  .no-print {
    display: none !important;
  }
}
/* ── REGISTRATION DEMO MODE & TOOLTIPS ── */
.demo-active form {
  opacity: 0.85;
  filter: grayscale(20%);
  position: relative;
}

.demo-banner {
  animation: slideInDown 0.5s ease-out;
}

@keyframes slideInDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.custom-field-tooltip {
  position: absolute;
  z-index: 9999;
  background: white;
  color: #0E5354;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border: 1px solid #0E5354;
  max-width: 250px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px) translateX(-50%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.custom-field-tooltip.show {
  opacity: 1;
  transform: translateY(-100%) translateX(-50%);
  margin-top: -5px;
}

.custom-field-tooltip::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #0E5354;
}

.field-tooltip-icon {
  cursor: help;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: #f0f2f5;
  border-radius: 50%;
  font-size: 11px;
  font-weight: bold;
  color: #6b7280;
  margin-left: 4px;
}

.demo-active .field-tooltip-icon {
  pointer-events: auto !important; /* Allow tooltips even if form is blocked */
}
