/* ========================================
   ICCP 2026 V2 — IEEE IV 2026 Theme
   ======================================== */

/* CSS Variables — IEEE IV palette */
:root {
  --navy: #002855;
  --deep-blue: #00629b;
  --orange: #ffa300;
  --gold: #ffd100;
  --white: #ffffff;
  --off-white: #f5f7fa;
  --light-gray: #e8ecf1;
  --text-dark: #1a1a2e;
  --text-body: #4a4a5a;
  --text-light: #6b7280;
  --border-color: #d1d5db;
  --shadow-sm: 0 1px 3px rgba(0, 40, 85, 0.08);
  --shadow-md: 0 4px 12px rgba(0, 40, 85, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 40, 85, 0.12);
  --container-width: 1200px;
  --topbar-height: 36px;
  --nav-height: 64px;
  --radius: 4px;
}

/* Reset & Base */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.6em;
}

h1 { font-size: 2.2em; }
h2 { font-size: 1.6em; color: var(--navy); border-bottom: 3px solid var(--orange); padding-bottom: 0.3em; margin-top: 1.5em; }
h3 { font-size: 1.25em; margin-top: 1.2em; color: var(--deep-blue); }
h4 { font-size: 1.1em; }

p { margin-bottom: 1em; }

a {
  color: var(--deep-blue);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--orange);
  text-decoration: underline;
}

ul, ol {
  margin-bottom: 1em;
  padding-left: 1.5em;
}

li { margin-bottom: 0.3em; }

strong { color: var(--text-dark); }

/* ========================================
   IEEE Top Bar
   ======================================== */
.ieee-topbar {
  background: var(--navy);
  height: var(--topbar-height);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.topbar-links {
  display: flex;
  gap: 20px;
}

.topbar-links a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 12px;
  transition: color 0.2s;
}

.topbar-links a:hover {
  color: var(--gold);
  text-decoration: none;
}

.topbar-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.topbar-social a {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.topbar-social a:hover {
  color: var(--gold);
}

/* ========================================
   Navigation
   ======================================== */
.site-nav {
  background: var(--white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-height);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo:hover {
  text-decoration: none;
}

.logo-ieee {
  background: var(--navy);
  color: var(--white);
  font-weight: 800;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 1px;
}

.logo-conf {
  font-weight: 700;
  font-size: 1.1em;
  color: var(--navy);
}

/* Desktop Nav */
.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0;
}

.nav-menu > li {
  position: relative;
  margin: 0;
}

.nav-menu > li > a {
  display: flex;
  align-items: center;
  padding: 0 10px;
  height: var(--nav-height);
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  text-decoration: none;
  border-bottom: 3px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  color: var(--deep-blue);
  border-bottom-color: var(--orange);
}

/* Dropdown */
.nav-menu li .dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-top: 3px solid var(--orange);
  min-width: 240px;
  list-style: none;
  padding: 8px 0;
  margin: 0;
  z-index: 1001;
}

.nav-menu li:hover .dropdown {
  display: block;
}

.dropdown li { margin: 0; }

.dropdown a {
  display: block;
  padding: 10px 24px;
  color: var(--text-dark);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}

.dropdown a:hover {
  background: var(--off-white);
  color: var(--deep-blue);
  text-decoration: none;
}

/* Hamburger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 3px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ========================================
   Hero Banner
   ======================================== */
.hero {
  position: relative;
  background: url('../images/hero-cluj.jpg') center/cover no-repeat;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0, 40, 85, 0.05) 0%, rgba(0, 98, 155, 0.05) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  color: var(--white);
  padding: 70px 24px;
  max-width: 900px;
}

.hero-edition {
  font-size: 1.2em;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
  opacity: 0.9;
}

.hero-title {
  font-size: 2.8em;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 12px;
  line-height: 1.15;
  border: none;
  padding: 0;
}

.hero-subtitle {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 28px;
}

.hero-info {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1em;
  font-weight: 500;
}

.hero-info-item svg {
  width: 22px;
  height: 22px;
  color: var(--gold);
}

.hero-btn {
  display: inline-block;
  background: var(--orange);
  color: var(--navy);
  padding: 14px 40px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 12px rgba(255, 163, 0, 0.3);
}

.hero-btn:hover {
  background: var(--gold);
  color: var(--navy);
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 163, 0, 0.4);
}

/* ========================================
   Page Content
   ======================================== */
