/* Global Styles */
body {
  font-family: 'Arial', sans-serif;
  background-color: #f0f0f0;
  margin: 0;
  padding: 0;
}

/* Top Navigation Bar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #2b3a67; /* Dark Slate Blue */
  padding: 10px 20px;
  position: sticky; /* Makes navbar stay at the top */
  top: 0; /* Sticks to the top */
  z-index: 1000; /* Keeps it above other elements */
}

.navbar a {
  color: white;
  text-decoration: none;
  padding: 10px;
  font-size: 18px;
}

.navbar .nav-name {
  font-weight: bold;
  font-size: 24px;
}

.navbar .nav-links a:hover {
  background-color: #3c4a7a; /* Slightly lighter blue on hover */
}

.nav-links {
  display: flex;
  gap: 15px;
}

/* Main Container */
.container {
  margin: 20px;
  padding: 20px;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  max-width: 800px; /* Increased size */
  margin: auto;
  margin-top: 60px; /* Adjust for navbar height */
}

/* Profile Section */
.profile {
  text-align: center;
  margin-bottom: 40px;
}

.profile-pic {
  width: 150px;   /* Set a fixed width */
  height: 150px;  /* Set a fixed height */
  border-radius: 50%; /* Makes it a circle */
  object-fit: cover;  /* Ensures the image covers the circle without stretching */
  margin-top: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* Optional: adds a nice shadow */
}

h1 {
  color: #333;
  margin-top: 10px;
  font-size: 36px;
}

/* Description under name */
h2 {
  color: #555;
  font-size: 20px;
  margin-top: 5px;
}

/* Social Icons Section */
.social-icons a {
  margin: 0 10px;
  color: #2b3a67;
}

.social-icons a i {
  font-size: 32px; /* Increase icon size */
  transition: transform 0.2s;
}

.social-icons a i:hover {
  transform: scale(1.2); /* Slight hover effect */
}

/* Post Previews */
.post-preview {
  display: flex;
  align-items: center;
  margin-bottom: 30px;
  background-color: #e3e5f1; /* Lighter background for posts */
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-preview-image {
  width: 200px; /* Slightly bigger image */
  height: 200px;
  object-fit: cover; /* Ensures the image scales and crops correctly */
  border-radius: 8px;
  margin-right: 20px;
}

.post-preview-content {
  flex: 1;
}

.post-preview h2 {
  color: #2b3a67; /* Dark Slate Blue */
  margin-bottom: 10px;
  font-size: 24px; /* Title slightly larger */
}

.post-preview p {
  color: #666;
  margin-bottom: 10px;
  font-size: 16px;
  text-decoration: none; /* Ensure no underline */
}

.post-preview a {
  color: #2b3a67; /* You can adjust the color for links */
  text-decoration: none; /* No underline */
}

.post-preview a:hover {
  color: #3c4a7a;
}

/* Button Styles */
button {
  background-color: #4CAF50;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #45a049;
}

/* Image in full post */
.post-full-image {
  width: 100%;
  max-height: 400px;
  object-fit: contain;
  border-radius: 10px;
  margin-bottom: 20px;
}

/* Latest Project and Post Block Previews */
.preview-block {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  flex-wrap: wrap; /* Ensure it adjusts on smaller screens */
}

.preview-box {
  width: 85%;
  background-color: #e3e5f1; /* Lighter background for preview boxes */
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: background-color 0.3s ease; /* Smooth hover transition */
  margin-bottom: 20px; /* Space between boxes */
  cursor: pointer; /* Make it feel clickable */
  color: #2b3a67; /* Dark Slate Blue text */
  text-decoration: none; /* No underline */
}

.preview-box h3 {
  color: #2b3a67; /* Dark Slate Blue */
  margin-bottom: 10px;
}

.preview-box p {
  color: #666;
  text-decoration: none; /* Ensure no underline on paragraph text */
}

.preview-box:hover {
  background-color: #d0d4e7; /* Darken on hover */
}

/* Remove underline from anchor tags in post previews */
.latest-post-link,
.post-preview-box {
    text-decoration: none; /* Remove underline */
}

/* Optional: Add hover effect for better user experience */
.latest-post-link:hover,
.post-preview-box:hover {
    text-decoration: none; /* Ensure no underline on hover as well */
}
