/* ===========================
   GLOBAL DESIGN TOKENS
   =========================== */
:root {
  --primary-color: #0f2c4c;
  --primary-hover-color: #163a63;
  --secondary-color: #1b9aaa;
  --secondary-hover-color: #147988;
  --bg-color: #ffffff;
  --light-color: #f5f7fa;
  --dark-color: #111827;
  --text-color: #1f2933;
  --muted-text: #6b7280;
  --border-color: #e5e7eb;
  --font-family-sans-serif: "Roboto", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-family-heading: "Montserrat", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

/* ===========================
   BASE
   =========================== */
* {
  box-sizing: border-box;
}

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

a {
  text-decoration: none;
  color: inherit;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

main {
  background-color: var(--bg-color);
}

/* Shared page shell */
.content-page {
  padding: 3.5rem 0 3rem;
}

.page-title {
  font-family: var(--font-family-heading);
  font-size: 2rem;
  margin: 0 0 0.75rem;
}

.page-intro {
  max-width: flex;
  font-size: 0.98rem;
  color: var(--muted-text);
  margin-bottom: 2.25rem;
}

/* Generic sections on index */
section {
  padding: 3.5rem 0;
}

section h2 {
  font-family: var(--font-family-heading);
  font-size: 1.8rem;
  margin: 0 0 1rem;
}

/* ===========================
   GLOBAL HEADER / NAV
   =========================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--primary-color);
  color: #e5e7eb;
  box-shadow: 0 2px 4px rgba(0,0,0,0.16);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  gap: 2rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* image logo */
.logo-img {
  height: 70px;
  width: auto;
  display: block;
}

/* optional letter mark (used on index hero) */
.logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: radial-gradient(circle at 20% 10%, #1b9aaa, #0f2c4c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f9fafb;
  font-weight: 800;
  font-family: var(--font-family-heading);
  font-size: 1.2rem;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-text span:first-child {
  font-family: var(--font-family-heading);
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 1rem;
  text-transform: uppercase;
}

.logo-text span:last-child {
  font-size: 0.82rem;
  color: #d1d5db;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.main-nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: #e5e7eb;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.main-nav a:hover {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.main-nav a.is-active {
  border-color: var(--secondary-color);
  color: #ffffff;
}

/* Header responsiveness */
@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    flex-wrap: wrap;
    justify-content: flex-start;
    row-gap: 0.35rem;
  }
}

/* ===========================
   GLOBAL BUTTONS
   =========================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.6rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.05s ease;
}

.btn-primary {
  background-color: var(--secondary-color);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(0,0,0,0.35);
}

.btn-primary:hover {
  background-color: var(--secondary-hover-color);
  transform: translateY(-1px);
}

.btn-ghost {
  background-color: transparent;
  color: #e5e7eb;
  border: 1px solid rgba(229, 231, 235, 0.45);
}

.btn-ghost:hover {
  background-color: rgba(15, 23, 42, 0.2);
}

/* ===========================
   GLOBAL FOOTER
   =========================== */
.site-footer {
  background: radial-gradient(circle at top left, #1b9aaa 0, #0f2c4c 55%, #050b14 100%);
  color: #e5e7eb;
  padding: 2.5rem 0 1.8rem;
  margin-top: 3rem;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  align-items: flex-start;
}

@media (max-width: 900px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

.footer-about h3 {
  font-family: var(--font-family-heading);
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}

.footer-about p {
  font-size: 0.9rem;
  color: #cbd5f5;
  max-width: 22rem;
}

.footer-column h4 {
  font-family: var(--font-family-heading);
  font-size: 0.95rem;
  margin: 0 0 0.6rem;
}

.footer-column h4 + ul.footer-links + h4 {
  margin-top: 1rem; /* add space above "Connect" */
}

.footer-column h4:nth-of-type(2) {
  padding-top: 1rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.401);
}


.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
}

.footer-links li + li {
  margin-top: 0.4rem;
}

.footer-links a {
  color: #e5e7eb;
  transition: color 0.18s ease;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-social {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 1rem;
}

.footer-connect-email {
  margin: 0.2rem 0 0.6rem;
  font-size: 0.9rem;
}

.footer-connect-email a {
  color: #e5e7eb;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-connect-email a:hover {
  color: #ffffff;
}

.footer-social-row {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  font-size: 1.1rem;
}

.footer-contact-group {
  margin-top: 1.2rem;
}

.footer-connect-group {
  margin-top: 1.4rem;
}


.footer-social-row a {
  color: #e5e7eb;
  transition: color 0.18s ease;
}

.footer-social-row a:hover {
  color: #ffffff;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
  margin-top: 1.8rem;
  padding-top: 0.8rem;
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #9ca3af;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-logo-img {
  width: 48px;
}

@media (max-width: 600px) {
  .footer-logo-img {
    width: 36px;
  }
}


.back-to-top {
  color: #e5e7eb;
}

/* ===========================
   NAV DROPDOWN (CONFERENCES)
   =========================== */

/* Wrapper for Conferences item */
.nav-item--has-dropdown {
  position: relative;
  display: inline-block;
}

/* Parent link – same visual style as other nav links */
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #e5e7eb;
  padding-bottom: 0.2rem;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
}

/* Hover & active just like .main-nav a */
.nav-link:hover {
  color: var(--secondary-color);
  border-color: var(--secondary-color);
}

.nav-link.is-active {
  border-color: var(--secondary-color);
  color: #ffffff;
}

.nav-caret {
  font-size: 0.6rem;
  transition: transform 0.2s ease;
}

.nav-item--has-dropdown:hover .nav-caret,
.nav-item--has-dropdown:focus-within .nav-caret {
  transform: rotate(180deg);
}


/* DROPDOWN PANEL – SIMPLE VERSION */
/* DROPDOWN PANEL – ANIMATED */
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background-color: #ffffff;
  color: var(--dark-color);
  border-radius: 0.5rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.28);
  padding: 0.35rem 0;
  z-index: 120;

  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);  /* 👈 comes from above */
  pointer-events: none;

  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}
