body {
  margin: 0;
}

header {
    margin: 0px 30px 0px 30px;
    border-radius: 25px;
    position: relative;
    height: 200px;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('/static/images/aubg.png');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}
header h3{
  font-size: 2.5rem;
  font-weight: bold;
}
/* General styles for the page */
/* General styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  margin: 0;
  background-color: #f6f7f8;
  color: #1a1a1b;
  line-height: 1.5;
}

main{
  background-color: #dceffd;
}
/* Posts container */
#posts-container {
  max-width: 800px;
  margin: 20px auto;
  padding: 0 15px;
  
}

/* Post card */
.post {
  background-color: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  margin-bottom: 20px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.2s;
}

.post:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.post.highlight {
  background-color: #fff9c4;
  transition: background-color 0.5s;
}

/* Post header */
.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

.post-user {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-user i {
  color: #878a8c;
  font-size: 1.4em;
}

.post-user span {
  font-weight: 600;
  color: #1a1a1b;
  font-size: 1em;
}

.post-user p {
  margin: 0;
  color: #878a8c;
  font-size: 0.9em;
}

.post-share i {
  color: #0079d3;
  cursor: pointer;
  font-size: 1.3em;
  transition: color 0.2s;
}

.post-share i:hover {
  color: #005ba2;
}

/* Post title */
.post-title {
  font-size: 1.4em;
  margin: 0 0 15px;
  color: #1a1a1b;
  font-weight: 600;
  line-height: 1.4;
}

/* Slider */
.post-slider {
  position: relative;
  overflow: hidden;
  margin-bottom: 15px;
  border-radius: 6px;
  background-color: #fafafa;
}

.slider-wrapper {
  display: flex;
  transition: transform 0.4s ease-in-out;
}

.slide {
  flex: 0 0 100%;
  min-width: 100%;
  padding: 15px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* Content block */
.post-content p {
  margin: 0;
  color: #1a1a1b;
  font-size: 1em;
  line-height: 1.6;
  word-break: break-word;
}

/* Media */
.post-media img,
.post-media video,
.post-media iframe {
  max-width: 100%;
  max-height: 450px;
  width: auto;
  height: auto;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

/* Slider controls */
.slider-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  padding: 0 10px;
  box-sizing: border-box;
}

.slider-prev,
.slider-next {
  background-color: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;
  padding: 12px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1.1em;
  line-height: 1;
  transition: background-color 0.2s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.slider-prev:disabled,
.slider-next:disabled {
  background-color: rgba(0, 0, 0, 0.3);
  cursor: not-allowed;
}

.slider-prev i,
.slider-next i {
  font-size: 1.2em;
}

/* Post actions */
.post-actions {
  display: flex;
  gap: 25px;
  margin-top: 15px;
  padding-top: 10px;
  border-top: 1px solid #e5e5e5;
}

.action {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  color: #878a8c;
  font-size: 0.95em;
  transition: color 0.2s;
}

.action:hover {
  color: #0079d3;
}

.action i {
  font-size: 1.3em;
}

.action .count {
  font-weight: 600;
}

/* Loading and error messages */
.loading-message,
.error-message,
.no-posts {
  text-align: center;
  color: #878a8c;
  font-size: 1em;
  padding: 20px;
  font-style: italic;
}

/* Responsive design */
@media (max-width: 600px) {
  #posts-container {
    padding: 0 10px;
  }

  .post {
    padding: 15px;
  }

  .post-title {
    font-size: 1.2em;
  }

  .post-media img,
  .post-media video,
  .post-media iframe {
    max-height: 300px;
  }

  .slider-prev,
  .slider-next {
    padding: 10px;
    width: 35px;
    height: 35px;
  }

  .post-user i,
  .post-share i,
  .action i {
    font-size: 1.1em;
  }

  .post-actions {
    gap: 15px;
  }
}