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

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  color: #333;
  overflow-x: hidden;
  width: 100%;
  max-width: 100vw;
}

html {
  overflow-x: hidden;
  width: 100%;
}

.header {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url(./assets/vitam-college.png);
  background-size: cover;
  background-position: center 25%;
  background-repeat: no-repeat;
  color: white;
  padding: 2rem 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  width: 100%;
  overflow-x: hidden;
}

.header-content {
  text-align: center;
}

.header-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
  line-height: 1.3;
}

.header-content .acronym {
  font-size: 3rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.header-content p {
  font-size: 1.1rem;
  margin: 0.5rem 0;
  opacity: 0.95;
  line-height: 1.5;
}

.tagline {
  font-style: italic;
  font-size: 1.2rem !important;
  margin-top: 1rem !important;
  opacity: 1 !important;
}

.first-nav {
  background: #1e293b;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  padding: 1rem 0;
}

.nav-logo:hover {
  color: #3b82f6;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.5rem;
}

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

.first-nav ul li {
  margin: 0;
}

.first-nav ul li a {
  display: block;
  padding: 1rem 1.2rem;
  color: white;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
  font-size: 0.95rem;
}

.first-nav ul li a:hover {
  background: #3b82f6;
}

.second-nav {
  background-color: #f1f5f9;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.second-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0px 20px;
}

.second-nav ul {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3.2rem;
  list-style: none;
}

.second-nav ul li a {
  color: #1e293b;
  text-decoration: none;
  font-size: 16px;
  display: block;
  padding: 1rem 1.2rem;
  text-decoration: none;
  transition: background 0.3s, color 0.3s;
}

.second-nav ul li a:hover {
  background: #3b82f6;
  color: #fff;
}

.content {
  padding: 3rem 0;
  width: 100%;
  overflow-x: hidden;
}

section {
  margin-bottom: 4rem;
  width: 100%;
  overflow-x: hidden;
}

section p,
section ul li {
  text-align: justify;
  line-height: 1.7;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

h2 {
  color: #1e3a8a;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #3b82f6;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

h3 {
  color: #1e3a8a;
  font-size: 1.5rem;
  margin: 1.5rem 0 1rem 0;
  word-wrap: break-word;
  overflow-wrap: break-word;
  max-width: 100%;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.info-card {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
}

.info-card h4 {
  color: #1e3a8a;
  margin-bottom: 0.5rem;
}

.info-card p {
  line-height: 1.6;
}
.info-href {
  color: #1e293b;
  text-decoration: none;
}
.committee-list {
  background: #f8fafc;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.committee-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.committee-list li {
  padding: 0.8rem 0;
  border-bottom: 1px solid #e2e8f0;
  line-height: 1.6;
  padding-left: 1.5rem;
  position: relative;
}

.committee-list li:before {
  content: "▸";
  position: absolute;
  left: 0;
  color: #3b82f6;
  font-weight: bold;
}

.committee-list li:last-child {
  border-bottom: none;
}

.committee-list li strong {
  color: #1e3a8a;
}

.theme-list {
  background: #f1f5f9;
  padding: 1.5rem;
  border-radius: 8px;
  margin: 1rem 0;
}

.theme-list h3 {
  margin-top: 0;
}

.theme-list ul {
  margin-left: 1.5rem;
  margin-top: 0.5rem;
}

.theme-list li {
  margin: 0.5rem 0;
  line-height: 1.6;
}

#registration-process ol {
  list-style: none;
  counter-reset: item;
  margin: 1.5rem 0;
  padding: 0;
}

#registration-process ol li {
  counter-increment: item;
  padding: 1rem 1rem 1rem 3.5rem;
  margin-bottom: 1rem;
  background: #f8fafc;
  border-left: 4px solid #3b82f6;
  border-radius: 4px;
  position: relative;
  line-height: 1.7;
  text-align: justify;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

#registration-process ol li:before {
  content: counter(item);
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: #3b82f6;
  color: white;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

#registration-process ol li:last-child {
  margin-bottom: 0;
}
/* Table wrapper for horizontal scroll */
.table-wrapper {
  width: 100%;
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  -webkit-overflow-scrolling: touch;
}

.price-table table,
.speaker-table table {
  width: 100%;
  min-width: 600px;
  border-collapse: collapse;
  background: white;
}

.price-table th,
.price-table td,
.speaker-table th,
.speaker-table td {
  padding: 1rem;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  white-space: normal;
  word-wrap: break-word;
}

.price-table th,
.speaker-table th {
  background: #1e3a8a;
  color: white;
  font-weight: 600;
  white-space: nowrap;
}

.price-table tr:hover,
.speaker-table tr:hover {
  background: #f8fafc;
}

.highlight-box {
  background: #dbeafe;
  border-left: 4px solid #3b82f6;
  padding: 1.5rem;
  margin: 1.5rem 0;
  border-radius: 4px;
  line-height: 1.7;
}

.dates-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.date-item {
  background: white;
  padding: 1rem;
  border-left: 3px solid #3b82f6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.date-item strong {
  color: #1e3a8a;
  display: block;
  margin-bottom: 0.5rem;
}

footer {
  background: #1e293b;
  color: white;
  padding: 2rem 0;
  margin-top: 3rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.footer-section h3 {
  color: white;
  margin-bottom: 1rem;
}

.footer-section p,
.footer-section a {
  color: #cbd5e1;
  text-decoration: none;
  display: block;
  margin: 0.5rem 0;
  line-height: 1.6;
}

.footer-section a:hover {
  color: #3b82f6;
}

.quote {
  text-align: center;
  font-size: 1.3rem;
  font-style: italic;
  color: #1e3a8a;
  margin: 2rem 0;
  padding: 2rem;
  background: #f1f5f9;
  border-radius: 8px;
  line-height: 1.7;
}

/* Scrollbar styling for table wrapper */
.table-wrapper::-webkit-scrollbar {
  height: 10px;
}

.table-wrapper::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb {
  background: #3b82f6;
  border-radius: 4px;
}

.table-wrapper::-webkit-scrollbar-thumb:hover {
  background: #2563eb;
}

/* =============================
   MEDIA QUERIES
============================= */

/* Landscape Tablet (1024px - 1199px) */
@media (max-width: 1199px) {
  .container {
    max-width: 1024px;
  }

  .header-content h1 {
    font-size: 2.2rem;
  }

  .header-content .acronym {
    font-size: 2.8rem;
  }

  .info-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) {
  .container {
    max-width: 768px;
    padding: 0 20px;
  }

  section p,
  section ul li {
    text-align: left;
  }

  .header-content h1 {
    font-size: 2rem;
    line-height: 1.3;
  }

  .header-content .acronym {
    font-size: 2.5rem;
  }

  .header-content p {
    font-size: 1rem;
    line-height: 1.5;
  }

  .tagline {
    font-size: 1.1rem !important;
  }

  .nav-toggle {
    display: block;
  }

  .first-nav ul {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e293b;
    flex-direction: column;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .first-nav ul.active {
    max-height: 500px;
  }

  .first-nav ul li {
    width: 100%;
  }

  .first-nav ul li a {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #334155;
  }

  .info-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.2rem;
  }

  .dates-grid {
    grid-template-columns: 1fr;
  }

  h2 {
    font-size: 1.8rem;
  }

  h3 {
    font-size: 1.3rem;
  }

  .quote {
    font-size: 1.2rem;
    padding: 1.5rem;
  }

  .content {
    padding: 2rem 0;
  }

  section {
    margin-bottom: 3rem;
  }

  /* Make tables scrollable on tablets */
  table {
    min-width: 700px;
    font-size: 0.9rem;
  }

  th,
  td {
    padding: 0.9rem;
  }
  #registration-process ol li {
    padding: 1rem 1rem 1rem 3.2rem;
    text-align: left;
  }

  #registration-process ol li:before {
    width: 1.8rem;
    height: 1.8rem;
    font-size: 0.95rem;
  }
}

/* Mobile (max-width: 767px) */
@media (max-width: 767px) {
  .container {
    padding: 0 16px;
  }

  .header {
    padding: 2rem 0;
  }

  .header-content h1 {
    font-size: 1.5rem;
    line-height: 1.4;
    margin-bottom: 0.7rem;
  }

  .header-content .acronym {
    font-size: 2rem;
    margin: 0.7rem 0;
  }

  .header-content p {
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0.6rem 0;
  }

  .tagline {
    font-size: 1rem !important;
    margin-top: 1rem !important;
    line-height: 1.5 !important;
  }

  .nav-logo {
    font-size: 1.3rem;
  }

  .nav-container {
    padding: 0 16px;
  }

  .first-nav ul li a {
    padding: 1rem 1.5rem;
    font-size: 0.95rem;
  }

  .second-nav-container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0px 10px;
  }

  .second-nav ul {
    display: flex;
    justify-content: center;
    justify-content: baseline;
    flex-wrap: wrap;
    row-gap: 0;
    column-gap: 1rem;
    list-style: none;
  }

  .second-nav ul li a {
    font-size: 14px;
  }

  .content {
    padding: 2rem 0;
  }

  section {
    margin-bottom: 2.5rem;
  }

  section p,
  section ul li {
    text-align: left;
    line-height: 1.7;
  }

  h2 {
    font-size: 1.5rem;
    margin-bottom: 1.2rem;
    padding-bottom: 0.6rem;
  }

  h3 {
    font-size: 1.2rem;
    margin: 1.5rem 0 1rem 0;
  }

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

  .info-card {
    padding: 1.3rem;
  }

  .info-card p {
    line-height: 1.6;
  }

  .committee-list {
    padding: 1.2rem;
  }

  .committee-list li {
    font-size: 0.95rem;
  }

  .theme-list {
    padding: 1.3rem;
  }

  .theme-list ul {
    margin-left: 1.2rem;
  }

  .theme-list li {
    line-height: 1.6;
  }

  /* Improved table scrolling for mobile */
  .table-wrapper {
    margin: 1rem 0;
    border-radius: 8px;
  }

  table {
    min-width: 600px;
    font-size: 0.85rem;
  }

  th,
  td {
    padding: 0.8rem 0.6rem;
    line-height: 1.4;
  }

  th {
    font-size: 0.85rem;
  }

  .highlight-box {
    padding: 1.3rem;
    line-height: 1.7;
  }

  .dates-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .date-item {
    padding: 1rem;
  }

  .quote {
    font-size: 1.05rem;
    padding: 1.5rem;
    line-height: 1.6;
  }

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

  .footer-section p,
  .footer-section a {
    line-height: 1.6;
  }
  #registration-process {
    padding-inline: 0.8rem;
  }
  #registration-process ol {
    margin: 1.2rem 0;
  }

  #registration-process ol li {
    padding: 1rem 1rem 1rem 3rem;
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    text-align: left;
  }

  #registration-process ol li:before {
    left: 0.8rem;
    width: 1.6rem;
    height: 1.6rem;
    font-size: 0.9rem;
  }
  #dates {
    padding-inline: 0.8rem;
  }
  section {
    padding-inline: 0.8rem;
  }
  #submission ul li {
    list-style: none;
  }
}

