
:root {
  --navy: #071a32;
  --navy-light: #102c4b;
  --blue: #1477b9;
  --cyan: #39c5df;
  --light: #f3f7fb;
  --text: #34445a;
  --white: #fff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  line-height: 1.7;
}

a { text-decoration: none; }

.container {
  width: min(1160px, 88%);
  margin: auto;
}

/* Navigation */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 2px 15px #0000000b;
}

.navbar {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: var(--navy);
  font-size: 25px;
  font-weight: 800;
  white-space: nowrap;
}

.brand span { color: var(--blue); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  transition: color .2s;
}

.nav-links a:hover { color: var(--blue); }

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  margin: 6px;
}

/* Hero */

.hero {
  min-height: 640px;
  display: flex;
  align-items: center;
  position: relative;
  color: white;
  background:
    url("https://images.unsplash.com/photo-1473341304170-971dccb5ac1e?auto=format&fit=crop&w=2000&q=85")
    center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(4, 20, 40, .96),
    rgba(5, 34, 62, .83),
    rgba(5, 34, 62, .35)
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 70px;
  padding-bottom: 70px;
}

.eyebrow {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 3px;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(48px, 7vw, 78px);
  line-height: 1.08;
  margin: 22px 0;
  letter-spacing: -2px;
}

.hero h1 span { color: var(--cyan); }

.hero-description {
  max-width: 620px;
  font-size: 19px;
  color: #dbe8f4;
}

.event-details {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin: 30px 0;
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-block;
  padding: 13px 24px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  transition: .2s;
}

.button-primary {
  color: var(--navy);
  background: var(--cyan);
}

.button-primary:hover {
  background: white;
  transform: translateY(-2px);
}

.button-outline {
  color: white;
  border: 1px solid white;
}

.button-outline:hover {
  background: white;
  color: var(--navy);
}

/* Organizers */

.organizers-strip {
  padding: 27px 0;
  text-align: center;
  background: var(--navy);
  color: white;
}

.organizers-strip p {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--cyan);
}

.organizer-names {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 8px;
  font-weight: 700;
}

.separator { color: var(--cyan); }

/* Sections */

.section {
  padding-top: 85px;
  padding-bottom: 85px;
}

.section-light { background: var(--light); }

.section-heading { margin-bottom: 35px; }

.section-heading h2,
.contact-section h2 {
  font-size: clamp(29px, 4vw, 38px);
  color: var(--navy);
  margin: 10px 0;
}

.heading-line {
  width: 55px;
  height: 4px;
  background: var(--cyan);
  margin-top: 17px;
}

.section-intro { margin-top: 20px; }

/* About */

.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 55px;
  align-items: center;
}

.about-grid p { margin-bottom: 17px; }

.event-card {
  background: var(--navy);
  color: white;
  padding: 34px;
  border-radius: 7px;
  border-left: 4px solid var(--cyan);
}

.event-card h3 {
  color: var(--cyan);
  font-size: 25px;
  margin-bottom: 20px;
}

.event-card p { margin-bottom: 12px; }

/* Topics */

.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.topic-card,
.committee-card,
.date-card {
  background: white;
  padding: 28px;
  border-radius: 6px;
  box-shadow: 0 5px 25px #142c440b;
  border-bottom: 3px solid var(--cyan);
}

.topic-card > span {
  color: var(--blue);
  font-size: 27px;
  font-weight: 800;
}

.topic-card h3,
.committee-card h3,
.date-card h3 {
  color: var(--navy);
  margin: 12px 0;
  font-size: 19px;
}

/* Committees */

.committee-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

/* Dates */

.dates-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.date-card {
  border-left: 3px solid var(--blue);
  border-bottom: none;
}

.date-card p {
  color: var(--blue);
  font-weight: 700;
}

.conference-date {
  margin-top: 28px;
  color: var(--navy);
}

/* Submission */

.submission-content { max-width: 800px; }

.notice {
  margin-top: 22px;
  padding: 18px;
  border-left: 4px solid var(--cyan);
  background: var(--light);
  color: var(--navy);
  font-weight: 700;
}

