@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Lato:wght@400;700&display=swap');

:root {
  --asi-blue-dark: #2e3192;
  --asi-blue-light: #00aeef;
  --asi-black: #111111;
  --asi-white: #ffffff;
  --asi-grey: #f5f6fa;

  --radius-pill: 999px;
  --radius-soft: 10px;

  --asi-gradient: linear-gradient(135deg, var(--asi-blue-dark) 0%, var(--asi-blue-light) 100%);
  --shadow-soft: 0 4px 16px rgba(46, 49, 146, 0.10);
  --shadow-lift: 0 12px 28px rgba(46, 49, 146, 0.20);
  --transition-fast: 0.18s ease;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  color: var(--asi-black);
  background: var(--asi-white);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main.container {
  flex: 1;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

h1, h2, h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  color: var(--asi-blue-dark);
  margin-top: 0;
}

h4, h5, .small-title {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  color: var(--asi-blue-dark);
}

p, li {
  line-height: 1.5;
}

a {
  color: var(--asi-blue-dark);
  text-decoration: none;
}

a:hover {
  color: var(--asi-blue-light);
}

.topbar {
  background: var(--asi-blue-light);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 6px 24px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
}

.topbar a,
.topbar .user-greeting {
  color: var(--asi-white);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease;
}

.topbar a:hover {
  background: rgba(255, 255, 255, 0.2);
  color: var(--asi-white);
}

.navbar {
  background: var(--asi-blue-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  position: relative;
  box-shadow: 0 4px 20px rgba(17, 17, 17, 0.18);
}

.navbar .logo img {
  height: 44px;
}

.navbar nav.main-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.main-links [data-min-role] {
  display: none;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: inline-block;
}

.navbar nav.main-links > a,
.navbar nav.main-links > .nav-item > a {
  color: var(--asi-white);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  transition: background 0.15s ease;
}

.navbar nav.main-links > a:hover,
.navbar nav.main-links > .nav-item > a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--asi-white);
}

.navbar nav.main-links > a.active,
.navbar nav.main-links > .nav-item > a.active {
  background: var(--asi-blue-light);
  color: var(--asi-white);
}

.dropdown-menu {
  display: block;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--asi-white);
  border-radius: var(--radius-soft);
  box-shadow: var(--shadow-lift);
  padding: 8px;
  z-index: 20;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--transition-fast), transform var(--transition-fast), visibility var(--transition-fast);
}

.nav-item.dropdown:hover .dropdown-menu,
.nav-item.dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu a {
  display: block;
  color: var(--asi-blue-dark);
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 6px;
}

.dropdown-menu a:hover {
  background: var(--asi-grey);
  color: var(--asi-blue-dark);
}

.dropdown-menu a.active {
  background: var(--asi-blue-light);
  color: var(--asi-white);
}

button, .btn, .highlight {
  background: var(--asi-gradient);
  color: var(--asi-white);
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

button:hover, .btn:hover, .highlight:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
  background: var(--asi-gradient);
  filter: brightness(1.06);
}

button:active, .btn:active, .highlight:active {
  transform: translateY(0);
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  display: inline-block;
  margin-bottom: 20px;
  background: transparent;
  color: var(--asi-blue-dark);
  border: 2px solid var(--asi-blue-dark);
  border-radius: var(--radius-pill);
  padding: 8px 20px;
  font-weight: 700;
  transition: transform var(--transition-fast), background var(--transition-fast), color var(--transition-fast);
}

.btn-outline:hover {
  background: var(--asi-blue-dark);
  color: var(--asi-white);
  transform: translateY(-2px);
}

.card {
  background: var(--asi-white);
  border-radius: var(--radius-soft);
  padding: 20px;
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

footer {
  background: var(--asi-black);
  color: var(--asi-white);
  padding: 32px 24px 20px;
  font-family: 'Lato', sans-serif;
}

footer .footer-partners {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

footer .footer-partners img {
  height: 28px;
  filter: grayscale(1) brightness(2);
  opacity: 0.85;
}

footer .footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  font-size: 0.85rem;
}

footer .footer-legal a {
  color: var(--asi-white);
  opacity: 0.7;
  margin-right: 16px;
}

footer .footer-legal a:hover {
  opacity: 1;
  color: var(--asi-white);
}

footer .footer-social {
  display: flex;
  gap: 16px;
}

footer .footer-social a {
  color: var(--asi-white);
}

footer .footer-login {
  background: transparent;
  border: 1px solid var(--asi-white);
  color: var(--asi-white);
  border-radius: var(--radius-pill);
  padding: 6px 16px;
  font-weight: 700;
}

footer .footer-login:hover {
  background: var(--asi-white);
  color: var(--asi-black);
}

.hero {
  background: var(--asi-gradient);
  color: var(--asi-white);
  border-radius: var(--radius-soft);
  padding: 48px 40px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-lift);
}

