﻿/* ICSEEE 2027 Conference Website Styles */
:root {
  --blue-900: #0a3f76;
  --blue-800: #145c9e;
  --blue-700: #1d6fb4;
  --ink-900: #111827;
  --ink-700: #374151;
  --surface-100: #f5f7fa;
  --surface-000: #ffffff;
  --accent: #f0c419;
  --max-width: 1240px;
  --radius: 14px;
  --shadow: 0 18px 46px rgba(17, 24, 39, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--ink-900);
  background: var(--surface-100);
  line-height: 1.6;
  overflow-x: hidden;
}

img,
svg,
video,
iframe {
  max-width: 100%;
}

a {
  color: var(--blue-800);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1.5px;
  font-weight: 600;
}

a:hover {
  color: var(--blue-900);
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 2px;
}

.logo,
.navbar nav a,
.btn,
.hero-arrow,
.nav-toggle {
  text-decoration: none;
}

.mega-marquee {
  background: var(--blue-900);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mega-marquee p {
  margin: 0;
  padding: 0.78rem 0;
  white-space: nowrap;
  text-align: left;
  display: inline-block;
  padding-left: 100%;
  animation: marquee 20s linear infinite;
}

.mega-marquee p::after {
  content: "\00a0\00a0" attr(data-text);
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-100%);
  }
}

.sponsor-marquee {
  background: rgba(180, 180, 178, 0.12);
  padding: 1.15rem 0;
  overflow: hidden;
}

.sponsor-marquee__track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  min-width: max-content;
  animation: marquee-logos 22s linear infinite;
}

.sponsor-marquee__item {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
}

.sponsor-marquee__item img {
  max-height: 92px;
  max-width: 260px;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.2));
}

@keyframes marquee-logos {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mega-marquee p,
  .sponsor-marquee__track {
    animation: none;
  }
}

header {
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 30;
  box-shadow: 0 6px 24px rgba(17, 24, 39, 0.08);
}

.brand-strip {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.5rem 1.2rem;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  align-items: center;
  background: #fff;
}

.brand-cell {
  min-height: 68px;
  display: flex;
  align-items: center;
}

.brand-left img {
  max-height: 120px;
  width: auto;
}

.brand-center {
  justify-content: center;
}

.brand-center img {
  max-height: 130px;
  width: auto;
}

.conf-placeholder {
  border: 2px dashed rgba(20, 92, 158, 0.4);
  border-radius: 10px;
  padding: 0.55rem 1rem;
  text-align: center;
  color: var(--blue-900);
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.05;
}

.conf-placeholder span {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--ink-700);
  margin-top: 0.28rem;
  text-transform: uppercase;
}

.brand-right {
  justify-content: flex-end;
}

.ieee-logo {
  width: 100%;
  max-width: 360px;
  height: auto;
  max-height: 110px;
  object-fit: contain;
  object-position: center center;
}

.navbar {
  background: var(--blue-700);
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.navbar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.2rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 48px;
  position: relative;
}

.navbar nav {
  display: flex;
  gap: 0.28rem;
  align-items: stretch;
  flex-wrap: wrap;
}

.navbar nav a {
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  padding: 0.78rem 0.78rem;
  border-radius: 0;
}

.navbar nav a:hover,
.navbar nav a.active {
  background: rgba(255, 255, 255, 0.16);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
  position: relative;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -6px;
}

.nav-toggle span::after {
  top: 6px;
}

header.nav-open .nav-toggle span {
  transform: rotate(45deg);
}

header.nav-open .nav-toggle span::before {
  top: 0;
  transform: rotate(90deg);
}

header.nav-open .nav-toggle span::after {
  top: 0;
  opacity: 0;
}

.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.5rem 1.2rem 4rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

.hero {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 2rem 1.2rem 2.4rem;
  background: linear-gradient(rgba(7, 29, 58, 0.18), rgba(7, 29, 58, 0.18)), url("../images/banner/001.jpg") center / cover no-repeat;
  display: flex;
  align-items: flex-start;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1400ms ease, transform 6000ms ease;
}

.hero-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(7, 29, 58, 0.18), rgba(7, 29, 58, 0.18));
}

.hero-slide.is-active {
  opacity: 1;
  transform: scale(1.07);
}

.hero-content,
.hero-arrow {
  position: relative;
  z-index: 1;
}

.hero-content {
  max-width: none;
  width: 100%;
  margin: 0;
  color: #fff;
  display: flex;
  justify-content: flex-start;
  padding-left: 70px;
}