.page-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--deep-blue) 100%);
  padding: 48px 0;
}

.page-header h1 {
  margin: 0;
  font-size: 2em;
  color: var(--white);
  border: none;
}

.page-content {
  padding: 48px 0 72px;
}

.page-content h2 {
  color: var(--navy);
}

/* Homepage Sections */
.home-section {
  padding: 48px 0;
}

.home-section:nth-child(even) {
  background: var(--off-white);
}

.section-title {
  font-size: 1.8em;
  color: var(--navy);
  text-align: center;
  margin-bottom: 36px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--orange);
  display: inline-block;
}

.section-title-wrapper {
  text-align: center;
  margin-bottom: 12px;
}

/* Info Cards — border-left orange accent */
.info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 36px 0;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.info-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.info-card h3 {
  color: var(--navy);
  margin-top: 8px;
  font-size: 1.1em;
}

.info-card p {
  font-size: 0.95em;
  margin-bottom: 0;
  color: var(--text-light);
}

.info-card .icon {
  font-size: 2em;
  color: var(--deep-blue);
}

/* Logo Cards — organizers/sponsors/supporters with logos */
.logo-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin: 24px 0 36px;
}

.logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius);
  padding: 24px 16px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.logo-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
  color: inherit;
}

.logo-card img {
  max-height: 80px;
  max-width: 160px;
  object-fit: contain;
  margin-bottom: 12px;
}

.logo-card h3 {
  color: var(--navy);
  font-size: 0.95em;
  margin: 0 0 4px;
}

.logo-card p {
  font-size: 0.85em;
  color: var(--text-light);
  margin: 0;
}

/* Card accent variants for logo-cards */
.logo-card.organizer-card { border-top: 3px solid var(--navy); }
.logo-card.sponsor-card { border-top: 3px solid var(--deep-blue); }
.logo-card.supporter-card { border-top: 3px solid var(--orange); }

/* Subsection Titles — Organizers / Sponsors / Supporters */
.subsection-title {
  display: inline-block;
  font-size: 1.15em;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 20px;
  border-radius: var(--radius);
  margin-top: 32px;
  margin-bottom: 0;
}

.subsection-title:first-child,
.section-title-wrapper:first-child .subsection-title {
  margin-top: 0;
}

.organizers-title {
  color: var(--navy);
  border-bottom: 3px solid var(--navy);
}

.sponsors-title {
  color: var(--deep-blue);
  border-bottom: 3px solid var(--deep-blue);
}

.supporters-title {
  color: var(--orange);
  border-bottom: 3px solid var(--orange);
}

/* Card accent variants */
.organizer-card {
  border-left: 4px solid var(--navy);
}

.sponsor-card {
  border-left: 4px solid var(--deep-blue);
}

.supporter-card {
  border-left: 4px solid var(--orange);
}

/* Dates Table */
.dates-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  border-radius: var(--radius);
  overflow: hidden;
}

.dates-table th,
.dates-table td {
  padding: 14px 20px;
  text-align: left;
  border-bottom: 1px solid var(--light-gray);
}

.dates-table th {
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dates-table tr:hover td {
  background: var(--off-white);
}

.dates-table .tbd {
  color: var(--orange);
  font-weight: 700;
}

/* Buttons */
.btn {
  display: inline-block;
  background: var(--deep-blue);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}

.btn:hover {
  background: var(--navy);
  color: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--deep-blue);
  color: var(--deep-blue);
}

.btn-outline:hover {
  background: var(--deep-blue);
  color: var(--white);
}

/* Track List */
.track-list {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: 36px;
}

.track-list li {
  padding: 8px 0 8px 24px;
  position: relative;
  break-inside: avoid;
}

.track-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 10px;
  height: 10px;
  background: var(--orange);
  border-radius: 50%;
}

/* Committee Table */
.committee-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}

.committee-table td {
  padding: 12px 20px;
  border-bottom: 1px solid var(--light-gray);
  vertical-align: top;
}

.committee-table .role {
  font-weight: 600;
  color: var(--navy);
  width: 260px;
}

/* Committee Member Cards — photo grid */
.committee-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 28px;
  margin: 24px 0 36px;
}

.member-card {
  text-align: center;
}

.member-card img,
.member-placeholder {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  display: block;
  border: 3px solid var(--light-gray);
  object-position: center 4%;
}

