/* ICNDSA 2027 site styles. Loaded after Bootstrap 5.3 and Bootstrap Icons (linked in views/layouts/header.php). */

/* ========== Base: tokens, typography, header, ticker ========== */

/* ===============================
   BASE
   =============================== */

:root {
  --primary: #006699;
  --navy: #003b5c;
  --accent: #1a73e8;
  --bg-light: #f5f7fa;

  /* Bootstrap's "primary" and link colours follow the site's navy instead of its default bright blue */
  --bs-primary: #003b5c;
  --bs-primary-rgb: 0, 59, 92;
  --bs-link-color: #00629b;
  --bs-link-color-rgb: 0, 98, 155;
  --bs-link-hover-color: #004f7a;
  --bs-link-hover-color-rgb: 0, 79, 122;
  --header-height: 280px;

  /* Type scale: use these instead of one-off font sizes */
  --fs-page-title: clamp(1.75rem, 1.4rem + 1.1vw, 2.25rem);     /* 28px phone - 36px desktop */
  --fs-section-title: clamp(1.375rem, 1.25rem + 0.5vw, 1.625rem); /* 22px - 26px */
  --fs-body: 1rem;                                               /* 16px */
  --fs-small: 0.875rem;                                          /* 14px: minimum for secondary text */
}

/* Main heading of every page: one size, colour and accent everywhere */
.page-title {
  font-size: var(--fs-page-title);
  line-height: 1.25;
  font-weight: 700 !important;
  color: var(--navy) !important;
  border: 0 !important;
  padding-left: 0 !important;
  background: none !important;
}

.page-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 0.5rem;
  border-radius: 2px;
  background: var(--primary);
}

.page-title.text-center::after {
  margin-left: auto;
  margin-right: auto;
}

.page-title {
  margin-bottom: 1.5rem !important;
}

/* Parts of a title share its colour and weight */
.page-title span {
  color: inherit !important;
  font-weight: inherit !important;
}

/* The accent bar replaces the rule some pages drew under their title */
.page-title + hr {
  display: none;
}

/* Headings that divide a page into sections */
.section-heading {
  font-size: var(--fs-section-title);
  line-height: 1.3;
}

html {
  height: 100%;
  margin: 0;
}

body {
  min-height: 100%;
  margin: 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont;
  background: var(--bg-light);
  overflow-x: hidden;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 2000;
  background: #003b5c;
  color: #ffffff;
  padding: 0.75rem 1rem;
  border-radius: 0 0 0.5rem 0.5rem;
  text-decoration: none;
  font-weight: 600;
}

.skip-link:focus {
  top: 0;
}

* {
  box-sizing: border-box;
}

.content {
  overflow-x: hidden;
}

/* ===============================
   COMPONENTS
   =============================== */

.hero {
  background: linear-gradient(135deg, #003f5c, #006699);
  color: white;
  padding: 3rem 1.5rem;
  text-align: center;
}

.cta-btn {
  display: inline-block;
  background: white;
  color: var(--primary);
  padding: 10px 22px;
  border-radius: 6px;
  font-weight: 600;
  margin-top: 1rem;
}

.card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

/* IEEE HEADER */

.ieee-header {
  /* Photo shown at 24% strength over white */
  background:
    linear-gradient(rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.76)),
    #ffffff url("../images/backgrounds/header-bg.webp") center / cover no-repeat;
  border-bottom: 1px solid #e5e7eb;
}

.header-logos {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  margin-bottom: 0.75rem;
}

.header-logo {
  object-fit: contain;
  opacity: 0.9;
}

.ieee-logo {
  height: 56px;
  max-width: 150px;
}

.university-logo {
  height: 64px;
  max-width: 170px;
}

.conference-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #003b5c;
}

.conference-theme {
  font-size: 2rem;
  font-weight: 700;
  color: #004f7c;
  letter-spacing: 0.2px;
}

.conference-theme-sub {
  font-size: 1.2rem;
  font-weight: 500;
  color: #004f7c;
  letter-spacing: 0.1px;
}

@media (max-width: 575.98px) {
  .conference-theme {
    font-size: 1.5rem;
    letter-spacing: 0.1px;
  }

  .conference-theme-sub {
    font-size: 1rem;
    letter-spacing: 0;
  }
}

.conference-acronym {
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
}