.hero-panel {
  max-width: 560px;
  background: rgba(8, 18, 34, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(1px);
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.main > *,
.section,
.card,
.hero-content,
.hero-panel,
.footer-grid > div {
  min-width: 0;
}

.card,
.card p,
.card li,
.section-subtitle,
.hero h1,
.hero p {
  overflow-wrap: anywhere;
}

.hero-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(7, 29, 58, 0.45);
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  cursor: pointer;
  z-index: 2;
}

.hero-arrow:hover {
  background: rgba(7, 29, 58, 0.75);
}

.hero-arrow.prev {
  left: 20px;
}

.hero-arrow.next {
  right: 20px;
}

.badge {
  display: inline-block;
  background: rgba(240, 196, 25, 0.18);
  border: 1px solid rgba(240, 196, 25, 0.6);
  color: #fff;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero h1 {
  margin: 0.8rem 0 0;
  line-height: 1.1;
  font-size: clamp(2rem, 3.8vw, 3.2rem);
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
}

.hero-ieee-word {
  color: var(--blue-700);
}

.hero p {
  color: rgba(255, 255, 255, 0.95);
  margin: 0.9rem 0 0;
  font-size: 1.03rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.hero-actions {
  margin-top: 1.4rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hero-actions .btn {
  flex: 1 1 220px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1.15rem;
  border-radius: 999px;
  background: var(--accent);
  color: #111;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.93rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.btn:hover {
  background: #ffd645;
}

.btn.btn-secondary {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.btn.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.24);
}

.section {
  margin-top: 0;
}

.section-title {
  margin: 0 0 0.8rem;
  font-size: 2rem;
  line-height: 1.15;
  font-weight: 800;
  color: #0b2b4c;
  text-transform: uppercase;
}

.section-subtitle {
  margin: 0 0 1.15rem;
  color: var(--ink-700);
  max-width: 860px;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-2 {
  grid-template-columns: 1fr;
}

.grid-3 {
  grid-template-columns: 1fr;
}

.card {
  background: var(--surface-000);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 12px;
  padding: 1.15rem 1rem;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
}

.card img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  margin-bottom: 1rem;
  display: block;
  object-fit: cover;
}

.card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  color: #10375f;
}

.card ul,
.card ol {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
}

.card li {
  margin-bottom: 0.28rem;
}

.table-wrap {
  overflow-x: auto;
}

table.fee-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-size: 0.96rem;
}

table.fee-table th,
table.fee-table td {
  border: 1px solid rgba(16, 55, 95, 0.2);
  padding: 0.55rem 0.6rem;
  text-align: left;
}

table.fee-table th {
  background: rgba(20, 92, 158, 0.1);
  color: #0b2b4c;
}

.inline-note {
  margin-top: 0.8rem;
  border-left: 4px solid var(--accent);
  padding: 0.5rem 0.8rem;
  background: rgba(240, 196, 25, 0.12);
  color: #12263f;
  font-weight: 600;
}

.footer {
  background: #0b2d4f;
  color: #c8d8ea;
  margin-top: 3rem;
  padding: 2.4rem 1.2rem;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 1.2rem;
}

.footer h3 {
  margin: 0 0 0.5rem;
  color: #fff;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.footer a {
  color: #fff;
  text-decoration: underline;
}

.footer .footer-grid > div:last-child a {
  display: inline-block;
  margin: 0 0 0.45rem;
  padding: 0.36rem 0.62rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.88rem;
}

.footer .footer-grid > div:last-child a:hover {
  background: rgba(255, 255, 255, 0.2);
}

.footer p {
  margin: 0;
}

.map-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(16, 55, 95, 0.16);
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.08);
}

.map-wrap iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
}

@media (min-width: 860px) {
  .grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .navbar nav a {
    padding: 0.78rem 0.5rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 980px) {
  .brand-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem 0.9rem;
    padding: 0.4rem 1rem;
  }

  .brand-cell {
    justify-content: center;
    min-height: auto;
  }

  .brand-center {
    grid-column: 1 / -1;
    order: -1;
  }

  .brand-left img {
    max-height: 58px;
  }

  .brand-center img {
    max-height: 66px;
  }

  .brand-right {
    justify-content: center;
  }

  .ieee-logo {
    width: auto;
    max-width: 280px;
    height: 48px;
  }

  .navbar-inner {
    justify-content: flex-start;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .navbar nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--blue-700);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    padding: 0.3rem 0;
    gap: 0;
  }

  .navbar nav a {
    display: block;
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 0;
  }

  header.nav-open .navbar nav {
    display: block;
  }

  .hero {
    width: calc(100% + 2.4rem);
    max-width: none;
    margin-left: -1.2rem;
    margin-right: -1.2rem;
    padding: 1.5rem 1rem 2rem;
  }

  .hero-slide {
    background-size: cover;
    background-position: center;
  }

  .hero-content {
    padding-left: 60px;
  }

  .hero-arrow {
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }

  .hero-panel {
    padding: 1.4rem 1rem;
  }

  .section-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  /* Fix full-bleed hero on mobile: replace viewport-unit offset with calc */
  .hero {
    width: calc(100% + 1.8rem);
    margin-left: -0.9rem;
    margin-right: -0.9rem;
    padding: 1rem 0.9rem 1.5rem;
  }

  .hero-content {
    padding-left: 0;
    width: 100%;
  }

  .hero-panel {
    max-width: 100%;
    width: 100%;
    padding: 1rem 0.85rem;
  }

  .hero h1 {
    font-size: 1.4rem;
    line-height: 1.2;
  }

  .hero p {
    font-size: 0.92rem;
    margin-top: 0.55rem;
  }

  .badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
  }

  .hero-actions {
    margin-top: 0.9rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .btn {
    width: 100%;
    padding: 0.65rem 1rem;
    font-size: 0.88rem;
  }

  .hero-arrow {
    display: none;
  }

  .brand-strip {
    gap: 0.35rem 0.65rem;
    padding: 0.35rem 0.75rem;
  }

  .brand-left img {
    max-height: 48px;
  }

  .brand-center img {
    max-height: 56px;
  }

  .ieee-logo {
    max-width: 180px;
    height: 34px;
  }

  .sponsor-marquee {
    padding: 0.9rem 0;
  }

  .sponsor-marquee__track {
    gap: 1.6rem;
  }

  .sponsor-marquee__item img {
    max-height: 64px;
  }
}

