/* ROOT
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

:root {
   --site-topbar-height: 42px;
   --site-header-height: 92px;
   --site-header-height-scrolled: 78px;
}


/* HEADER
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.site-header {
   position: sticky;
   top: 0;
   z-index: var(--z-header);
   width: 100%;
   background-color: var(--color-white);
   transition: box-shadow var(--transition-normal);
}

.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(23, 25, 71, 0.10); }


/* TOPBAR
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.site-topbar {
   min-height: var(--site-topbar-height);
   color: rgba(255, 255, 255, 0.94);
   background: linear-gradient(90deg, var(--color-primary-deep), var(--color-primary));
}

.site-topbar-inner {
   display: flex;
   align-items: center;
   justify-content: space-between;
   min-height: var(--site-topbar-height);
   gap: 2rem;
   font-size: 0.875rem;
   font-weight: var(--font-weight-medium);
}

.site-topbar-theme { flex: 0 0 auto; white-space: nowrap; }
.site-topbar-theme strong { color: var(--color-accent-light); }

.site-topbar-right {
   display: flex;
   align-items: center;
   justify-content: flex-end;
   gap: 1.5rem;
   min-width: 0;
}

.site-topbar-event {
   display: flex;
   align-items: center;
   gap: 0.9rem;
   white-space: nowrap;
}

.site-topbar-event i { color: var(--color-accent); }

.site-topbar-divider {
   width: 1px;
   height: 16px;
   background-color: rgba(255, 255, 255, 0.30);
}

@media (max-width: 1199.98px) {
   .site-topbar { display: none; }
}


/* ACCOUNT LINKS
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.site-account-actions {
   display: flex;
   align-items: center;
   align-self: stretch;
   min-height: var(--site-topbar-height);
}

.site-account-link {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   gap: 0.45rem;
   align-self: stretch;
   padding: 0 1rem;
   font-size: 0.85rem;
   font-weight: var(--font-weight-semibold);
   white-space: nowrap;
   color: var(--color-white);
   transition: color var(--transition-fast), background-color var(--transition-fast);
}

.site-account-link:hover { color: var(--color-white); }

.site-account-link.register { background-color: rgba(255, 255, 255, 0.10); }
.site-account-link.register:hover { background-color: rgba(255, 255, 255, 0.18); }

.site-account-link.login {
   color: var(--color-primary-deep);
   background-color: var(--color-accent);
}

.site-account-link.login:hover {
   color: var(--color-primary-deep);
   background-color: var(--color-accent-light);
}


/* NAVBAR
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.site-navbar {
   min-height: var(--site-header-height);
   padding: 0;
   background-color: rgba(255, 255, 255, 0.98);
   transition: min-height var(--transition-normal), padding var(--transition-normal);
}

.site-header.is-scrolled .site-navbar { min-height: var(--site-header-height-scrolled); }

@media (max-width: 1199.98px) {
   .site-navbar { min-height: auto; padding: 0.9rem 0; }
   .site-header.is-scrolled .site-navbar { min-height: auto; padding: 0.7rem 0; }

   .site-navbar .navbar-collapse {
      margin-top: 0.9rem;
      padding: 0.75rem 0 0.25rem;
      border-top: var(--border-width) solid var(--color-border-light);
   }
}


/* BRAND
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.site-brand {
   display: flex;
   align-items: center;
   gap: 0.8rem;
   margin-right: 2rem;
   padding: 0;
}

.site-brand-logo {
   display: block;
   flex: 0 0 auto;
   width: auto;
   height: 66px;
   transition: height var(--transition-normal);
}

.site-header.is-scrolled .site-brand-logo { height: 56px; }

.site-brand-content {
   display: flex;
   flex-direction: column;
   justify-content: center;
   min-width: 0;
   line-height: 1;
}

.site-brand-title {
   font-family: var(--font-heading);
   font-size: 1.15rem;
   font-weight: var(--font-weight-extrabold);
   letter-spacing: -0.02em;
   color: var(--color-primary);
   white-space: nowrap;
}

.site-brand-title strong { color: var(--color-secondary); }

.site-brand-title sup {
   position: relative;
   top: -0.4em;
   font-size: 0.55em;
}

.site-brand-tagline {
   margin-top: 0.45rem;
   font-size: 0.72rem;
   font-weight: var(--font-weight-semibold);
   color: var(--color-primary);
   white-space: nowrap;
}

.site-brand-tagline strong { color: var(--color-secondary); }

@media (max-width: 767.98px) {
   .site-brand { gap: 0.6rem; margin-right: 1rem; }
   .site-brand-logo { height: 52px; }
   .site-header.is-scrolled .site-brand-logo { height: 48px; }
   .site-brand-title { font-size: 0.88rem; }
   .site-brand-tagline { font-size: 0.62rem; }
}

@media (max-width: 575.98px) {
   .site-brand { max-width: calc(100% - 58px); gap: 0.5rem; }
   .site-brand-logo { flex: 0 0 auto; height: 46px; }
   .site-header.is-scrolled .site-brand-logo { height: 44px; }

   .site-brand-content {
      min-width: 0;
      overflow: hidden;
   }

   .site-brand-title, .site-brand-tagline {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
   }

   .site-brand-title { font-size: 0.76rem; }
   .site-brand-tagline { font-size: 0.56rem; }
}


/* NAVIGATION
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.site-nav {
   align-items: center;
   gap: 0.05rem;
}

.site-nav-link {
   position: relative;
   padding: 0.9rem 0.7rem !important;
   font-size: 0.975rem;
   font-weight: var(--font-weight-semibold);
   color: var(--color-text-dark) !important;
   white-space: nowrap;
   transition: color var(--transition-fast);
}

.site-nav-link:hover,
.site-nav-link:focus,
.site-nav-link.active,
.site-nav-link.show {
   color: var(--color-secondary) !important;
}


/* Main menu underline */

