body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f3f4f6;
  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.navbar {
  background: linear-gradient(90deg, #1e3a8a, #0ea5e9);
}

.navbar-brand,
.navbar-nav .nav-link {
  color: #f8f9fa !important;
  text-decoration: none;
  padding: 10px 15px;
  max-width: 100%;
  white-space: nowrap; /* Keeps the text in a single line */
  overflow: hidden; /* Hides overflow */
  text-align: left; /* Centers the text */
}

.navbar-nav .nav-link:hover {
  color: #e0f2fe !important;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 5px;
}

.navbar-nav .nav-link.active {
  color: #1e3a8a !important;
  border-radius: 5px;
  font-weight: bold;
  padding: 10px 15px;
}

.navbar-nav .nav-item.active .nav-link {
  color: #1e3a8a !important;
  border-radius: 5px;
} 

@media (max-width: 768px) {
  .navbar-nav .nav-item {
    margin-bottom: 0.5rem;
  }

  .navbar-nav .nav-link {
    padding: 10px;
    text-align: left;
  }
}


.nav-item {
  margin-right: 10px;
}

.carousel {
  height: 400px;
  overflow: hidden;
  border: 1px solid #d9dadb;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-img {
  height: 400px !important;
  object-fit: cover !important;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.carousel-item img {
  transition: transform 0.5s ease-in-out;
}

.carousel-caption {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.caption-bg {
  background-color: rgba(0, 0, 0, 0.6);
  padding: 10px 20px;
  border-radius: 5px;
}

.carousel-caption h5,
.carousel-caption p {
  color: white;
  margin: 0;
}

.caption-link {
  display: block; /* Makes the entire caption clickable */
  text-decoration: none; /* Removes underline from the link */
}

.caption-link:hover .caption-bg {
  background-color: rgba(0, 0, 0, 0.8); /* Optional: darken the caption background on hover */
}

@media (max-width: 768px) {
  .navbar-brand {
    font-size: 5vw; /* Slightly larger font on medium screens */
  }

  .carousel {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .navbar-brand {
    font-size: 3.5vw; /* Further reduced size for very small screens */
  }

  .carousel {
    height: 200px;
    overflow: hidden;
    border: 1px solid #d9dadb;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  }
  
  .carousel-img {
    height: 200px !important;
    object-fit: cover !important;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  }

  .carousel-caption {
    bottom: 15px; /* Adjust caption's bottom positioning */
    left: 15px; /* Align caption to the left */
    right: 15px; /* Align caption to the right */
    transform: translateX(0); /* Remove horizontal centering */
    text-align: center; /* Keep the text centered */
  }

  .caption-bg {
    width: 100%;
    padding: 6px 30px; /* Reduce padding further */
  }

  .carousel-caption h5 {
    font-size: 0.9rem; /* Adjust font size for smaller screens */
  }

  .carousel-caption p {
    font-size: 0.9rem; /* Adjust font size for smaller screens */
  }
}

@media (max-width: 320px) {
  .navbar-brand {
    font-size: 2vw; /* Adjust size on very small devices */
  }

  .carousel {
    height: 150px;
  }
}

.container {
  flex: 1;
}

.clickable {
  cursor: pointer;
  transition: background-color 0.3s ease, border-bottom 0.3s ease; /* Smooth transition for border thickness and color */
  border: 0; /* No border around */
  border-bottom: 3px solid transparent; /* Default bottom border is invisible */
}

.clickable:hover {
  background-color: #f3f3f3; /* Light gray hover effect */
  border-bottom: 3px solid #007aff; /* 3px blue bottom border on hover */
  box-shadow: 0 4px 8px rgba(0, 0, 255, 0.2); /* Optional shadow effect */
}

.post-title {
  font-size: 1.2rem;
  font-weight: bold;
  color: #2d3748;
}

.post-excerpt {
  color: #555;
}

.post-excerpt img {
  display: none;
}

.post-excerpt p {
  display: inline;
  margin: 0;
  padding: 0;
}

.btn-primary {
  background: linear-gradient(90deg, #4a90e2, #007aff);
  border: none;
  color: #fff;
  transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
  background: linear-gradient(90deg, #007aff, #4a90e2);
  transform: translateY(-2px);
}

.post-list-item {
  background: #ffffff;
  border: 1px solid #d9dadb;
  border-radius: 8px;
  padding: 15px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-detail-title {
  font-size: 2rem;
  font-weight: bold;
  color: #2d3748;
}

.post-detail-content {
  color: #555;
  line-height: 1.6;
  overflow: hidden;
}

.post-detail-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.comment .comment-detail-content {
  color: #555;
  line-height: 1.2;
  margin-bottom: 2px; /* Reduce space below each paragraph */
  padding-bottom: 10px;
}

.comment .comment-detail-name {
  color: #555;
  line-height: 1.2;
  margin-bottom: 2px; /* Reduce space below each paragraph */
  padding-bottom: 5px;
}

.add-comment-title {
  font-weight: bold;
  text-align: left;
  margin-bottom: 10px;
  color: #333;
}

.add-comment-box {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
  transition: transform 0.2s ease-in-out;
}

.add-comment-box:hover {
  transform: scale(1.01);
}

.comment-input {
  background: white;
  padding: 8px;
  border-radius: 5px;
  border-left: 3px solid #007bff;
}

.comment-textarea {
  width: 100%;
  border: none;
  padding: 8px;
  resize: none;
  font-size: 1rem;
}

.comment-textarea:focus {
  outline: none;
  box-shadow: none;
}

/* Small & Neat Submit Button */
.btn-sm {
  padding: 6px 12px;
  font-size: 0.875rem;
}


.left-aligned {
  text-align: left; /* Ensures the title "Comments" is left-aligned */
}

.comment-box {
  background: #f8f9fa;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 15px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}

.comment-box:hover {
  transform: scale(1.02);
}

.comment-header {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  text-align: left; /* Left-aligned header */
}

.comment-info {
  display: flex;
  flex-direction: column;
  text-align: left; /* Left-aligned comment info */
}

.comment-username {
  font-weight: bold;
  color: #007bff;
}

.comment-date {
  font-size: 0.85rem;
  color: #6c757d;
}

.comment-body {
  background: white;
  padding: 10px;
  border-radius: 5px;
  border-left: 3px solid #007bff;
}

.comment-content {
  margin: 0;
  font-size: 1rem;
  color: #333;
  text-align: left; /* Left-aligned comment content */
}


.card-text img,
.post-content-a img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.d-none {
  display: none;
}

.d-block {
  display: block;
}

.no-posts-label h5 {
  margin-top: 1.5rem;
  color: #2d3748;
  font-size: 1.25rem;
}

.no-posts-label ul {
  margin: 1rem 0;
  padding-left: 1.5rem;
  line-height: 1.6;
}

.no-posts-label ul li {
  margin-bottom: 0.5rem;
}

.no-posts-label h4 {
  margin-top: 2rem;
  color: #2d3748;
  font-size: 1.5rem;
  text-align: center;
}

.no-posts-label {
  padding: 1rem;
}


.ck-editor__editable {
  min-height: 500px !important;
  max-height: 500px !important;
  overflow: auto;
}

.custom-btn {
  background: linear-gradient(90deg, #4a90e2, #007aff);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background 0.3s ease;
  font-family: 'Segoe UI', Tahoma, sans-serif;
}

.custom-btn:hover {
  background: linear-gradient(to right, #0056b3, #009bdf);
}

.custom-btn:active {
  background: linear-gradient(to right, #004085, #006ba1);
}

.cancel-btn {
  background: #f8f9fa;
  color: #6c757d;
  border: 1px solid #ced4da;
  padding: 10px 20px;
  border-radius: 5px;
  transition: background 0.3s ease;
}

.cancel-btn:hover {
  background: #e2e6ea;
}

.cancel-btn:active {
  background: #dae0e5;
}

.footer {
  background: linear-gradient(90deg, #1e3a8a, #0ea5e9);;
  color: #f8f9fa;
  padding: 15px 0;
  text-align: center;
}

.footer a {
  color: #0ea5e9;
}

.footer a:hover {
  color: #f8f9fa;
}

.pagination {
  justify-content: center;
}

.pagination .page-link {
  color: #0ea5e9;
}

.pagination .page-item.active .page-link {
  background-color: #0ea5e9;
  border-color: #0ea5e9;
  color: #fff;
}

.draft-note {
  font-style: italic;
  color: #6c757d;
}