.hero h1 {
  color: var(--asi-white);
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.hero p {
  max-width: 560px;
  font-size: 1.05rem;
  opacity: 0.95;
}

.hero .btn {
  background: var(--asi-white);
  color: var(--asi-blue-dark);
  margin-top: 16px;
}

.hero .btn:hover {
  filter: none;
  background: var(--asi-grey);
}

.hero .btn-outline {
  color: var(--asi-white);
  border-color: var(--asi-white);
}

.hero .btn-outline:hover {
  background: var(--asi-white);
  color: var(--asi-blue-dark);
}

.hero ol, .hero ul {
  padding-left: 20px;
}

.hero-full {
  position: relative;
  overflow: hidden;
  width: 100%;
  min-height: 420px;
  display: flex;
  align-items: center;
  background: var(--asi-gradient);
  color: var(--asi-white);
  box-shadow: var(--shadow-lift);
}

.hero-full .hero-image {
  position: absolute;
  right: 2%;
  bottom: 0;
  height: 112%;
  width: auto;
  max-width: 55%;
  object-fit: contain;
  object-position: bottom right;
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 720px) {
  .hero-full .hero-image {
    display: none;
  }
}

.hero-full .hero-inner {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 56px 24px;
  width: 100%;
}

.hero-full .hero-inner > * {
  max-width: 480px;
}

.hero-full h1 {
  color: var(--asi-white);
  font-size: 2.6rem;
  margin-bottom: 12px;
}

.hero-full p {
  max-width: 560px;
  font-size: 1.05rem;
  opacity: 0.95;
  margin-bottom: 20px;
}

.hero-full .btn {
  background: var(--asi-white);
  color: var(--asi-blue-dark);
  box-shadow: none;
}

.hero-full .btn:hover {
  filter: none;
  background: var(--asi-grey);
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin: 32px 0;
}

.quick-links a {
  padding: 10px 22px;
  font-size: 0.95rem;
}

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-blue { background: var(--asi-blue-light); color: var(--asi-white); }
.badge-dark { background: var(--asi-blue-dark); color: var(--asi-white); }
.badge-red { background: #d9364a; color: var(--asi-white); }
.badge-grey { background: #e5e7f0; color: #555; }

form {
  max-width: 480px;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 18px;
  color: var(--asi-black);
}

label small {
  display: block;
  font-weight: 400;
  color: #666;
  margin: 2px 0 4px;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="date"],
input[type="number"],
input[type="url"],
select,
textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 14px;
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: var(--asi-black);
  border: 1px solid #cbd0e0;
  border-radius: var(--radius-soft);
  background: var(--asi-white);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--asi-blue-light);
  box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.2);
}

label:has(input[type="checkbox"]) {
  font-weight: 400;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

input[type="checkbox"] {
  width: auto;
  margin-top: 4px;
  accent-color: var(--asi-blue-dark);
}

form .form-message,
#message,
#deleteMessage {
  display: inline-block;
  font-weight: 700;
  margin-top: 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--asi-blue-dark);
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  color: var(--asi-blue-dark);
}

td {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7f0;
  vertical-align: middle;
}

tr:hover td {
  background: var(--asi-grey);
}

.btn-danger {
  background: transparent;
  color: #a00;
  border: 1px solid #a00;
  border-radius: var(--radius-pill);
  padding: 6px 14px;
  font-weight: 700;
}

.btn-danger:hover {
  background: #a00;
  color: var(--asi-white);
}

.request-card {
  border: 1px solid #e5e7f0;
  border-radius: var(--radius-soft);
  padding: 16px 20px;
  margin-bottom: 14px;
}

.page-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.event-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  text-decoration: none;
  color: inherit;
}

.event-card:hover {
  color: inherit;
}

.event-card.is-inactive {
  opacity: 0.55;
  filter: grayscale(70%);
}

.event-card-image {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-soft);
  flex-shrink: 0;
}

.event-card-body {
  flex: 1;
}

.event-card-body h2 {
  margin-bottom: 4px;
}

.event-price-block {
  text-align: right;
}

.event-price-value {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--asi-blue-dark);
}

.event-price-tiers {
  display: flex;
  gap: 24px;
  justify-content: flex-end;
}

.event-price-tier {
  text-align: center;
}