/* Header and Navigation */
header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  background: #fff;
  z-index: 1000; /* keeps it above other content */
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* optional subtle shadow */
}

.logo {
  font-weight: bold;
}

.nav-wrapper {
  position: relative;
}

nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: #333;
}

.menu-toggle {
  display: none;
}

/* Page Layout Containers */
.page-wrapper {
  padding: 2rem;
}

.page-layout {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
  padding: 2rem;
}

.content {
  flex: 1;
}

/* Uploads Page */
.upload-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.content {
  flex: 2;
}

.sidebar {
  flex: 1;
  max-width: 400px;
}

.sidebar img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}


/* Sidebar Image Block */
.sidebar-image {
  width: 280px;
  max-height: 90vh;
  overflow-y: auto;
}

.sidebar-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

.sidebar-image.padded {
  padding-right: 1rem; /* or margin-right if preferred */
  box-sizing: border-box;
}

/* Hero Image Block */
.hero-image {
  width: 280px;
  max-height: 100vh;
  overflow-y: visible;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

/* Testimonials Layout */
.testimonial {
  padding: 2rem;
  background-color: #f8f8f8;
  border-top: 1px solid #ddd;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  font-family: Georgia, serif;
  position: relative;
}

.testimonial.right {
  background-color: #f0f0f0;
  text-align: right;
}

.testimonial.left {
  background-color: #f8f8f8;
  text-align: left;
}

/* Quote Styling */
.quote {
  font-size: 1.2rem;
  font-style: italic;
  line-height: 1.6;
  margin-bottom: 0.5rem;
  position: relative;
  padding-left: 2rem;
  padding-right: 2rem;
}

.testimonial.left .quote::before {
  content: "“";
  font-size: 4rem;
  position: absolute;
  left: 0;
  top: -0.5rem;
  color: #ccc;
  line-height: 1;
}

.testimonial.right .quote::before {
  content: "”";
  font-size: 4rem;
  position: absolute;
  right: 0;
  top: -0.5rem;
  color: #ccc;
  line-height: 1;
}

/* Attribution */
.attribution {
  font-size: 0.95rem;
  color: #666;
  font-style: normal;
}

/* Avatar Styling */
.avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
}

.testimonial.left .avatar {
  float: left;
  margin-right: 1rem;
}

.testimonial.right .avatar {
  float: right;
  margin-left: 1rem;
}

.testimonials ul {
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}

/* Quote Block Container */
.quote-block {
  overflow: hidden;
}

/* About Page Layout */
.about-content {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.text-block {
  flex: 1 1 60%;
}

.image-block {
  flex: 1 1 35%;
  text-align: right;
}

.image-block img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

/* Error Page Layout */
.error-container {
  max-width: 600px;
  margin: 4rem auto;
  padding: 2rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff8f8;
  text-align: center;
}

.error-container h1 {
  color: #b00020;
  margin-bottom: 1rem;
}

.error-details {
  margin: 1rem 0;
  font-size: 1.1rem;
  color: #333;
}

.retry-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  background-color: #b00020;
  color: #fff;
  border: none;
  border-radius: 4px;
  text-decoration: none;
}
 
.retry-button:hover {
  background-color: #900018;
}

/* Success Modal */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.modal.hidden {
  display: none;
}

.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.modal-content h2 {
  margin-bottom: 1rem;
  color: #006c6c;
}

.modal-content button {
  margin-top: 1rem;
  padding: 0.5rem 1.25rem;
  font-size: 1rem;
  background-color: #006c6c;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.modal-content button:hover {
  background-color: #004f4f;
}

/* Footer */
footer {
  background-color: #eee;
  padding: 0.5rem 0;
  font-size: 0.8rem;
  text-align: center;
  color: #666;
}