.nav-dropdown {
  min-width: 0;          /* ✅ remove forced width */
  width: max-content;    /* ✅ size to content */
  padding-right: 0.2rem; /* small safety margin */
}

/* Dropdown links – same font size feel */
.nav-dropdown a {
  display: flex;
  align-items: center;
  width: 100%;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.2;
   padding: 0.3rem 0.6rem; 
  color: var(--dark-color);
  white-space: nowrap;

  /* animation base state */
  opacity: 0;

    transform: translateY(-8px); /* stronger motion */
transition: 0.25s ease-out;
}

.nav-dropdown a:nth-child(1) { transition-delay: 0.05s; }
.nav-dropdown a:nth-child(2) { transition-delay: 0.1s; }
.nav-dropdown a:nth-child(3) { transition-delay: 0.15s; }
.nav-dropdown a:nth-child(4) { transition-delay: 0.2s; }


.nav-dropdown a:hover {
  background-color: var(--light-color);
  color: var(--primary-color);
}


/* SHOW DROPDOWN ON HOVER / FOCUS */
.nav-item--has-dropdown:hover .nav-dropdown,
.nav-item--has-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Animate items in sequence */
.nav-item--has-dropdown:hover .nav-dropdown a,
.nav-item--has-dropdown:focus-within .nav-dropdown a {
  opacity: 1;
  transform: translateY(0);
}

.nav-item--has-dropdown:has(.nav-dropdown a.is-active) > .nav-link {
  color: #ffffff;
  border-color: var(--secondary-color);
}

.nav-item--has-dropdown:has(.nav-dropdown a.is-active) .nav-caret {
  transform: rotate(180deg);
}

.nav-subpage {
  position: relative;
  top: 0.3em;
  font-size: 0.6em;
  opacity: 0.7;
}

.nav-link:not(.is-active) .nav-subpage {
  display: none;
}


/* Mobile: keep positioning reasonable */
@media (max-width: 720px) {
  .nav-dropdown {
    left: 0;
    right: auto;
  }
}