.member-placeholder {
  background: var(--light-gray);
}

.member-card h4 {
  color: var(--navy);
  font-size: 0.95em;
  margin: 0 0 4px;
}

.member-card p {
  font-size: 0.82em;
  color: var(--text-light);
  margin: 0;
}

/* Horizontal member card — photo left, text right */
.member-card-horizontal {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 16px 0 32px;
}

.member-card-horizontal img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 4%;
  border: 5px solid var(--light-gray);
  flex-shrink: 0;
}

.member-card-horizontal .member-info h4 {
  color: var(--navy);
  font-size: 1.05em;
  margin: 0 0 4px;
}

.member-card-horizontal .member-info p {
  font-size: 0.9em;
  color: var(--text-light);
  margin: 0;
}

/* Previous Conferences */
.conf-list {
  list-style: none;
  padding: 0;
}

.conf-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--light-gray);
}

/* Program Committee List */
.pc-list ul {
  list-style: none;
  padding: 0;
  columns: 2;
  column-gap: 40px;
}

.pc-list li {
  padding: 8px 0;
  border-bottom: 1px solid var(--light-gray);
  break-inside: avoid;
  font-size: 0.95em;
}

@media (max-width: 768px) {
  .pc-list ul {
    columns: 1;
  }
}

/* Keynote Speakers */
.keynote-speaker {
  margin-bottom: 48px;
}

.keynote-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.keynote-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 5%;
  border: 3px solid var(--light-gray);
  flex-shrink: 0;
  
}

.keynote-info h2 {
  margin: 0 0 4px;
  color: var(--navy);
}

.keynote-affiliation {
  font-size: 1.05em;
  color: var(--text-body);
  margin: 0 0 4px;
}

.keynote-web {
  margin: 0;
  font-size: 0.95em;
}

.keynote-speaker h3 {
  color: var(--deep-blue);
  margin-bottom: 12px;
}

/* ========================================
   Footer
   ======================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 48px 0 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 36px;
  padding-bottom: 36px;
}

.footer-section h4 {
  color: var(--white);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  border: none;
}

.footer-section p,
.footer-section a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
}

.footer-section a:hover {
  color: var(--gold);
  text-decoration: none;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin-top: 16px;
}

.footer-social a {
  color: rgba(255, 255, 255, 0.5);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}

.footer-social a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
}

/* Welcome + Dates Side-by-Side */
.welcome-dates-row {
  display: flex;
  gap: 36px;
  align-items: flex-start;
}

.welcome-col {
  flex: 7;
}

.dates-col {
  flex: 3;
}

.dates-box {
  background: var(--white);
  border: 2px solid var(--deep-blue);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow-md);
}

.dates-box-title {
  color: var(--navy);
  font-size: 1.3em;
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--orange);
}

.dates-box .dates-table {
  margin: 0;
}

.dates-box .dates-table th,
.dates-box .dates-table td {
  padding: 10px 12px;
  font-size: 0.9em;
}

/* Video Embed */
.video-intro {
  text-align: center;
  font-size: 1.4em;
  color: var(--navy);
  font-weight: 600;
  margin-bottom: 24px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  max-width: 800px;
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 900px) {
  body { font-size: 16px; }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: var(--white);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: 12px 0;
  }

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

  .nav-menu > li > a {
    height: auto;
    padding: 14px 24px;
    border-bottom: none;
  }

  .nav-menu > li > a:hover,
  .nav-menu > li.active > a {
    border-bottom: none;
    background: var(--off-white);
  }

  .nav-menu li .dropdown {
    position: static;
    box-shadow: none;
    border-top: none;
    padding-left: 24px;
    display: none;
    min-width: auto;
  }

  .nav-menu li.dropdown-open .dropdown {
    display: block;
  }

  .topbar-links { display: none; }

  .hero { min-height: 400px; }

  .hero-title { font-size: 2em; }

  .hero-edition { font-size: 1em; }

  .hero-info {
    flex-direction: column;
    gap: 12px;
    align-items: center;
  }

  .welcome-dates-row {
    flex-direction: column;
  }

  .track-list { columns: 1; }

  .committee-table .role { width: auto; }

  .footer-content { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.5em; }

  .hero-subtitle { font-size: 1.2em; }

  .hero-content { padding: 40px 16px; }

  h2 { font-size: 1.3em; }

  .info-cards { grid-template-columns: 1fr; }
}