.site-nav-link::before {
   content: "";
   position: absolute;
   left: 50%;
   bottom: 0.35rem;
   width: 0;
   height: 2px;
   border-radius: var(--border-radius-pill);
   background-color: var(--color-secondary);
   transform: translateX(-50%);
   transition: width var(--transition-normal);
}

.site-nav-link:hover::before,
.site-nav-link:focus::before,
.site-nav-link.active::before,
.site-nav-link.show::before,
.site-nav .dropdown:hover > .site-nav-link::before {
   width: calc(100% - 1.3rem);
}

.site-nav .dropdown:hover > .site-nav-link {
   color: var(--color-secondary) !important;
}

@media (max-width: 1199.98px) {
   .site-nav {
      align-items: stretch;
      gap: 0;
   }

   .site-nav-link {
      padding: 0.8rem 0.25rem !important;
      font-size: 0.975rem;
   }

   .site-nav-link::before {
      left: 0;
      bottom: 0.35rem;
      transform: none;
   }

   .site-nav-link:hover::before,
   .site-nav-link:focus::before,
   .site-nav-link.active::before,
   .site-nav-link.show::before,
   .site-nav .dropdown:hover > .site-nav-link::before {
      width: 28px;
   }
}


/* NAVBAR DROPDOWN
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.site-navbar .dropdown-toggle::after {
   position: static;
   display: inline-block;
   width: 0;
   height: 0;
   margin-left: 0.35rem;
   vertical-align: 0.15em;
   content: "";
   border-top: 0.3em solid;
   border-right: 0.3em solid transparent;
   border-bottom: 0;
   border-left: 0.3em solid transparent;
   background: transparent;
   transform: none;
}

.site-navbar .dropdown-menu {
   min-width: 190px;
   margin-top: 0;
   padding: 0.6rem;
   border: 0;
   border-radius: var(--border-radius-md);
   background-color: var(--color-white);
   box-shadow: 0 12px 32px rgba(23, 25, 71, 0.14);
}

.site-navbar .dropdown-item {
   padding: 0.65rem 0.85rem;
   border-radius: calc(var(--border-radius-md) - 0.15rem);
   font-weight: var(--font-weight-semibold);
   color: var(--color-text-dark);
   transition: color var(--transition-fast), background-color var(--transition-fast);
}

.site-navbar .dropdown-item:hover,
.site-navbar .dropdown-item:focus,
.site-navbar .dropdown-item.active {
   color: var(--color-primary);
   background-color: rgba(47, 49, 146, 0.08);
}

@media (max-width: 1199.98px) {
   .site-navbar .dropdown-menu {
      min-width: 0;
      margin: 0;
      padding: 0.25rem 0 0.25rem 1rem;
      border-radius: 0;
      box-shadow: none;
   }

   .site-navbar .dropdown-item {
      padding: 0.6rem 0.75rem;
   }
}


/* MOBILE ACCOUNT ACTIONS
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.site-mobile-account-actions { display: none; }

@media (max-width: 1199.98px) {
   .site-mobile-account-actions {
      display: flex;
      gap: 0.75rem;
      margin-top: 1rem;
      padding-top: 1rem;
      border-top: var(--border-width) solid var(--color-border-light);
   }

   .site-mobile-account-actions a { flex: 1; }
}

@media (max-width: 575.98px) {
   .site-mobile-account-actions { flex-direction: column; }
}


/* NAVBAR TOGGLER
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.site-navbar-toggler {
   flex: 0 0 44px;
   width: 44px;
   height: 44px;
   padding: 0;
   border: var(--border-width) solid var(--color-border);
   border-radius: var(--border-radius-md);
   box-shadow: none !important;
}

.site-navbar-toggler:hover { border-color: var(--color-primary); }

.site-navbar-toggler-icon {
   display: flex;
   flex-direction: column;
   align-items: center;
   justify-content: center;
   gap: 5px;
   width: 100%;
   height: 100%;
}

.site-navbar-toggler-icon span {
   display: block;
   width: 20px;
   height: 2px;
   border-radius: var(--border-radius-pill);
   background-color: var(--color-primary-deep);
   transition: transform var(--transition-normal), opacity var(--transition-fast);
}

.site-navbar-toggler[aria-expanded="true"] .site-navbar-toggler-icon span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-navbar-toggler[aria-expanded="true"] .site-navbar-toggler-icon span:nth-child(2) { opacity: 0; }
.site-navbar-toggler[aria-expanded="true"] .site-navbar-toggler-icon span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* MAIN
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.site-main {
   position: relative;
   min-height: 60vh;
}


/* FOOTER
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.site-footer {
   position: relative;
   color: var(--color-white);
   background: linear-gradient(135deg, #073d91 0%, #075fbd 100%);
}

.footer-main { padding: 3.5rem 0; }

.footer-column { min-height: 165px; }

@media (min-width: 1200px) {
   .footer-column {
      padding-left: 2.5rem;
      padding-right: 2.5rem;
   }

   .footer-column:first-child { padding-left: calc(var(--bs-gutter-x) * 0.5); }
   .footer-column:last-child { padding-right: calc(var(--bs-gutter-x) * 0.5); }

   .footer-column:not(:last-child) {
      border-right: 1px solid rgba(255, 255, 255, 0.18);
   }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
   .footer-column { min-height: auto; }

   .footer-brand-column {
      padding-bottom: 1.5rem;
      text-align: center;
   }

   .footer-brand-column .footer-brand {
      justify-content: center;
      margin: 0 auto;
   }

   .footer-brand-column .footer-brand-content {
      align-items: center;
      text-align: center;
   }

   .footer-brand-column .footer-event-details {
      justify-content: center;
   }

   .footer-column:nth-child(3) {
      padding-left: 2.5rem;
      border-left: 1px solid rgba(255, 255, 255, 0.18);
   }
}

@media (max-width: 767.98px) {
   .footer-main { padding: 3rem 0; }

   .footer-column {
      min-height: auto;
      text-align: center;
   }
}


/* FOOTER BRAND
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.footer-brand {
   display: flex;
   align-items: center;
   gap: 1.25rem;
   width: fit-content;
   color: var(--color-white);
   text-decoration: none;
}

.footer-brand:hover { color: var(--color-white); }

.footer-brand-logo {
   flex: 0 0 auto;
   width: auto;
   height: 96px;
}

.footer-brand-content {
   display: flex;
   flex-direction: column;
}

.footer-brand-title {
   font-family: var(--font-h);
   font-weight: var(--font-weight-bold);
   color: var(--color-white);
}

.footer-brand-title strong { color: var(--color-secondary); }

.footer-brand-tagline {
   margin-top: 0.2rem;
   color: rgba(255, 255, 255, 0.72);
}

.footer-brand-tagline strong { color: var(--color-accent-light); }

.footer-event-details {
   display: flex;
   align-items: center;
   flex-wrap: wrap;
   gap: 0;
   margin-top: 1.5rem;
   color: rgba(255, 255, 255, 0.82);
}

.footer-event-details > span {
   display: flex;
   align-items: center;
}

.footer-event-details > span i {
   width: 18px;
   margin-right: 0.65rem;
   text-align: center;
   color: var(--color-accent-light);
}

.footer-event-details > span + span {
   margin-left: 1.25rem;
   padding-left: 1.25rem;
   border-left: 1px solid rgba(255, 255, 255, 0.28);
}

@media (max-width: 767.98px) {
   .footer-brand {
      justify-content: center;
      margin: 0 auto;
   }

   .footer-brand-content {
      align-items: center;
      text-align: center;
   }

   .footer-event-details {
      justify-content: center;
   }
}

@media (max-width: 575.98px) {
   .footer-brand {
      flex-direction: column;
      gap: 0.85rem;
   }

   .footer-brand-logo { height: 82px; }

   .footer-event-details {
      flex-direction: column;
      align-items: center;
      gap: 0.65rem;
   }

   .footer-event-details > span {
      justify-content: center;
   }

   .footer-event-details > span + span {
      margin-left: 0;
      padding-left: 0;
      border-left: 0;
   }
}


/* FOOTER TITLE & LINKS
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.footer-title {
   margin-bottom: 1rem;
   color: var(--color-white);
}

.footer-links {
   display: flex;
   flex-direction: column;
   gap: 0.45rem;
}

.footer-links a {
   width: fit-content;
   color: rgba(255, 255, 255, 0.72);
   text-decoration: none;
   transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-links a:hover {
   color: var(--color-accent-light);
   transform: translateX(3px);
}

@media (max-width: 767.98px) {
   .footer-title { text-align: center; }

   .footer-links {
      align-items: center;
      text-align: center;
   }

   .footer-links a { margin: 0 auto; }

   .footer-links a:hover { transform: none; }
}


/* FOOTER CONTACT
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.footer-contact {
   display: flex;
   flex-direction: column;
   gap: 0.85rem;
}

.footer-contact-item {
   display: flex;
   align-items: center;
   gap: 0.9rem;
   width: fit-content;
   color: var(--color-white);
   text-decoration: none;
}

.footer-contact-item:hover { color: var(--color-accent-light); }

.footer-contact-icon {
   display: flex;
   align-items: center;
   justify-content: center;
   flex: 0 0 42px;
   width: 42px;
   height: 42px;
   border: 1px solid rgba(255, 255, 255, 0.22);
   border-radius: 50%;
   color: var(--color-white);
   background-color: rgba(255, 255, 255, 0.10);
}

.footer-contact-item span:last-child {
   min-width: 0;
   font-weight: var(--font-weight-semibold);
}

.footer-contact-item small {
   display: block;
   margin-bottom: 0.1rem;
   font-weight: var(--font-weight-regular);
   color: rgba(255, 255, 255, 0.58);
}

@media (max-width: 767.98px) {
   .footer-contact {
      align-items: center;
      text-align: center;
   }

   .footer-contact-item {
      justify-content: center;
      margin: 0 auto;
      text-align: center;
   }

   .footer-contact-icon { display: none; }
}


/* FOOTER BOTTOM
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */

.footer-lower {
   border-top: 1px solid rgba(255, 255, 255, 0.12);
   background-color: rgba(3, 30, 82, 0.35);
}

.footer-bottom {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 2rem;
   padding: 1.25rem 0;
}

.footer-bottom p {
   margin: 0;
   color: rgba(255, 255, 255, 0.60);
   font-size: var(--font-size-sm);
}

.footer-credits {
   display: flex;
   flex-direction: column;
   align-items: flex-end;
   gap: 0.15rem;
   text-align: right;
}

.footer-bottom a {
   font-weight: var(--font-weight-semibold);
   color: var(--color-accent-light);
   text-decoration-color: rgba(248, 231, 173, 0.55);
   transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.footer-bottom a:hover {
   color: var(--color-white);
   text-decoration-color: var(--color-white);
}

@media (max-width: 767.98px) {
   .footer-bottom {
      flex-direction: column;
      align-items: center;
      gap: 0.75rem;
      text-align: center;
   }

   .footer-credits {
      align-items: center;
      text-align: center;
   }
}