/* Venue */

.venue-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 35px;
  align-items: center;
}

.venue-content h3 {
  color: var(--navy);
  font-size: 24px;
  margin-bottom: 15px;
}

.venue-content p { margin-bottom: 12px; }

.venue-placeholder {
  min-height: 240px;
  background: linear-gradient(135deg, var(--navy), var(--blue));
  border-radius: 7px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  color: white;
  padding: 20px;
}

.venue-placeholder span {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: 3px;
}

.venue-placeholder p { color: #cce8f6; }

/* Publication */

.publication {
  background: #eaf1f7;
  padding: 60px 0;
  text-align: center;
}

.publication h2 {
  color: var(--navy);
  font-size: 32px;
  margin: 10px 0;
}

.ieee-logo-container { margin-top: 25px; }

.ieee-logo {
  display: inline-block;
  max-width: 200px;
  max-height: 65px;
  object-fit: contain;
}

/* Contact */

.contact-section {
  padding: 75px 0;
  text-align: center;
  background: var(--navy);
  color: white;
}

.contact-section h2 { color: white; }

.contact-section > .container > p:not(.eyebrow) {
  margin: 12px auto 25px;
  max-width: 600px;
  color: #cbd9e6;
}

/* Footer */

.footer {
  background: #041225;
  color: #b9c9d9;
  padding-top: 45px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 35px;
  padding-bottom: 35px;
}

.footer-brand { color: white; }

.footer h3 {
  color: white;
  margin-bottom: 12px;
}

.footer p { font-size: 13px; }

.footer a:not(.brand) { color: var(--cyan); }

.copyright {
  border-top: 1px solid #ffffff18;
  text-align: center;
  padding: 18px;
  font-size: 12px;
}

/* Responsive */

@media (max-width: 1050px) {
  .nav-links { gap: 12px; }
  .nav-links a { font-size: 11px; }
}

@media (max-width: 850px) {
  .menu-toggle { display: block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 15px 6%;
    box-shadow: 0 10px 15px #00000012;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    display: block;
    padding: 8px;
    font-size: 14px;
  }

  .about-grid,
  .venue-content { grid-template-columns: 1fr; }

  .topics-grid { grid-template-columns: repeat(2, 1fr); }
  .dates-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 550px) {
  .container { width: 90%; }

  .hero { min-height: 570px; }
  .hero h1 { font-size: 48px; }

  .topics-grid,
  .dates-grid,
  .committee-grid,
  .footer-content { grid-template-columns: 1fr; }

  .event-details {
    flex-direction: column;
    gap: 10px;
  }

  .organizer-names {
    flex-direction: column;
    gap: 5px;
  }

  .separator { display: none; }

  .section { padding-top: 60px; padding-bottom: 60px; }
}


/* =========================================================
   MPS 2027 – contemporary blue visual identity
   ========================================================= */
:root {
  --navy: #071a38;
  --navy-light: #102b55;
  --blue: #1769d2;
  --cyan: #55c8f2;
  --light: #f3f7fc;
  --text: #40516b;
  --white: #fff;
  --shadow-soft: 0 18px 50px rgba(8, 35, 75, .09);
}

body {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: #fff;
  letter-spacing: .005em;
}

.container { width: min(1200px, 90%); }

.header {
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(7,26,56,.07);
  border-bottom: 1px solid rgba(18,75,140,.07);
}

.navbar { min-height: 88px; gap: 24px; }
.brand-group { display: flex; align-items: center; gap: 24px; }
.brand { font-size: 25px; letter-spacing: -.8px; color: var(--navy); }
.brand span { color: var(--blue); }
.partner-logos { display: flex; align-items: center; gap: 16px; }
.partner-logos a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  max-width: 132px;
}
.partner-logos img {
  display: block;
  max-width: 126px;
  max-height: 44px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.nav-links { gap: clamp(10px, 1.5vw, 22px); }
.nav-links a {
  font-size: 12px;
  letter-spacing: .025em;
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--blue); }

