/* ========================================
   Reset and Base Styles
   ======================================== */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

/* ========================================
   Layout
   ======================================== */

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px;
}

/* ========================================
   Header Section
   ======================================== */

.conference-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
  text-align: center;
}

.conference-logo {
  height: 75px;
  width: auto;
}

.conference-text {
  font-size: 1.2rem;
  font-weight: 600;
  color: #2c3e50;
  letter-spacing: 1px;
}

.title {
  margin-bottom: 30px;
  text-align: center;
}

.title h1 {
  margin: 0;
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2;
  color: #2c3e50;
}

.authors,
.affiliations {
  text-align: center;
}

.authors {
  margin-bottom: 15px;
  font-size: 1.1rem;
}

.authors a {
  color: #3498db;
  text-decoration: none;
  transition: color 0.3s ease;
}

.authors a:hover {
  color: #2980b9;
  text-decoration: underline;
}

.authors sup {
  margin-left: 2px;
  font-size: 0.8rem;
}

.affiliations {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
  font-size: 0.95rem;
  color: #666;
}

.affiliation {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.affiliation-logo {
  height: 35px;
  width: auto;
  padding: 6px;
  background-color: white;
  border-radius: 4px;
  vertical-align: middle;
}

/* ========================================
   Navigation Links
   ======================================== */

.links {
  margin-bottom: 40px;
  text-align: center;
}

.links a {
  display: inline-block;
  margin: 0 8px;
  padding: 6px 12px;
  background-color: #24292e;
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #1b1f23;
  border-radius: 6px;
  vertical-align: middle;
  transition: background-color 0.3s ease;
}

.links a:hover {
  background-color: #1b1f23;
}

.links a i,
.venue-logo {
  margin-right: 6px;
}

.links a i {
  font-size: 0.9rem;
}

.venue-logo {
  height: 16px;
  width: auto;
  vertical-align: middle;
}

/* ========================================
   Teaser Section
   ======================================== */

.teaser {
  margin: 0 -20px 50px;
  padding: 30px 20px;
  background-color: #f8f9fa;
}

.teaser table {
  width: 100%;
  border-collapse: collapse;
}

.teaser img {
  width: 100%;
  max-width: 1000px;
  height: auto;
  border-radius: 8px;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
}

.teaser .caption,
.figure .caption {
  padding: 15px 20px 0;
  font-size: 0.95rem;
  font-style: italic;
  color: #666;
  text-align: justify;
}

/* ========================================
   Content Sections
   ======================================== */

.section {
  margin-bottom: 50px;
}

.section h2 {
  margin-bottom: 20px;
  padding-bottom: 10px;
  font-size: 1.8rem;
  font-weight: 500;
  color: #2c3e50;
  border-bottom: 2px solid #ecf0f1;
}

.section p {
  margin-bottom: 15px;
  line-height: 1.7;
  text-align: justify;
}

/* ========================================
   Figures
   ======================================== */

.figure {
  margin: 30px 0;
  text-align: center;
}

.figure img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.figure .caption {
  margin-top: 15px;
  padding: 0 20px;
}

/* Figure variants */
.figure.quantitative {
  display: flex;
  justify-content: center;
}

.figure.quantitative .quantitative-img {
  max-width: 400px;
  width: 100%;
}

.figure.plain img,
.method-figure img {
  border-radius: 0;
  box-shadow: none;
}

/* ========================================
   BibTeX Section
   ======================================== */

.bibtex {
  margin: 20px 0;
  padding: 20px;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
}

.bibtex pre {
  margin: 0;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* ========================================
   Footer
   ======================================== */

.footnote {
  margin-top: 40px;
  padding: 20px 0;
  background-color: #f8f9fa;
  text-align: center;
}

.footnote .template-credit,
.template-credit {
  margin: 0;
  font-size: 0.85rem;
  font-style: italic;
  color: #888;
}

.template-credit {
  margin-top: 20px;
}

.template-credit a {
  color: #3498db;
  text-decoration: none;
}

.template-credit a:hover {
  text-decoration: underline;
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
  .container {
    padding: 20px 15px;
  }

  .title h1 {
    font-size: 2rem;
  }

  .authors {
    font-size: 1rem;
  }

  .links a {
    margin: 5px 8px;
    padding: 6px 12px;
    font-size: 0.9rem;
  }

  .section h2 {
    font-size: 1.5rem;
  }

  .teaser {
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .teaser .caption,
  .figure .caption {
    padding: 10px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .title h1 {
    font-size: 1.7rem;
  }

  .links a {
    display: block;
    width: 150px;
    margin: 5px auto;
    text-align: center;
  }
}