/* GLOBAL RESET AND BASE STYLES */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #e9e9e9;
  color: #000;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: #0b28ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


/* MAIN PAGE CONTAINER */

.page {
  width: min(980px, calc(100% - 24px));
  margin: 22px auto 0;
  padding: 10px;
  background: #fff;
  overflow: visible;
}


/* HEADER */

.site-header {
  padding: 6px 4px 0;
}

.logo-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.most-logo-link,
.ieee-logo-link {
  display: inline-block;
  line-height: 0;
}

.most-logo-img {
  width: 160px;
  height: auto;
}

.ieee-logo-img {
  width: 150px;
  height: auto;
}

.conference-title {
  margin: 6px 0 0;
  color: #5d78aa;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.conference-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin: 12px 0 14px;
}

.conference-meta,
.social-link {
  margin: 0;
  color: #666;
  font-size: 14px;
}

.conference-meta span {
  color: #333;
  font-weight: 700;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  text-align: right;
  white-space: nowrap;
}

.linkedin-logo-link {
  display: inline-flex;
  line-height: 0;
  vertical-align: middle;
}

.linkedin-logo-img {
  width: 22px;
  height: 22px;
}


/* TOP NAVIGATION */

.top-nav {
  margin-top: 5px;
  overflow: visible;
  background: #5779ad;
}

.top-nav ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.top-nav li {
  margin: 0;
  padding: 0;
}

.top-nav a,
.top-nav .nav-label {
  display: block;
  padding: 8px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  line-height: 16px;
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a.active {
  background: #46699d;
  text-decoration: none;
}


/* HERO BANNER */

.banner {
  width: 100%;
  height: 295px;
  object-fit: cover;
  object-position: center;
}


/* MAIN PAGE LAYOUT */


.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
  align-items: start;
  padding-top: 24px;
}

.layout:has(> .sidebar) {
  grid-template-columns: minmax(0, 1fr) 250px;
}

.layout:not(:has(> .sidebar)) {
  grid-template-columns: minmax(0, 1fr);
}

.layout:not(:has(> .sidebar)) .main-content {
  width: 100%;
  padding-right: 0;
}

.main-content {
  width: auto;
  min-width: 0;
  padding-right: 2px;
}


/* MAIN TEXT */

.main-content p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.48;
  text-align: justify;
}

.main-content h2,
.sidebar h2 {
  margin: 0 0 8px;
  color: #fff;
  background: #5678ad;
  font-size: 17px;
  line-height: 1.2;
}

.main-content h2 {
  display: inline-block;
  min-width: 150px;
  padding: 5px 9px;
}

.main-content h3 {
  margin: 22px 0 8px;
  font-size: 17px;
  line-height: 1.3;
}

.main-content ul {
  margin: 0 0 20px 22px;
  padding: 0;
}

.main-content li {
  margin-bottom: 4px;
  font-size: 13px;
  line-height: 1.4;
}


/* SIDEBAR */

.sidebar {
  width: 100%;
  min-width: 0;
  font-size: 13px;
  line-height: 1.3;
}

.side-box {
  width: 100%;
  margin-bottom: 16px;
}

.sidebar h2 {
  width: 100%;
  padding: 5px 7px;
  font-size: 14px;
}

.side-box p {
  margin: 0 0 7px;
}

.side-box strong {
  font-weight: 800;
}

.dates strong {
  color: #0b28ff;
}

.old-date {
  color: #000;
  text-decoration: line-through;
}


/* TABLES */

.program-table,
.rate-table {
  width: 100%;
  margin: 10px 0 22px;
  border-collapse: collapse;
  font-size: 14px;
}

.program-table th,
.program-table td,
.rate-table th,
.rate-table td {
  padding: 7px;
  border: 1px solid #999;
  text-align: left;
  vertical-align: top;
}

.program-table th,
.rate-table th {
  background: #e8eef7;
}

.old-date {
  color: #000;
  text-decoration: line-through;
}


/* ORGANIZERS PAGE */

/*
  The organizer sections automatically appear in two columns.
  No sidebar is required on the organizers page.
*/

.main-content:has(> .committee-section) {
  column-count: 2;
  column-gap: 30px;
  column-fill: balance;
}

