.mt-20 {
    margin-top: 100px !important;
}
.bg-blue-600 {
    background-color: #1C64F2 !important;
}
.text-gray {
    color: #374151;
}

/* Blog */
.blog .header,
.course .header {
    color: #111827;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.blog .header-info,
.course, .header-info {
    color: #6B7280;;
}

.blog .blog-card img,
.event-thumb {
    height: 16rem;
    width: 100%;
    object-fit: cover;
    border-radius: 1rem;
}

.blog .blog-card .tag-wrapper span,
.course .tag span {
    font-weight: 500;
    font-size: 0.75rem;
    line-height: 1rem;
    color: #1E429F;
    background-color: #E1EFFE;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    margin-inline-end: 0.5rem;
}

.blog .blog-card .publish-date,
.blog .blog-card .publish-by {
    font-weight: 500;
    font-size: 0.75rem;
    line-height: 1rem;
    color: #6B7280;
}

.blog .blog-card h3.title {
    color: #111827;
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
}

.blog .blog-card h3.title:hover {
    color: #111827; 
}

.blog .blog-card .subtitle {
    color: #6B7280;
    margin-bottom: 1.25rem;
}

.blog .blog-card .publish-by {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.blog .blog-card .username {
    color: #111827;
    font-size: 0.875rem;
    line-height: 1.25rem;
    font-weight: 600;
}

.blog .blog-card .blog-footer a {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
    color: #1D4ED8;
}

.blog .blog-card .blog-footer img {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 100%;
}

.blog .related-title {
    font-size: 16px;
    font-weight: 700;
}

.blog .related-blog-card img {
    height: 8rem;
}

.blog .related-blog-card h3 {
    font-size: 16px !important;
    margin-bottom: 5px !important;
}

.blog .related-blog-card p {
    font-size: 14px !important;
    margin-bottom: 5px !important;
}

.blog .related-blog-card .blog-footer a {
    font-size: 14px !important;
}

.blog .custom-card,
.blog .latest-blogpost,
.blog .newsletter {
    background-color: #f9fafb;
    border-color: #e5e7eb;
    border-radius: 0.5rem;
}

.blog .custom-card h4,
.blog .latest-blogpost h4,
.blog .newsletter h4 {
    color: #111827;
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.blog .custom-card .custom-search,
.blog .newsletter .custom-search,
.course .custom-search {
    background-color: #f9fafb;
    border-color: #d1d5db;
    height: 3rem;
    padding-left: 1.5rem;
    border-radius: 0.5rem;
}

.blog .custom-card .custom-input,
.blog .newsletter .custom-input,
.course .custom-input {
    border: none;
    outline: none;
    background: transparent;
    height: 100%;
    padding-left: 0.5rem;
}

.blog .custom-card .custom-input::placeholder,
.blog .newsletter .custom-input::placeholder,
.course .custom-input::placeholder  {
    color: #9ca3af;
}

.blog .custom-card .custom-badge {
    background-color: #dbeafe;
    color: #1e40af;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    display: inline-block;
    cursor: pointer;
}

.blog .latest-blogpost a {
    display: block;
    color: #6B7280;
    margin-bottom: 0.75rem;
}

.blog .latest-blogpost a:hover {
    color: #374151;
    text-decoration: underline;
}

.blog .newsletter .btn {
    margin-bottom: 0;
    background-color: #1A56DB;
    border-color: #1A56DB;
    box-shadow: none;
}

.blog .blog-right {
    position: sticky;
    top: 7rem;
    height: 100vh;
}


/* Course */
/* .course {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
} */

.course > .col-md-4 {
  display: flex;
}

.course .course-card {
  border-radius: 1.5rem;
  padding: 1rem;
  border: 2px solid #e5e7eb;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.course .course-card .image-card {
  position: relative;
  border-radius: 1rem;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  max-height: 190px;
  width: 100%;
}

.course .course-card .course-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.15s ease-in-out;
}

.course .course-card .course-image:hover {
  transform: scale(1.05);
}

.course .course-card h4 {
  font-weight: 600;
  font-size: 1.125rem;
  color: #1f2937;
  line-height: 1.75rem;
  letter-spacing: 0px;
}

.course .course-card .author {
  font-weight: 600;
  color: #1f2937;
  letter-spacing: 0px;
}

.course .course-card .author img {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 100%;
}

.course .course-card span {
  font-size: 14px;
}


.course-details h1 {
    font-weight: 600;
    font-size: 1.875rem;
    line-height: 2.25rem;
    letter-spacing: 0;
}

.course-details .topics {
    border-radius: 0.5rem;
    padding: 1rem; 
    border: 1px solid #e5e7eb;
}

.course-details .topics .topic {
    padding: 1rem;
    display: block;
    width: 100%;
    row-gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    border-radius: 0.375rem;
    text-align: left;
    background-color: rgba(209, 213, 219, 0.7);
    font-weight: 500;
}

.course-details .topics .topic:hover {
    background-color: rgba(209, 213, 219, 1);
}

.course-details .topics .topic.active {
    background-color: rgb(149, 151, 153);
}

.course-details .topics .topic.enroll-btn {
    background-color: #1A56DB;
    color: #FFFFFF;
    font-size: 14px;
}

.course-details .topics .topic.leave {
    background-color: #111827;
    color: #FFFFFF;
    padding: 0.75rem;
}

.course-details .topics .topic.approved {
    background-color: #15ca70;
    color: #FFFFFF;
    padding: 0.75rem;
}

.course-details .topics .topic.rejected {
    background-color: #bf1414;
    color: #FFFFFF;
    padding: 0.75rem;
}

.course-details .topics .topic.outline-btn {
    background-color: transparent;
    border: 1px solid rgb(188, 190, 191);
    padding: 0.75rem;
    text-align: center;
    font-size: 14px;
}

.company-details .header .company-logo {
    width: 6rem;
    height: 6rem;
    border-radius: 0.5rem;
    display: block;
    margin: auto;
    margin-bottom: 10px;
}

.company-details .header .website-link {
    color: #1A56DB;
    font-size: 16px;
    font-weight: 500;
}

.company-details .tag a {
    font-weight: 500;
    font-size: 0.75rem;
    line-height: 1rem;
    color: rgb(75 85 99/var(--tw-text-opacity,1));
    background-color: rgb(209 213 219/var(--tw-bg-opacity,1));
    padding: 0.25rem 0.75rem;
    border-radius: 0.375rem;
    cursor: pointer;
    margin-inline-end: 0.5rem;
}

.company-details .separator {
    height: 1px;
    width: 100%;
    background-color: #d0d0d0;
    margin: 10px 0 20px 0;
}

.company-details h4 {
    font-weight: 600;
    font-size: 20px;
    letter-spacing: 0;
}


.custom-multiselect {
    border-radius: 0.5rem;
    background-color: #f9fafb;
    height: 3rem;
}

.custom-multiselect .badge {
    color: rgb(75 85 99/var(--tw-text-opacity,1));
    background-color: rgb(209 213 219/var(--tw-bg-opacity,1)) !important;
    text-transform: none;
}

.home .header-title {
    font-size: 28px;
    font-weight: 700;
}

.home .header-info {
    font-size: 16px;
}

.internship-filter .form-check-label {
    white-space: nowrap;
    margin-bottom: 0;
}

.masonry {
  column-count: 4;
  column-gap: 1rem;
}

.masonry-item {
  break-inside: avoid;
  margin-bottom: 1rem;
}

.masonry-item img {
  width: 100%;
  display: block;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.thumb-wrapper {
  position: relative;
  display: inline-block;
  width: 100%;
}

.thumb-wrapper img {
  width: 100%;
  border-radius: 8px;
  display: block;
}

/* Info bar always visible (for thumbnails only) */
.thumb-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 0.5rem;
  font-size: 0.9rem;
  text-align: center;
  border-radius: 0 0 8px 8px;
}

/* Download icon */
.download-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 1rem;
  padding: 4px 8px;
  border-radius: 50%;
  text-decoration: none;
  transition: background 0.2s ease;
}

.download-icon:hover {
  background: rgba(0,0,0,0.8);
}

.resource-tree {
  list-style: none;
  padding-left: 0 !important;
  /* font-family: monospace; */
}

.resource-tree li {
  margin: 4px 0;
  padding-left: 0 !important;
  position: relative;
}

.resource-list {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: 5px;
}

.resource-item {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 10px;
  transition: all 0.2s ease-in-out;
}

.resource-icon {
  font-size: 1.5rem;
}

.resource-item .btn {
  min-width: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ql-syntax {
    background-color: #111827;
    color: #FFFFFF;
    padding: 10px;
    border-radius: 5px;
}

.login-overlay {
  backdrop-filter: blur(5px);
}

.lesson-list {
  margin-left: 130px !important;
}

.chat-container {
  max-width: 800px;
  margin: 50px auto;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  height: 80vh;
  overflow: hidden;
}

.chat-header {
  background: #0d6efd;
  color: #fff;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header h5 {
  margin: 0;
  font-weight: 500;
}

.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f8fafc;
}

.chat-message {
  display: flex;
  margin-bottom: 15px;
}

.chat-message .message {
  max-width: 70%;
  padding: 12px 16px;
  border-radius: 15px;
  font-size: 15px;
  line-height: 1.4;
}

.chat-message.received .message {
  background: #e9ecef;
  color: #333;
  border-top-left-radius: 0;
}

.chat-message.sent {
  justify-content: flex-end;
}

.chat-message.sent .message {
  background: #0d6efd;
  color: #fff;
  border-top-right-radius: 0;
}

.chat-footer {
  border-top: 1px solid #dee2e6;
  padding: 15px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-footer input {
  flex: 1;
  border-radius: 30px;
  padding: 10px 20px;
}

.chat-footer button {
  border-radius: 30px;
  padding: 10px 20px;
}

/* Scrollbar styling */
.chat-body::-webkit-scrollbar {
  width: 6px;
}

.chat-body::-webkit-scrollbar-thumb {
  background-color: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}