.conference-meta {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .ieee-logo {
    height: 40px;
  }

  .university-logo {
    height: 44px;
  }
}

.mobile-menu-toggle {
  padding: 0.25rem 0.5rem;
  border: 1px solid rgba(0, 59, 92, 0.25);
  color: var(--navy);
  background: rgba(255, 255, 255, 0.7);
}

/* MENU */

.list-group-item.active {
  background-color: #003b5c !important;
  border-color: #003b5c !important;
  color: #ffffff !important;
}

.list-group-item-action:hover {
  background-color: #f3f6f9;
}

.list-group-item,
.list-group-item-action,
.list-group-item button {
  font-weight: 600;
  color: #1f2937;
}

.submenu-active {
  background-color: #e9f5ff !important;
  border-left: 4px solid #1a73e8;
  color: #003b5c !important;
  font-weight: 600;
}

.list-group-item-action.ps-5:hover {
  background-color: #f4f8fc;
}

.conference-highlight {
  border-left: 4px solid #132f53 !important;
  background-color: rgba(26, 115, 232, 0.08) !important;
  padding-left: 12px !important;
}

/* Attention blink: 3 times (under 5 seconds, per WCAG 2.2.2), then stays visible */

.blink {
  color: #dc3545;
  display: inline-block;
  animation: blink 1.4s 3;
}