.committee-section {
  display: inline-block;
  width: 100%;
  margin: 0 0 6px;
  break-inside: avoid;
  page-break-inside: avoid;
  vertical-align: top;
}

.committee-section h3 {
  margin: 0 0 1px;
  padding: 0;
  border: 0;
  color: #222;
  font-size: 16px;
  line-height: 1.3;
}

.committee-section p {
  margin: 0 0 1px;
  font-size: 14px;
  line-height: 1.4;
  text-align: left;
}


/* SPONSORS */

.sponsors {
  width: 100%;
  margin-top: 28px;
  padding: 15px 0 10px;
  border-top: 1px solid #aaa;
  font-size: 13px;
}

.sponsors > p {
  margin: 0 0 15px;
}

.sponsor-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  justify-items: center;
  gap: 20px;
  width: 100%;
}

.sponsor-row a {
  display: flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  height: 75px;
}

.sponsor-row img {
  display: block;
  width: auto;
  height: auto;

  max-width: 150px;
  max-height: 60px;

  object-fit: contain;
}

.dropdown-icon {
  margin-left: 4px;
  font-size: 9px;
  vertical-align: middle;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  margin: 0;
  padding: 0;
  background: #5779ad;
  list-style: none;
  z-index: 1000;
}

.nav-dropdown:hover .submenu {
  display: block;
}

.nav-dropdown .submenu li {
  width: 100%;
}

.nav-dropdown .submenu a {
  display: block;
  width: 100%;
  padding: 9px 12px;
  white-space: nowrap;
}

.nav-dropdown .submenu a:hover {
  background: #466795;
  text-decoration: none;
}

/* TABLET LAYOUT */

@media (max-width: 900px) {
  .page {
    width: min(980px, calc(100% - 20px));
  }

  .conference-title {
    font-size: 19px;
    white-space: normal;
  }

  .layout {
    gap: 20px;
  }

  .layout:has(> .sidebar) {
    grid-template-columns: minmax(0, 1fr) 205px;
  }

  .layout:not(:has(> .sidebar)) {
    grid-template-columns: minmax(0, 1fr);
  }

  .banner {
    height: 260px;
  }

  .main-content:has(> .committee-section) {
    column-gap: 32px;
  }
}


/* MOBILE LAYOUT */

@media (max-width: 720px) {
  .page {
    width: calc(100% - 16px);
    margin-top: 8px;
    padding: 8px;
  }

  .layout,
  .layout:has(> .sidebar),
  .layout:not(:has(> .sidebar)) {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 18px;
  }

  .main-content {
    padding-right: 0;
  }

  .sidebar {
    width: 100%;
  }

  .logo-row {
    align-items: center;
    gap: 14px;
  }

  .conference-title {
    font-size: 18px;
    white-space: normal;
  }

  .conference-meta-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .social-link {
    justify-content: flex-start;
    text-align: left;
  }

  .most-logo-img {
    width: 128px;
  }

  .ieee-logo-img {
    width: 118px;
  }

  .top-nav ul {
    align-items: stretch;
  }

  .top-nav a,
  .top-nav .nav-label {
    padding: 7px 8px;
    font-size: 11px;
  }

  .banner {
    height: 220px;
  }

  .main-content p {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.45;
    text-align: left;
  }

  .main-content:has(> .committee-section) {
    column-count: 1;
  }

  .committee-section {
    margin-bottom: 20px;
  }
}


/* SMALL MOBILE DEVICES */

@media (max-width: 480px) {
  .logo-row {
    gap: 10px;
  }

  .most-logo-img {
    width: 110px;
  }

  .ieee-logo-img {
    width: 102px;
  }

  .conference-title {
    font-size: 16px;
  }

  .conference-meta,
  .social-link {
    font-size: 13px;
  }

  .banner {
    height: 185px;
  }

  .top-nav ul {
    display: block;
  }

  .top-nav a,
  .top-nav .nav-label {
    width: 100%;
    padding: 8px 10px;
  }

  .program-table,
  .rate-table {
    font-size: 12px;
  }

  .program-table th,
  .program-table td,
  .rate-table th,
  .rate-table td {
    padding: 5px;
  }
}
