:root {
  --ieee-blue: #00629b;
  --ieee-blue-dark: #004b78;
  --nav-blue: #07324f;
  --white: #ffffff;
  --text: #1f2937;
  --muted: #64748b;
  --border: #dbe6ee;
  --light: #edf7fc;
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
}

.site-header,
.site-header * {
  box-sizing: border-box;
}

.site-header {
  width: 100%;
  max-width: 100%;
  background: var(--white);
  position: relative;
  z-index: 1000;
}

.conference-header {
    width: 100%;
    padding: 18px 24px 14px;

    position: relative;
    overflow: hidden;

    border-top: 4px solid var(--ieee-blue);

    /* fallback background */
    background: #ffffff;
}


/* Institute building background */
.conference-header::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background-image: url("images/Admin-1.jpg");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;

    /* YOUR REQUIRED 50% OPACITY */
    opacity: 0.5;

    z-index: 0;
}


/* Keep logo + title + all text above background */
.header-main {
    width: min(1320px, 100%);
    margin: 0 auto;

    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns:
        minmax(110px, 160px)
        minmax(0, 1fr)
        minmax(110px, 160px);

    gap: clamp(12px, 2.3vw, 30px);

    align-items: center;
}

.header-logo {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.header-logo img {
  display: block;
  width: min(145px, 100%);
  height: auto;
  max-height: 145px;
  object-fit: contain;
}

.header-title {
  min-width: 0;
  text-align: center;
}

.header-title h1 {
  margin: 0;
  color: var(--ieee-blue);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.02em;
}

.header-title h2 {
  margin: 7px 0 0;
  color: var(--text);
  font-size: clamp(1.08rem, 1.8vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.header-title p {
  margin: 5px 0 0;
  color: #475569;
  font-size: clamp(0.78rem, 1.12vw, 1rem);
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.header-title .conference-date {
  margin-top: 8px;
  color: var(--ieee-blue-dark);
  font-size: clamp(0.9rem, 1.25vw, 1.08rem);
  font-weight: 800;
}

.ticker-wrap {
  width: 100%;
  min-height: 38px;
  overflow: hidden;

  display: flex;
  align-items: center;

  /* Professional IEEE matching background */
  background: linear-gradient(
    90deg,
    #052b4f 0%,
    #00629b 50%,
    #052b4f 100%
  );

  /* subtle separation from header and navbar */
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 2px solid #f7c948;

  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.15);
}


.ticker {
  width: max-content;
  min-width: 100%;

  /* white text for high visibility */
  color: #ffffff;

  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;

  white-space: nowrap;
  will-change: transform;
}


.ticker > span {
  display: inline-block;

  padding: 8px 28px;
}


/* Ticker links */
.ticker a {
  color: #ffffff;

  text-decoration: none;

  transition: color 0.2s ease;
}


/* Link hover */
.ticker a:hover,
.ticker a:focus-visible {
  color: #f7c948;

  text-decoration: underline;
}


/* Pause ticker when hovering */
.ticker-wrap:hover .ticker,
.ticker-wrap:focus-within .ticker {
  animation-play-state: paused;
}


/* Existing ticker animation */
@keyframes gcon-ticker-scroll {

  from {
    transform: translateX(100vw);
  }

  to {
    transform: translateX(-100%);
  }

}

.nav-wrapper {
  width: 100%;
  max-width: 100%;
  background: var(--nav-blue);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.16);
}

.nav-container {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 0 12px;
  position: relative;
}

.navbar {
  width: 100%;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  background: var(--nav-blue);
}

.nav-link {
  min-height: 50px;
  padding: 0 clamp(7px, 0.75vw, 12px);
  border: 0;
  background: transparent;
  color: var(--white);
  text-decoration: none;
  font: inherit;
  font-size: clamp(0.76rem, 0.76vw, 0.88rem);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.18s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.dropdown:hover > .dropdown-toggle,
.dropdown:focus-within > .dropdown-toggle,
.nav-link.active,
.dropdown.active > .dropdown-toggle {
  background: var(--ieee-blue);
  color: var(--white);
  outline: none;
}

.dropdown {
  position: relative;
  display: flex;
  flex: 0 0 auto;
}

.dropdown-toggle {
  gap: 6px;
}

.dropdown-arrow {
  font-size: 0.72rem;
  transition: transform 0.18s ease;
}

.dropdown-content {
  min-width: 235px;
  max-width: min(330px, calc(100vw - 24px));
  padding: 7px;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 0 0 10px 10px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.16s ease, visibility 0.16s ease, transform 0.16s ease;
  z-index: 1300;
}

.dropdown:last-of-type .dropdown-content {
  left: auto;
  right: 0;
}

.dropdown-content a {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--text);
  background: transparent;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
  white-space: normal;
}

.dropdown-content a:hover,
.dropdown-content a:focus-visible {
  background: var(--light);
  color: var(--ieee-blue-dark);
  outline: none;
}

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

.dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.menu-toggle,
.mobile-brand {
  display: none;
}

@media (max-width: 1160px) {
  .nav-container {
    min-height: 54px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .mobile-brand {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    color: var(--white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 800;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
    margin-left: auto;
    border: 0;
    border-radius: 6px;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
  }

  .menu-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: -4px;
  }

  .menu-toggle span {
    width: 24px;
    height: 2px;
    display: block;
    background: var(--white);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

  .menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle.open span:nth-child(2) { opacity: 0; }
  .menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .navbar {
    display: none;
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    width: 100%;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    padding: 7px 10px 14px;
    flex-direction: column;
    align-items: stretch;
    box-shadow: var(--shadow);
  }

  .navbar.open { display: flex; }

  .nav-link {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    justify-content: flex-start;
    font-size: 0.95rem;
  }

  .dropdown {
    width: 100%;
    display: block;
  }

  .dropdown-toggle {
    justify-content: space-between;
  }

  .dropdown:hover .dropdown-content,
  .dropdown:focus-within .dropdown-content {
    opacity: 0;
    visibility: hidden;
    transform: none;
  }

  .dropdown-content {
    display: none;
    width: calc(100% - 20px);
    min-width: 0;
    max-width: none;
    margin: 2px 10px 7px;
    padding: 5px;
    position: static;
    border-radius: 7px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dropdown.open .dropdown-content {
    display: block;
    opacity: 1;
    visibility: visible;
  }
}

@media (max-width: 800px) {
  .conference-header { padding: 14px 12px 11px; }
  .header-main {
    grid-template-columns: 92px minmax(0, 1fr) 92px;
    gap: 10px;
  }
  .header-logo img { max-height: 92px; }
  .header-title h1 { font-size: 1.7rem; }
  .header-title h2 { font-size: 1rem; }
  .header-title p { font-size: 0.76rem; }
  .header-title .conference-date { font-size: 0.86rem; }
}

@media (max-width: 560px) {
  .conference-header { padding: 10px 6px 9px; }
  .header-main {
    grid-template-columns: 62px minmax(0, 1fr) 62px;
    gap: 5px;
  }
  .header-logo img { max-height: 62px; }
  .header-title h1 { font-size: 1.28rem; }
  .header-title h2 { font-size: 0.76rem; }
  .header-title p { font-size: 0.62rem; line-height: 1.2; }
  .header-title .conference-date { margin-top: 4px; font-size: 0.7rem; }
  .header-title p:last-child { display: none; }
  .ticker { font-size: 0.82rem; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker { animation: none !important; transform: none !important; }
}