.blink-dot {
  width: 8px;
  height: 8px;
  background-color: #dc3545;
  border-radius: 50%;
  display: inline-block;
  animation: blink 1.2s 3;
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

/* IEEE FOOTER */

.bg-footer {
  background-color: #002855 !important;
}

/* List items separated by the same dashed line */
.dashed-list li {
  padding: 0.25rem 0;
  border-bottom: 2px dashed #1a73e8;
}

/* NEWS TICKER */

.news-ticker {
  font-size: 0.95rem;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.ticker-track {
  width: max-content;
  animation: ticker-scroll 50s linear infinite;
}

.ticker-item {
  padding-right: 4rem;
  font-weight: 500;
}

@keyframes ticker-scroll {
  from {
    transform: translateX(0);
  }

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

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

  .blink,
  .blink-dot {
    animation: none;
  }
}

/* ========== Layout: page grid, sidebar, home sections ========== */

/* ===============================
   LAYOUT
   =============================== */

.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.ieee-header,
.ieee-footer {
  flex-shrink: 0;
}

.app-layout {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow-x: clip;
  /* On very wide screens the three columns stay together, centred */
  width: 100%;
  max-width: 1640px;
  margin: 0 auto;
}

/* Small laptops and tablets in landscape: menu + content.
   Important Dates is the summary bar above the content. */
@media (min-width: 992px) {
  .app-layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .app-layout > .sidebar {
    grid-column: 1;
    grid-row: 1 / span 3;
  }

  .app-layout > :not(.sidebar) {
    grid-column: 2;
  }
}

/* Desktops: menu + content + Important Dates, in proportion to the screen */
@media (min-width: 1200px) {
  .app-layout {
    grid-template-columns: 260px minmax(0, 1fr) 290px;
  }

  .app-layout > .sidebar {
    grid-row: auto;
  }

  .app-layout > .content {
    grid-column: 2;
  }

  .app-layout > .dates {
    grid-column: 3;
  }

  /* Pages without a right-hand column */
  .app-layout--wide {
    grid-template-columns: 260px minmax(0, 1fr);
  }
}

@media (min-width: 1400px) {
  .app-layout {
    grid-template-columns: 290px minmax(0, 1fr) 330px;
  }

  .app-layout--wide {
    grid-template-columns: 290px minmax(0, 1fr);
  }
}

@media (min-width: 992px) {
  /* Menu and dates stay in view while the page scrolls */
  .sidebar {
    border-right: 1px solid #dee2e6;
  }

  .sidebar > nav {
    position: sticky;
    top: 0;
    height: auto !important;
    max-height: 100vh;
    overflow-y: auto;
    border: 0 !important;
  }

  .dates > .card {
    position: sticky;
    top: 1rem;
  }
}

.sidebar,
.content,
.dates {
  height: auto;
  overflow: visible;
}

.sidebar,
.dates {
  background: #f8f9fa;
}

.content {
  background: #ffffff;
  padding: 2rem;
  overflow-x: hidden;
}

@media (max-width: 991px) {
  .content {
    padding: 1rem;
  }
}

@media (max-width: 991px) {
  .sidebar {
    display: none;
  }
}

/* ===============================
   RESPONSIVE
   =============================== */

@media (max-width: 991.98px) {
  .home-banner-wrapper {
    margin-left: -1rem;
    margin-right: -1rem;
  }
}

@media (max-width: 575.98px) {
  .home-banner {
    height: 200px;
  }

  .page-venue .venue-img-custom {
    height: 240px;
  }
}

/* ===============================
   HOME PAGE CONTENT
   =============================== */

.home-content {
  max-width: 900px;
  margin: 0 auto;
}

.home-section {
  margin-bottom: 3rem;
}

.section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #003b5c;
  margin-bottom: 1rem;
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: #006699;
  margin-top: 6px;
}

.home-section p {
  font-size: var(--fs-body);
  line-height: 1.7;
  color: #1f2937;
  margin-bottom: 1rem;
}

.ieee-blue-link {
  color: #00629b;
  font-weight: 600;
  text-decoration: none;
}

.ieee-blue-link:hover {
  color: #004f7a;
  text-decoration: underline;
}

.home-banner-wrapper {
  margin-left: -2rem;
  margin-right: -2rem;
}

.home-banner {
  width: 100%;
  height: 300px;
  object-fit: cover;
  display: block;
}

/* Left-aligned: justified text leaves uneven gaps between words on screens */
.text-justify {
  text-align: left;
}

.section-landing {
  max-width: 960px;
  margin: 0 auto;
}

.text-ieee {
  color: #003b5c;
}

/* ========== Pages: page-specific styles ========== */

/* ===============================
   INSTRUCTIONS FOR AUTHORS
   =============================== */

.instructions-page {
  max-width: 900px;
  margin: 0 auto;
}

.instructions-page h1 {
  font-weight: 700;
  color: #003b5c;
  margin-bottom: 0.5rem;
}

.instructions-page hr {
  border: none;
  border-bottom: 2px solid #1a73e8;
  width: 100%;
  margin-bottom: 1.2rem;
}

.instructions-list {
  padding-left: 1.2rem;
}

.instructions-list li {
  margin-bottom: 1rem;
  line-height: 1.6;
  color: #1f2937;
}

.instructions-list a {
  color: #1a73e8;
  text-decoration: none;
}

.instructions-list a:hover {
  text-decoration: underline;
}

/* ===============================
   SUBMISSION GUIDELINES
   =============================== */

.submission-page {
  max-width: 1000px;
  margin: 0 auto;
}

.submission-page h1 {
  font-weight: 700;
  color: #003b5c;
  margin-bottom: 0.5rem;
}

.submission-page hr {
  border: none;
  border-bottom: 2px solid #1a73e8;
  margin-bottom: 1.5rem;
}

.submission-page p {
  line-height: 1.7;
  color: #1f2937;
  margin-bottom: 1rem;
}

.submission-page a {
  color: #1a73e8;
  text-decoration: none;
}

.submission-page a:hover {
  text-decoration: underline;
}

.submission-section {
  margin-top: 1.8rem;
}

.submission-section h2 {
  font-size: 1.2rem;
  font-weight: 600;
  color: #003b5c;
  margin-bottom: 0.6rem;
}

.submission-list {
  padding-left: 1.2rem;
}

.submission-list li {
  margin-bottom: 0.6rem;
  line-height: 1.6;
  color: #1f2937;
}

/* ===============================
   PUBLICATION
   =============================== */

.publication-page {
  max-width: 900px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.publication-page h1 {
  font-weight: 700;
  color: #003b5c;
  margin-bottom: 0.4rem;
}

.publication-page hr {
  border: none;
  border-bottom: 2px solid #1a73e8;
  margin-bottom: 1.6rem;
}

.publication-page p {
  line-height: 1.7;
  font-size: 1rem;
  color: #1f2937;
  margin-bottom: 1.2rem;
}

.publication-note {
  margin-top: 1.5rem;
  background: #fff7d6;
  border-left: 4px solid #facc15;
  padding: 1rem 1.1rem;
  font-size: 0.95rem;
  color: #1f2937;
}


/* ===============================
   REGISTRATION (SCOPED)
   =============================== */

.page-registration .registration-title,
.page-registration .payment-title {
  color: #003b5c;
}

.page-registration .registration-hr {
  border-bottom: 2px solid #1a73e8;
}

.page-registration .table thead th {
  background-color: #003b5c;
  color: #fff;
  vertical-align: middle;
  border-color: rgba(255, 255, 255, 0.2);
}

.page-registration .table thead .sub-head th {
  background-color: #e5e7eb;
  color: #1f2937;
  font-size: var(--fs-small);
  font-weight: 500;
}

.page-registration .table-hover tbody tr:hover {
  background-color: #97b2cc !important;
}

.page-registration .table tbody tr:nth-child(even) {
  background-color: #f9fafb;
}

.page-registration .table tbody td:first-child {
  text-align: start;
  font-weight: 500;
  color: #003b5c;
}

.page-registration .note-box {
  background: #fff7d6;
  border-left: 4px solid #facc15;
}

/* ===============================
   IMPORTANT DATES (SCOPED)
   =============================== */

.page-important-dates {
  max-width: 900px;
  margin: 0 auto;
}

.page-important-dates .timeline-line {
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: #dbeafe;
}

.page-important-dates .timeline-dot {
  width: 14px;
  height: 14px;
  background-color: #1a73e8;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.page-important-dates .timeline-dot.timeline-blink {
  background-color: #dc3545;
  animation: blink 1.2s 3;
}

@media (prefers-reduced-motion: reduce) {
  .page-important-dates .timeline-dot.timeline-blink {
    animation: none;
  }
}

/* ===============================
   SCHEDULE (SCOPED)
   =============================== */

.page-schedule {
  max-width: 1120px;
  margin: 0 auto;
}

.page-schedule .schedule-hero {
  background: linear-gradient(135deg, #f4f9ff 0%, #ffffff 60%, #eef6ff 100%);
  border: 1px solid #d9e8f6;
}

.page-schedule .schedule-kicker {
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: var(--fs-small);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1a73e8;
}

.page-schedule .schedule-block {
  scroll-margin-top: 96px;
}

.page-schedule .schedule-day-tabs .nav {
  gap: 0.75rem;
}

.page-schedule .schedule-day-tabs .nav-link {
  min-width: 120px;
  border: 1px solid #dce7f3;
  border-radius: 999px;
  background-color: #f7fbff;
  color: #0f4c75;
  font-weight: 700;
}

.page-schedule .schedule-day-tabs .nav-link.active {
  background-color: #0f4c75;
  border-color: #0f4c75;
  color: #ffffff;
}

.page-schedule .schedule-tab-content {
  min-height: 1px;
}

.page-schedule .schedule-section-header {
  margin-bottom: 1rem;
  padding-left: 1rem;
  border-left: 4px solid #1a73e8;
}

.page-schedule .schedule-section-header h2 {
  color: #003b5c;
  font-weight: 700;
}

.page-schedule .schedule-table-wrap {
  border: 1px solid #dce7f3;
  border-radius: 0.9rem;
  overflow: hidden;
  background-color: #ffffff;
  box-shadow: 0 10px 24px rgba(17, 57, 91, 0.06);
}

.page-schedule .schedule-table {
  margin-bottom: 0;
}

.page-schedule .schedule-table thead th {
  background-color: #0f4c75;
  color: #ffffff;
  border-bottom: 0;
  font-weight: 600;
  white-space: nowrap;
}

.page-schedule .schedule-table tbody td {
  vertical-align: top;
}

.page-schedule .schedule-table tbody td:first-child,
.page-schedule .schedule-table tbody td:last-child {
  white-space: nowrap;
  font-weight: 600;
  color: #0f4c75;
}

.page-schedule .compact-table tbody td:nth-child(2) {
  min-width: 320px;
}

.page-schedule .schedule-track-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-schedule .schedule-accordion .accordion-item {
  border: 1px solid #dce7f3;
  border-radius: 0.9rem;
  overflow: hidden;
  margin-bottom: 0.85rem;
  box-shadow: 0 8px 20px rgba(17, 57, 91, 0.05);
}

.page-schedule .schedule-accordion .accordion-button {
  font-weight: 700;
  color: #003b5c;
  background-color: #eaf4ff;
  pointer-events: none;
  cursor: default;
}

.page-schedule .schedule-accordion .accordion-button:not(.collapsed) {
  color: #003b5c;
  background-color: #eaf4ff;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.page-schedule .schedule-accordion .accordion-button.collapsed {
  color: #003b5c;
  background-color: #eaf4ff;
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.05);
}

.page-schedule .schedule-accordion .accordion-button::after {
  display: none;
}

.page-schedule .schedule-accordion .accordion-button:disabled {
  opacity: 1;
}

.page-schedule .session-meta {
  margin-bottom: 1rem;
  color: #526273;
  font-size: 0.95rem;
}

.schedule-anchor-list a {
  color: #0f4c75;
  text-decoration: none;
}

.schedule-anchor-list a:hover,
.schedule-anchor-list a:focus {
  text-decoration: underline;
}

@media (max-width: 767.98px) {
  .page-schedule .schedule-hero .card-body {
    padding: 1.5rem;
  }

  .page-schedule .schedule-day-tabs .nav {
    flex-direction: column;
  }

  .page-schedule .schedule-day-tabs .nav-link {
    width: 100%;
  }

  .page-schedule .schedule-table tbody td:first-child,
  .page-schedule .schedule-table tbody td:last-child {
    white-space: normal;
  }
}

/* ===============================
   CALL FOR PAPERS
   =============================== */

.cfp-section {
  max-width: 1100px;
  margin: 0 auto;
}

.cfp-header {
  margin-bottom: 1.8rem;
}

.cfp-header h1 {
  font-weight: 700;
  color: #003b5c;
  margin-bottom: 0.3rem;
}

.cfp-header p {
  color: #4b5563;
  margin: 0;
}

.cfp-section p {
  line-height: 1.8;
  color: #1f2937;
}

.track-card {
  border: 1px solid #e6eef7;
  border-left: 4px solid #1a73e8;
  border-radius: 6px;
  padding: 1.3rem;
  background-color: #ffffff;
  transition: all 0.2s ease;
}

.track-card:hover {
  border-left-color: #003b5c;
  background-color: #f9fbff;
}

.track-card h2 {
  font-weight: 600;
  color: #003b5c;
  margin-bottom: 0.8rem;
}

.track-card ul {
  padding-left: 1.2rem;
  margin: 0;
}

.track-card ul li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: #374151;
}

/* ===============================
   VENUE (SCOPED)
   =============================== */

.page-venue .venue-img-custom {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.page-venue .venue-img img {
  object-fit: cover;
}

@media (max-width: 575.98px) {
  .page-venue .venue-img img {
    max-height: 220px;
  }
}

/* ===============================
   TRANSPORTATION (SCOPED)
   =============================== */

.page-transportation .main-heading {
  font-weight: 300;
  color: #1f2d3d;
}

.page-transportation .heading-accent {
  color: #b45309;
}

.page-transportation .section-title {
  font-weight: 600;
  color: #1f2d3d;
}

/* ===============================
   ORGANIZING COMMITTEE (SCOPED)
   =============================== */

.page-organizing-committee .committee-section {
  margin-bottom: 3rem;
}

.page-organizing-committee .committee-title {
  font-size: var(--fs-section-title);
  font-weight: 700;
  color: #003b5c;
  margin-bottom: 1.5rem;
  border-left: 5px solid #1a73e8;
  background-color: #9bbbff44;
  padding: 5px 6px;
}

@media (max-width: 576px) {
  .page-organizing-committee .committee-title {
    border-left: 3px solid #1a73e8;
    padding: 4px 6px;
    margin-bottom: 1rem;
  }
}

.page-organizing-committee .subcommittee-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #111827;
  margin: 2rem 0 1rem;
  border-bottom: 1px solid #e5eaf0;
  padding-bottom: 6px;
}

.page-organizing-committee .member-card {
  border: 1px solid #e5eaf0;
  border-radius: 8px;
  padding: 1.5rem 1rem;
  text-align: center;
  height: 100%;
  transition: 0.25s ease;
  background: linear-gradient(135deg,
      #eef6fc 0%,
      #ffffff 50%,
      #f0f7ff 100%);
}

.page-organizing-committee .member-card:hover {
  border-color: #cddff0;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(26, 115, 232, 0.08);
}

.page-organizing-committee .member-img {
  width: 90px;
  height: 120px;
  object-fit: cover;
  border-radius: 5%;
  margin-bottom: 1rem;
  border: 3px solid #f0f4f8;
}

.page-organizing-committee .member-name {
  font-weight: 600;
  font-size: 1rem;
  color: #111827;
}

.page-organizing-committee .member-designation {
  font-size: var(--fs-small);
  color: #4462a1;
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.page-organizing-committee .member-affiliation {
  font-size: var(--fs-small);
  color: #6b7280;
  line-height: 1.4;
}

/* ===============================
   KEYNOTE SPEAKER (SCOPED)
   =============================== */

.page-keynote-speaker .speaker-section {
  margin-bottom: 3rem;
}

.page-keynote-speaker .speaker-section-intro {
  margin-bottom: 1.75rem;
  color: #475569;
  line-height: 1.7;
}

.page-keynote-speaker .speaker-lineup {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.page-keynote-speaker .speaker-lineup-card {
  position: relative;
  height: 100%;
  padding: 1.25rem 1rem 1rem;
  border: 1px solid #dbe5f0;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
  text-align: center;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.page-keynote-speaker .speaker-order {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background-color: #003b5c;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
}

.page-keynote-speaker .speaker-lineup-img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #dceaf8;
  margin-bottom: 1rem;
}

.page-keynote-speaker .speaker-lineup-name {
  font-size: 1rem;
  font-weight: 700;
  color: #003b5c;
  margin-bottom: 0.5rem;
}

.page-keynote-speaker .speaker-lineup-role {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #475569;
}

.page-keynote-speaker .speaker-profiles-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: #003b5c;
  margin: 0 0 0.5rem;
}

.page-keynote-speaker .speaker-card {
  border-bottom: 1px solid #e5eaf0;
  padding: 2rem 0;
}

.page-keynote-speaker .speaker-img {
  width: 160px;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
  border: 3px solid #f0f4f8;
}

.page-keynote-speaker .speaker-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #003b5c;
}

.page-keynote-speaker .speaker-designation {
  font-size: 0.95rem;
  color: #21487b;
  margin-bottom: 0.6rem;
}

.page-keynote-speaker .speaker-title {
  font-weight: 600;
  margin-bottom: 0.8rem;
}

.page-keynote-speaker .profile-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.7;
  color: #374151;
}

.page-keynote-speaker .profile-text.expanded {
  -webkit-line-clamp: unset;
  display: block;
}

.page-keynote-speaker .read-more-btn {
  background: none;
  border: none;
  color: #1a73e8;
  font-weight: 600;
  padding: 0;
  margin-top: 8px;
  cursor: pointer;
}

.page-keynote-speaker .read-more-btn:hover {
  text-decoration: underline;
}

@media (max-width: 575.98px) {
  .page-keynote-speaker .speaker-lineup {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   ADVISORY + TECHNICAL LISTS
   =============================== */

.page-advisory,
.page-technical-committee {
  max-width: 1000px;
  margin: 0 auto;
}

.page-advisory .advisory-title,
.page-technical-committee .committee-title {
  font-weight: 700;
  color: #003b5c;
  border-left: 5px solid #1a73e8;
  padding-left: 12px;
  margin-bottom: 2rem;
}

.page-advisory .advisory-list,
.page-technical-committee .committee-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-advisory .advisory-list li,
.page-technical-committee .committee-list li {
  padding: 1rem 0;
  border-bottom: 1px solid #e5e7eb;
}

.page-advisory .advisory-list li:last-child,
.page-technical-committee .committee-list li:last-child {
  border-bottom: none;
}

.page-advisory .member-name,
.page-technical-committee .member-name {
  font-weight: 600;
  font-size: 1rem;
  color: #111827;
}

.page-advisory .member-affiliation,
.page-technical-committee .member-affiliation {
  font-size: 0.9rem;
  color: #4b5563;
  margin-top: 2px;
}

/* ===============================
   CONTACT (SCOPED)
   =============================== */

.page-contact .contact-title {
  color: #003b5c;
}

.page-contact .contact-box {
  max-width: 900px;
}

.page-contact fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.page-contact legend {
  font-size: 1rem;
  font-weight: 600;
  color: #003b5c;
  margin-bottom: 0.75rem;
}

.page-contact label {
  display: inline-block;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.35rem;
}

.page-contact .form-control,
.page-contact .form-control:focus {
  font-size: 16px;
}

/* ===============================
   LAYOUT FIX
   =============================== */

#main-content.container {
  max-width: none;
  width: 100%;
  padding: 0 !important;
  margin: 0;
}
/* Early Bird date under the registration table heading: <small> would shrink it below 14px */
.page-registration .table thead .sub-head th small {
  font-size: 1em;
}

/* ===============================
   DESIGN REFINEMENTS
   =============================== */

/* Home: action buttons under the conference introduction */
.home-cta {
  margin-top: -1.5rem;
  margin-bottom: 3rem;
}

/* Important Dates: each date stays on one line */
.dates .card {
  padding: 1rem;
}

.dates-list .list-group-item {
  background: transparent;
}

/* Phones: Important Dates summary at the top of the page, opens on tap */
.dates-mobile {
  background: #ffffff;
  border-bottom: 1px solid #dee2e6;
  padding: 0.6rem 1rem;
}

.dates-mobile summary {
  position: relative;
  padding-right: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.25rem 0.75rem;
  cursor: pointer;
  list-style: none;
  font-size: var(--fs-small);
}

.dates-mobile summary::-webkit-details-marker {
  display: none;
}

.dates-mobile summary::after {
  content: "\F282"; /* Bootstrap Icons: chevron-down */
  font-family: "bootstrap-icons";
  position: absolute;
  right: 0;
  top: 0;
  transition: transform 0.2s ease;
}

.dates-mobile[open] summary::after {
  transform: rotate(180deg);
}

.dates-mobile-label {
  font-weight: 700;
  color: #dc3545;
}

.dates-mobile-next {
  color: #374151;
}

.dates-mobile .dates-list {
  margin-top: 0.5rem;
}

/* Previous edition proceedings: below Important Dates */
.dates-mobile .proceedings-box {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #dee2e6;
}

/* Organizing committee: wider cards, centred when a row is not full */
.page-organizing-committee .row {
  justify-content: center;
}

.page-organizing-committee .row > [class*="col-"] {
  flex: 0 0 auto;
  width: 50%;
}

@media (min-width: 768px) {
  .page-organizing-committee .row > [class*="col-"] {
    width: 33.3333%;
  }
}

@media (min-width: 1500px) {
  .page-organizing-committee .row > [class*="col-"] {
    width: 25%;
  }
}

@media (max-width: 575.98px) {
  .page-organizing-committee .member-card {
    padding: 1rem 0.5rem;
  }
}

/* Call for Papers: cards flow in two balanced columns, each as tall as its content */
@media (min-width: 768px) {
  .cfp-section .row {
    display: block;
    column-count: 2;
    column-gap: 1.5rem;
    margin-left: 0;
    margin-right: 0;
  }

  .cfp-section .row > [class*="col-"] {
    width: 100%;
    padding: 0;
    margin: 0 0 1.5rem;
    break-inside: avoid;
  }
}

/* Registration: amounts never break across lines */
.page-registration .table td:not(:first-child),
.page-registration .table th {
  white-space: nowrap;
}

.page-registration .table thead th:first-child,
.page-registration .table tbody td:first-child {
  white-space: normal;
  min-width: 9rem;
}

/* Registration: all three fee columns fit on phones without sideways scrolling */
@media (max-width: 575.98px) {
  .page-registration .table th {
    white-space: normal;
  }

  .page-registration .table thead th:first-child,
  .page-registration .table tbody td:first-child {
    min-width: 0;
  }
}

/* Important Dates page: timeline in the site colours */
.page-important-dates .timeline-dot {
  background-color: var(--primary);
}

/* Buttons in the site's navy instead of Bootstrap's bright blue */
.btn-primary {
  --bs-btn-bg: var(--navy);
  --bs-btn-border-color: var(--navy);
  --bs-btn-hover-bg: #002f4a;
  --bs-btn-hover-border-color: #002f4a;
  --bs-btn-active-bg: #00273d;
  --bs-btn-active-border-color: #00273d;
  --bs-btn-disabled-bg: var(--navy);
  --bs-btn-disabled-border-color: var(--navy);
  --bs-btn-focus-shadow-rgb: 0, 98, 155;
}

.btn-outline-primary {
  --bs-btn-color: var(--navy);
  --bs-btn-border-color: var(--navy);
  --bs-btn-hover-bg: var(--navy);
  --bs-btn-hover-border-color: var(--navy);
  --bs-btn-active-bg: var(--navy);
  --bs-btn-active-border-color: var(--navy);
  --bs-btn-focus-shadow-rgb: 0, 98, 155;
}

/* Every page fills the content column the same way, so titles, text and
   images line up at the same edges on all pages and screen sizes. */
.content > *,
.content .container,
.home-content,
.section-landing,
.instructions-page,
.submission-page,
.publication-page,
.page-important-dates,
.page-schedule,
.cfp-section,
.page-advisory,
.page-technical-committee,
.page-contact .contact-box {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  padding-left: 0;
  padding-right: 0;
}

.content > *:first-child {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* The home banner spans the full content column */
.home-content > .home-banner-wrapper {
  margin-top: -2rem;
}

@media (max-width: 991px) {
  .home-content > .home-banner-wrapper {
    margin-top: -1rem;
  }
}

.page-contact .contact-box {
  padding: 0 !important;
}

.home-content > .home-banner-wrapper {
  margin-bottom: 1.75rem !important;
}

/* ===============================
   CARD LAYOUT (tablets in landscape and up)
   Menu, content and Important Dates are three cards on a soft
   background, with equal spacing between and around them.
   =============================== */

@media (min-width: 992px) {
  body {
    background: #edf1f6;
  }

  .app-layout {
    gap: 1.5rem;
    padding: 1.5rem;
    align-items: start;
  }

  /* Menu card */
  .sidebar {
    position: sticky;
    top: 1.5rem;
    align-self: start;
    background: #ffffff;
    border: 1px solid #e3e9f1;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 45, 80, 0.07);
    overflow: hidden;
  }

  .sidebar > nav {
    position: static;
    max-height: calc(100vh - 3rem);
  }

  .sidebar .list-group-item {
    border-color: #eef2f6;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
  }

  .sidebar .list-group-item-action:not(.active):hover {
    background-color: #f1f6fb;
    color: var(--navy);
  }

  .sidebar .list-group > .list-group-item.active,
  .sidebar .list-group > button.active {
    background: linear-gradient(135deg, #003b5c 0%, #006699 100%) !important;
    border-color: transparent !important;
  }

  .sidebar .collapse .list-group-item {
    background-color: #f8fafc;
    padding-left: 2.25rem !important;
    font-size: 0.95rem;
  }

  /* Content card */
  .content {
    border: 1px solid #e3e9f1;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 45, 80, 0.07);
    overflow: hidden;
    padding: 2rem 2.25rem;
  }

  .home-content > .home-banner-wrapper {
    margin-left: -2.25rem;
    margin-right: -2.25rem;
  }

  /* Important Dates card(s) */
  .dates {
    position: sticky;
    top: 1.5rem;
    align-self: start;
    background: transparent;
    padding: 0 !important;
  }

  .dates > .card {
    position: static;
    border: 1px solid #e3e9f1;
    border-top: 4px solid #dc3545;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(15, 45, 80, 0.07) !important;
  }

  .dates > .proceedings-card {
    border-top-color: #003b5c;
  }

  /* Summary bar (small laptops) becomes a card too */
  .dates-mobile {
    border: 1px solid #e3e9f1;
    border-left: 4px solid #dc3545;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(15, 45, 80, 0.06);
    padding: 0.75rem 1rem;
  }
}

/* Wider spacing on large screens */
@media (min-width: 1400px) {
  .app-layout {
    gap: 2rem;
    padding: 2rem;
  }

  .sidebar,
  .dates {
    top: 2rem;
  }

  .sidebar > nav {
    max-height: calc(100vh - 4rem);
  }
}

/* ===============================
   SMALL-SCREEN FIXES
   =============================== */

/* Long web addresses wrap instead of running off the screen */
.content {
  overflow-wrap: anywhere;
}

.content table {
  overflow-wrap: normal;
}

/* Banner matches the content padding on phones and tablets */
@media (max-width: 991.98px) {
  .home-content > .home-banner-wrapper {
    margin-left: -1rem;
    margin-right: -1rem;
  }
}

/* Comfortable tap targets */
.mobile-menu-toggle {
  min-width: 44px;
  min-height: 44px;
}

.section-landing > a:first-child {
  display: inline-block;
  padding: 0.4rem 0;
}

/* Smallest phones: logos shrink so they never touch the menu button */
@media (max-width: 359.98px) {
  .ieee-logo {
    height: 32px;
    max-width: 100px;
  }

  .university-logo {
    height: 36px;
    max-width: 110px;
  }

  .header-logos > [class*="col-"] {
    padding-left: 0.4rem;
    padding-right: 0.4rem;
  }
}