.hero {
  min-height: 450px;
  background-position: center 48%;
}
.hero-overlay {
  background:
    radial-gradient(circle at 78% 20%, rgba(42,145,235,.24), transparent 34%),
    linear-gradient(100deg, rgba(4,18,43,.97) 0%, rgba(7,34,75,.84) 52%, rgba(7,34,75,.35) 100%);
}
.hero-content { padding-top: 40px; padding-bottom: 20px; }
.eyebrow { letter-spacing: 2.4px; font-size: 11px; }
.hero h1 {
  font-size: clamp(50px, 7vw, 84px);
  letter-spacing: -2.8px;
  line-height: 1.02;
}
.hero h1 span { color: #68d3ff; }
.hero-description { font-size: clamp(17px, 2vw, 20px); max-width: 850px; }
.event-details { color: #e2efff; gap: 24px; }
.button {
  padding: 14px 25px;
  border-radius: 8px;
  font-size: 12px;
  letter-spacing: .04em;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.button-primary {
  color: #061b3b;
  background: linear-gradient(135deg, #73dcff, #45b9f0);
  box-shadow: 0 10px 28px rgba(49,178,237,.22);
}
.button-primary:hover { background: #fff; transform: translateY(-3px); box-shadow: 0 14px 30px rgba(49,178,237,.24); }
.button-outline { border: 1px solid rgba(255,255,255,.72); border-radius: 8px; }
.button-outline:hover { background: white; color: var(--navy); transform: translateY(-3px); }

.organizers-strip {
  padding: 25px 0 28px;
  background: linear-gradient(105deg, #071a38, #123c78);
}
.organizers-strip p { color: #76d8ff; }
.organizer-names { gap: 24px; letter-spacing: .02em; }

.infra-showcase {
  padding: 88px 0 92px;
  background:
    radial-gradient(circle at 8% 10%, rgba(55,150,235,.08), transparent 28%),
    linear-gradient(180deg, #f7faff, #edf4fc);
}
.showcase-heading { max-width: 760px; margin: 0 auto 34px; text-align: center; }
.showcase-heading h2 {
  margin: 10px 0 12px;
  color: var(--navy);
  font-size: clamp(29px, 4vw, 42px);
  line-height: 1.15;
  letter-spacing: -1.2px;
}
.showcase-heading > p:last-child { color: #63748d; }
.slideshow {
  overflow: hidden;
  border-radius: 22px;
  background: #071a38;
  box-shadow: 0 24px 65px rgba(7,26,56,.2);
}
.slides { position: relative; min-height: clamp(300px, 45vw, 570px); }
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .85s ease, visibility .85s ease;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: clamp(300px, 45vw, 570px);
  object-fit: cover;
  filter: saturate(.9);
}
.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4,18,43,.84), rgba(4,18,43,.16) 85%),
              linear-gradient(0deg, rgba(4,18,43,.38), transparent 55%);
}
.slide-caption {
  position: absolute;
  z-index: 1;
  left: clamp(24px, 6vw, 72px);
  bottom: clamp(30px, 6vw, 66px);
  max-width: 620px;
  color: white;
}
.slide-caption span {
  color: #8be0ff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.slide-caption h3 {
  margin-top: 13px;
  font-size: clamp(27px, 4.5vw, 48px);
  line-height: 1.08;
  letter-spacing: -1.2px;
}
.slideshow-controls {
  min-height: 72px;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #071a38;
}
.slide-dots { display: flex; align-items: center; gap: 9px; }
.slide-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #7890b0;
  cursor: pointer;
  transition: width .25s ease, background .25s ease;
}
.slide-dot.is-active { width: 28px; background: #62d2ff; }
.slide-arrows { display: flex; gap: 9px; }
.slide-arrow {
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: white;
  background: transparent;
  font-size: 19px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.slide-arrow:hover { background: #1769d2; border-color: #1769d2; }

.section { padding-top: 96px; padding-bottom: 96px; }
.section-light { background: #f4f8fd; }
.section-heading h2, .contact-section h2 {
  letter-spacing: -1px;
  font-weight: 800;
}
.heading-line { width: 62px; height: 4px; border-radius: 8px; background: linear-gradient(90deg, var(--blue), var(--cyan)); }
.about-grid { gap: 70px; }
.about-grid p { line-height: 1.85; }
.event-card {
  border: 1px solid rgba(93,175,235,.18);
  border-left: 4px solid #58cafa;
  border-radius: 16px;
  padding: 38px;
  background: linear-gradient(145deg, #0a2147, #123d78);
  box-shadow: var(--shadow-soft);
}
.topic-card, .committee-card, .date-card {
  border: 1px solid rgba(22,83,151,.08);
  border-bottom: 3px solid #56c9f5;
  border-radius: 14px;
  box-shadow: 0 10px 35px rgba(13,48,91,.06);
  transition: transform .25s ease, box-shadow .25s ease;
}
.topic-card:hover, .committee-card:hover, .date-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 42px rgba(13,48,91,.12);
}
.topic-card { padding: 32px; }
.topic-card > span { color: #2c83d9; }
.date-card { border-left: 3px solid #2c83d9; }
.notice { border-radius: 0 10px 10px 0; background: #eff7ff; }
.venue-placeholder { border-radius: 18px; box-shadow: var(--shadow-soft); }
.publication { background: #eaf2fb; }
.contact-section {
  background:
    radial-gradient(circle at 80% 10%, rgba(47,136,220,.24), transparent 30%),
    linear-gradient(120deg, #071a38, #123c78);
}
.footer { background: #041127; }

@media (max-width: 1050px) {
  .navbar { gap: 12px; }
  .brand-group { gap: 14px; }
  .partner-logos { gap: 9px; }
  .partner-logos a { max-width: 100px; }
  .partner-logos img { max-width: 96px; max-height: 38px; }
  .nav-links { gap: 10px; }
  .nav-links a { font-size: 10px; }
}

@media (max-width: 850px) {
  .navbar { min-height: 78px; }
  .brand-group { gap: 12px; }
  .partner-logos a { max-width: 78px; height: 40px; }
  .partner-logos img { max-width: 76px; max-height: 34px; }
  .nav-links {
    top: 78px;
    border-top: 1px solid #e7eef7;
  }
  .nav-links a { font-size: 14px; padding: 10px 8px; }
  .infra-showcase { padding: 65px 0; }
  .section { padding-top: 70px; padding-bottom: 70px; }
}

@media (max-width: 550px) {
  .brand { font-size: 22px; }
  .brand-group { gap: 9px; }
  .partner-logos { gap: 7px; }
  .partner-logos a { max-width: 62px; height: 34px; }
  .partner-logos img { max-width: 60px; max-height: 29px; }
  .hero { min-height: 590px; }
  .hero h1 { font-size: clamp(43px, 12vw, 54px); }
  .slides, .slide img { min-height: 360px; }
  .slide-caption h3 { font-size: 29px; }
  .slideshow { border-radius: 15px; }
  .slideshow-controls { min-height: 62px; padding: 11px 16px; }
  .slide-arrow { width: 34px; height: 34px; }
  .organizer-names { gap: 5px; }
  .separator { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
.countdown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: auto; /* Prevents it from stretching to fill the parent's height */
}

.countdown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content; /* Shrinks the container to only take up as much width as the countdown needs */
  margin: 0 auto;     /* Centers the container on the page */
  height: auto;
}

.countdown-container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  margin: 0 auto;
  height: auto;
}

.countdown {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 6px; /* Tighter spacing between units */
  background: #0aa9f2;
  color: black;
  padding: 4px 8px; /* Minimal inner padding */
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  width: fit-content; /* Forces the box to wrap tightly around the items */
}

.countdown div {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.75em;
  margin: 0;
}

.countdown button {
  font-size: 0.85em;
  padding: 2px 6px; /* Smaller button size reduces the overall width */
  border: none;
  border-radius: 3px;
  background-color: #ffffff;
  color: black;
  cursor: default;
  font-weight: bold;
}