/* General Styles */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
}

h1, h2 {
  color: #0d6efd;
  text-align: center;
}

.page {
  padding: 80px 20px;
  margin-top: 60px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

/* Navbar */
/* Navbar */
/* Navbar */
/* Navbar container */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #111;
  padding: 10px 20px;
}

/* Logo stays on the left */
.navbar .logo {
  display: flex;
  align-items: center;
}

/* Nav menu container */
.navbar nav {
  flex: 1; /* take available space */
  display: flex;
  justify-content: center; /* center the menu */
}

/* Nav links */
.navbar ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}

.navbar ul li a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  padding: 5px 10px;
}

.navbar ul li a:hover,
.navbar ul li a.active {
  color: #0d6efd;
  border-bottom: 2px solid #0d6efd;
}

/* Mobile */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    align-items: center;
  }

  .navbar nav {
    justify-content: center;
    margin-top: 10px;
  }

  .navbar ul {
    flex-direction: column;
    gap: 10px;
  }
}

.navbar {
  display: flex;
  justify-content: space-between;   /* logo left, menu center */
  align-items: center;
  background: linear-gradient(90deg, #1e1e1e, #333);
  padding: 12px 30px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px; /* space between image and text */
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  white-space: nowrap;
  flex: 1; /* keep it aligned left */
}

.logo img {
  height: 32px;  /* adjust size */
  width: 32px;
  object-fit: contain;
}


.navbar nav {
  flex: 2;
  display: flex;
  justify-content: center;
}

.navbar nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 30px;
}

.navbar nav ul li a {
  color: #fff;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  position: relative;
  padding: 5px 0;
  transition: color 0.3s ease;
}

/* Blue underline animation */
.navbar nav ul li a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #0d6efd;
  transition: width 0.3s ease;
}

.navbar nav ul li a:hover::after,
.navbar nav ul li a.active::after {
  width: 100%;
}

/* Active link color */
.navbar nav ul li a.active {
  color: #0d6efd;
}


/* Author Section */
.author-box {
  background: #f5f5f5;
  padding: 20px;
  border-radius: 10px;
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.author-box img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 3px solid #0d6efd;
  object-fit: cover;
}

.author-box h3 {
  margin-top: 10px;
  color: #0d6efd;
  text-align: center;
}

/* Books */
.books {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.book-card {
  background: #fff;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
  max-width: 250px;
  flex: 1;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.book-card img {
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.book-card button {
  margin-top: 10px;
  background: #0d6efd;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
}

.book-card button:hover {
  background: #0b5ed7;
}

/* Ideas + Tags */
.tags {
  margin: 15px 0;
  text-align: center;
}

.tag {
  display: inline-block;
  margin: 5px;
  padding: 5px 10px;
  background: #eee;
  cursor: pointer;
  border-radius: 4px;
}

.tag:hover {
  background: #ccc;
}

.idea {
  padding: 10px;
  border-bottom: 1px solid #ddd;
}


/* Contact Form */
.contact-form {
  max-width: 500px;
  margin: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  width: 100%;
}

.contact-form button {
  background: #0d6efd;
  color: #fff;
  padding: 10px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.contact-form button:hover {
  background: #0b5ed7;
}
/* Footer */
.footer {
  background: #111;
  color: #bbb;
  text-align: center;
  padding: 15px 10px;
  margin-top: 40px;
  font-size: 14px;
}

.footer p {
  margin: 0;
}

.footer p a {
  color: #0d6efd;
  text-decoration: none;
}

.footer p a:hover {
  text-decoration: underline;
}
.post-card {
  max-width: 800px;
  margin: 30px auto;
  padding: 20px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  line-height: 1.6;
  font-family: "Segoe UI", Arial, sans-serif;
}

.post-card h2 {
  color: #0d6efd;
  font-size: 1.8rem;
  margin-bottom: 10px;
}

.post-card .author {
  font-weight: bold;
  color: #444;
  margin-bottom: 10px;
}

.post-card .status {
  font-style: italic;
  color: #555;
  margin-bottom: 15px;
}

.post-card a.btn {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 18px;
  background: #0d6efd;
  color: #fff;
  text-decoration: none;
  border-radius: 6px;
  transition: 0.3s;
}

.post-card a.btn:hover {
  background: #0b5ed7;
}
.post-card {
  background: #fff;
  border: 1px solid #ddd;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 30px;
}

.product-list {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}

.product-card {
  width: 180px;
  text-align: center;
  background: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 10px;
}

.product-card img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 10px;
}

.product-card h4 {
  font-size: 14px;
  margin: 5px 0 10px;
}

.product-card .btn {
  background: #0d6efd;
}

.product-card .btn:hover {
  background: #0b5ed7;
}






