html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  font-family: sans-serif;
  height: 100%;
}

body {
  color: #333;
  background-color: #fff;
  min-height: 100%;
  margin: 0;
  font-family: Arial, sans-serif;
  font-size: 14px;
  line-height: 20px;
}

img {
  vertical-align: middle;
  max-width: 100%;
  display: inline-block;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 10px;
  font-weight: bold;
}

h1 {
  margin-top: 20px;
  font-size: 38px;
  line-height: 44px;
}

h2 {
  margin-top: 20px;
  font-size: 32px;
  line-height: 36px;
}

p {
  margin-top: 0;
  margin-bottom: 1.5rem;
}

ul {
  margin-top: 0;
  margin-bottom: 10px;
  padding-left: 40px;
}

.content-warning {
  color: #ff0000;
  font-size: 0.9rem;
  margin: 20px 0 0 0;
  font-style: italic;
}

.w-video {
  width: 100%;
  padding: 0;
  position: relative;
  margin-bottom: 1.5rem;
}

.w-video:last-child {
  margin-bottom: 0;
}

.w-video video {
  width: 100%;
  height: auto;
  display: block;
}

.w-layout-vflex {
  flex-direction: column;
  align-items: flex-start;
  display: flex;
}

.container {
  width: 100%;
  max-width: 940px;
  margin-left: auto;
  margin-right: auto;
}

.hero-stack {
  background-color: #f5f7fa;
  border-bottom: 1px solid #e4ebf3;
  padding: 80px 30px;
  position: relative;
}

.hero-wrapper-two {
  text-align: center;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
}

.hero-image {
  width: 100%;
  margin-top: 25px;
  position: relative;
}

.div {
  color: #0277bd;
  background-color: #e1f5fe;
  border-radius: 0 15px 15px;
  align-self: flex-start;
  max-width: 70%;
  margin: 5px 0;
  padding: 10px;
  position: relative;
  box-shadow: 0 4px 6px #0000001a;
}

.message-left p, .message-right p {
  margin-bottom: 0;
}

.div.message-left {
  box-sizing: border-box;
  min-width: 300px;
  display: inline-block;
}

.text-block, .text-block-2, .text-block-3 {
  margin-bottom: 5px;
  font-size: .85rem;
  font-weight: bold;
}

.message-right {
  color: #2e7d32;
  background-color: #c8e6c9;
  border-radius: 15px 0 15px 15px;
  align-self: flex-end;
  min-width: 30%;
  max-width: 70%;
  margin: 5px 0;
  padding: 10px;
  display: inline-block;
  position: relative;
  box-shadow: 0 4px 6px #0000001a;
}

.message-left::after {
  content: "";
  position: absolute;
  top: 15px;
  left: -10px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid #e1f5fe;
}

.message-right::after {
  content: "";
  position: absolute;
  top: 15px;
  right: -10px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid #c8e6c9;
}

.div-block {
  color: #0277bd;
  background-color: #e1f5fe;
  border-radius: 0 15px 15px;
  align-self: flex-start;
  max-width: 70%;
  margin: 5px 0;
  padding: 10px;
  position: relative;
  box-shadow: 0 4px 6px #0000001a;
}

.image {
  max-height: 500px;
  margin-bottom: 8px;
}

.flex-block, .flex-block-2, .flex-block-3, .flex-block-4 {
  margin-bottom: 10px;
}

.paragraph {
  margin-bottom: 0;
}

.byline {
  color: #666;
  font-size: 0.9rem;
  margin: 1rem 0 0;
  font-style: italic;
}

.context-note {
  font-style: italic;
  color: #666;
  margin: 1.5rem 0;
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.file-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 1rem;
  background: #fff;
  border-radius: 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid #e2e2e2;
  overflow: hidden;
}

.file-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  transition: all 0.3s ease;
}

.file-item[href$=".pdf"]::before {
  background: #e74c3c;
}

.file-item[href$=".mp4"]::before {
  background: #3498db;
}

.file-item[href$=".webp"]::before,
.file-item[href$=".png"]::before,
.file-item[href$=".jpg"]::before {
  background: #27ae60;
}

.file-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.1);
}

.file-details {
  flex-grow: 1;
  min-width: 0;
  padding-right: 40px;
}

.file-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #2d3748;
}

.file-meta {
  font-size: 0.75rem;
  color: #718096;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.file-meta:before {
  content: '•';
  color: #999;
}

.file-size {
  font-weight: 500;
  color: #718096;
  background: #f7fafc;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

/* Image loading styles */
.image-container {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.image-container img.low-res {
  z-index: -1;
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(20px);
  /* transform: scale(1.1); */
  transition: opacity 0.3s ease-in-out;
}

.image-container img.high-res {
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.image-container img.high-res.loaded {
  opacity: 1;
}

.loaded.image-container img.low-res {
  opacity: 0;
}

/* Remove the old blur-load styles */
.blur-load,
.blur-load img,
.blur-load.loaded img {
  display: none;
}

/* Update message image containers */
.div-block .image-container {
  height: 500px;
  margin-bottom: 8px;
}

@media screen and (max-width: 991px) {
  .container {
    max-width: 728px;
  }
}

@media screen and (max-width: 767px) {
  .hero-stack {
    padding: 60px 15px;
  }
}

@media screen and (max-width: 479px) {
  .container {
    max-width: none;
  }
  
  .file-list {
    grid-template-columns: 1fr;
  }
  
  .file-item {
    margin: 0 0.5rem;
  }
}

@media (hover: none) {
  .file-action {
    background: #edf2f7;
  }
}