* {
  box-sizing: border-box;
  font-family: "Times New Roman", serif;
}

body {
  margin: 0;
  background: url("images/xp-bg.jpg") no-repeat center center fixed;
  background-size: cover;
}

/* HEADER */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 20px;
  background: #dfe3f4;
  border-bottom: 1px solid #aaa;
  height: 40px;
}

.site-icon {
  background: orange;
  color: white;
  padding: 2px 6px;
  font-weight: bold;
  font-size: 14px;
}

/* DROPDOWN */
.dropdown { position: relative; }
.dropbtn { background: none; border: none; cursor: pointer; font-size: 14px; }
.dropdown-content {
  display: none;
  position: absolute;
  background: white;
  border: 1px solid #aaa;
  z-index: 10;
}
.dropdown-content a { display: block; padding: 8px; text-decoration: none; color: black; }
.dropdown:hover .dropdown-content { display: block; }

/* MAIN */
.container {
  width: 70%;
  margin: 40px auto;
  background: rgba(235, 238, 255, 0.95);
  padding: 30px;
  display: flex;
  gap: 30px;
}

.content { width: 70%; }
.sidebar { width: 30%; }

h1 { font-size: 48px; color: #2c4fa3; }
.intro { margin-bottom: 20px; }

/* POSTS */
.no-posts {
  border: 1px solid #999;
  padding: 10px;
  background: #eee;
  text-align: center;
}

.post {
  border-bottom: 1px solid #ccc;
  margin-bottom: 20px;
  overflow: hidden;
  padding: 10px;
  transition: background 0.2s;
}

.post:hover { background: #f0f2f8; }

.post-preview {
  max-width: 120px;
  max-height: 80px;
  object-fit: cover;
  float: left;
  margin-right: 10px;
  border: 1px solid #aaa;
  border-radius: 4px;
}

.post h3 { margin-top: 0; }

.post-preview-text {
  display: -webkit-box;
  -webkit-line-clamp: 4; /* show 4 lines max */
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.5;
  margin: 5px 0 10px 0;
}

.read-more-btn {
  display: inline-block;
  padding: 5px 10px;
  background: #2c4fa3;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  text-decoration: none;
}
.read-more-btn:hover { background: #1f3b7a; }

/* Full post view */
#postView img {
  max-width: 100%;
  height: auto;
  border: 1px solid #aaa;
  border-radius: 5px;
  margin: 10px 0;
}
#postView a { color: #2c4fa3; text-decoration: underline; }
#postView a:hover { text-decoration: none; }


.hidden { display: none; }
button { margin-top: 20px; padding: 6px 12px; cursor: pointer; }

/* Clear float after each post */
.post::after { content: ""; display: table; clear: both; }

/* Search input */
#blogSearch { width: 100%; padding: 5px; margin-bottom: 15px; }


/* Clean list style */
.clean-list {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.clean-list li {
  margin-bottom: 8px;
  line-height: 1.5;
}

/* Quotes styling */
.quote {
  background: #f1f3ff;
  border-left: 4px solid #2c4fa3;
  padding: 10px 14px;
  margin-bottom: 10px;
  font-style: italic;
  font-size: 15px;
}
