.header {
  background-color: #a9a9aa;
  padding: 20px;
  margin-bottom: 30px;
  width: 100%;
  box-sizing: border-box;
}

.header-content {
  display: flex;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.logo {
  width: 150px;
  height: auto;
  margin-right:15px;
}

.name {
  color:  #474747;
  text-align: center;
  margin-bottom: 5px;
  font-style: unset;
}

body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  width: 100%;
  background: #f5f5f5;
  overflow-x: hidden;
  box-sizing: border-box;
}

.container {
  max-width: 600px;
  min-height:250px;
  height: auto; 
  margin: 0 auto 50px auto;
  background: white;
  padding: 20px;
  border-radius: 8px;
  border: 1px solid #969595;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: scale(1);
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.container:hover {
  max-width: 610px;
  min-height:270px;
  transform: scale(1.009); 
  box-shadow: 0 18px 30px #969595;
  border-color: #4d4c4c;
}

.error-container {
  text-align: center;
  padding: 40px;
}

h1{
  color: #333;
  text-align: center;
  margin-bottom: 20px;
}

p {
  margin: 10px 0;
  padding: 10px;
  background: #dbdbd5;
  border-radius: 4px;
  white-space: pre;
  overflow-x: auto;
}

strong {
  display: inline-block;
  width: 150px;
  color: #474747;
}

.slider-container {
  max-width: 100%;
  position: relative;
  margin: 20px 0;
  padding: 0;
  overflow: hidden;
}

.slider {
  display: flex;
  width: 100%;
  height: 400px;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.slider::-webkit-scrollbar {
  display: none;
}

.slider-img {
  flex: 0 0 100%;
  width: 100%;
  height: 400px;
  object-fit: contain;
  scroll-snap-align: start;
  display: block;
  background: #f8f8f8;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0,0,0,0.3);
  border-radius: 20px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.dot.active {
  background: rgb(137, 180, 236);
  transform: scale(1.2);
  border-color: #717171;
}
.pdfdot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.pdfdot.active {
  background: rgb(137, 180, 236);
  transform: scale(1.2);
  border-color: #717171;
}

.pdf-container {
  margin: 20px 0;
}

.pdf-container embed {
  width: 100%;
  height: 500px;
  border-radius: 4px;
}

.slider-pdf {
  flex: 0 0 100%;
  width: 100%;
  height: 500px;
  scroll-snap-align: start;
  display: block;
  background: #f8f8f8;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  overflow-y: scroll;
  position: relative;
}

.pdf-slider {
  display: flex;
  width: 100%;
  height: 500px;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.pdf-slider::-webkit-scrollbar {
  display: none;
}

.info-row {
  display: flex;
  justify-content: space-between;
  margin: 10px 0;
  padding: 10px;
  background: #dbdbd5;
  border-radius: 4px;
}

.info-row strong {
  flex: 0 0 150px;
  color: #474747;
}

.info-row span {
  flex: 1;
  text-align: auto;
  color: #333;
}

/* Add modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.8);
  padding-top: 50px;
  background-color: rgba(0, 0, 0, 0.9);
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  max-width: 90%;
  max-height: 80vh;
  object-fit: contain;
}

/* Add these styles to your existing modal styles */
.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 16px;
  color: white;
  font-weight: bold;
  font-size: 20px;
  transition: 0.6s ease;
  border-radius: 0 3px 3px 0;
  user-select: none;
  -webkit-user-select: none;
  background-color: rgba(0, 0, 0, 0.3);
}

.next {
  right: 0;
  border-radius: 3px 0 0 3px;
}

.prev {
  left: 0;
}

.prev:hover, .next:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

.close, .prev, .next {
  position: absolute;
  top: 50%;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
  cursor: pointer;
  user-select: none;
}

.close {
  top: 15px;
  right: 35px;
}

.prev {
  left: 15px;
  transform: translateY(-50%);
}

.next {
  right: 15px;
  transform: translateY(-50%);
}

.close:hover, .prev:hover, .next:hover {
  color: #bbb;
}

/* Responsive Design */
@media (max-width: 600px) {
  .container {
      margin: 10px;
      padding: 15px;
      max-width: 100%;
      min-height: auto;
  }

  .info-row {
      flex-direction: row;
      align-items: center;
  }

  .info-row strong {
      flex: 0 0 100px;
  }

  .info-row span {
      text-align: left;
      margin-top: 0;
  }

  .header-content {
      flex-direction: column;
      text-align: center;
  }

  .logo {
      width: 100px;
      margin: 0 auto;
  }

  .slider-container {
      margin: 10px 0;
  }

  .slider {
      height: 300px; /* Smaller height for mobile */
  }

  .slider-img {
      height: 300px;
  }

  .slider-pdf {
    height: 85vh; /* Full viewport height */
    max-height: 600px;
    -webkit-overflow-scrolling: touch;
    overflow-y: scroll;
    position: relative;
  }

  .pdf-slider {
    height: auto;
    min-height: 500px;
  }

  /* Add this to ensure PDF is properly embedded on mobile */
  embed[type="application/pdf"] {
    width: 100%;
    height: 100%;
    min-height: 500px;
  }

  .dots {
      bottom: 10px;
      padding: 5px 10px;
  }

  .dot, .pdfdot {
      width: 8px;
      height: 8px;
  }

  p {
      padding: 8px;
      margin: 8px 0;
      font-size: 14px;
  }

  strong {
      width: 100%;
      margin-bottom: 4px;
      display: block;
  }
  .modal-content {
    width: 100%;
  }

  .close, .prev, .next {
    font-size: 30px;
  }
}

/* Add touch optimization */
@media (hover: none) {
  .slider {
      -webkit-overflow-scrolling: touch;
  }

  .container:hover {
      transform: none;
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
}