/* Small Mobile (max-width: 480px) */
@media (max-width: 480px) {
  .container {
    padding: 0 12px;
  }

  .header-content h1 {
    font-size: 1.3rem;
    line-height: 1.4;
  }

  .header-content .acronym {
    font-size: 1.8rem;
  }

  .header-content p {
    font-size: 0.9rem;
  }

  .tagline {
    font-size: 0.95rem !important;
  }

  .nav-container {
    padding: 0 12px;
  }

  h2 {
    font-size: 1.4rem;
  }

  h3 {
    font-size: 1.15rem;
  }

  section p,
  section ul li {
    font-size: 0.95rem;
    text-align: left;
    line-height: 1.7;
  }

  .info-card {
    padding: 1.2rem;
  }

  .theme-list {
    padding: 1.2rem;
  }

  /* Extra small table adjustments */
  .table-wrapper {
    margin: 1rem 0;
  }

  table {
    min-width: 550px;
    font-size: 0.8rem;
  }

  th,
  td {
    padding: 0.7rem 0.5rem;
  }

  .quote {
    font-size: 1rem;
    padding: 1.3rem;
  }
  #registration-process ol li {
    padding: 0.9rem 0.9rem 0.9rem 2.8rem;
    font-size: 0.95rem;
  }

  #registration-process ol li:before {
    left: 0.7rem;
    width: 1.5rem;
    height: 1.5rem;
    font-size: 0.85rem;
  }
}

/* Very Small Mobile (max-width: 360px) */
@media (max-width: 360px) {
  .header-content h1 {
    font-size: 1.2rem;
  }

  .header-content .acronym {
    font-size: 1.6rem;
  }

  table {
    min-width: 500px;
    font-size: 0.75rem;
  }

  th,
  td {
    padding: 0.6rem 0.4rem;
  }
  #registration-process ol li {
    padding: 0.8rem 0.8rem 0.8rem 2.6rem;
    font-size: 0.9rem;
  }

  #registration-process ol li:before {
    left: 0.6rem;
    width: 1.4rem;
    height: 1.4rem;
    font-size: 0.8rem;
  }
}

/* Template download */
.template-flex {
  display: flex;
  gap: 0.2rem;
}
.template-download {
  text-decoration: none;
  transition: all 0.2s linear;
}
.template-download:hover {
  color: red;
}
.abstract-download {
  margin-left: 0.6rem;
}
