/*
 * Alerts
 */

.alert {
  border-radius: 0px;
}


/*
 * Cover page
 */

.content {
  padding-top: 10px;
}

.h-100 {
  min-height: 100vh;
  height: 100vh;
}

.vcenter-item {
  display: flex;
  align-items: center;
}

/*
 * Cover page
 */

h1.cover-heading {
  font-size: 4rem;
}

p.cover-text {
  font-size: 1.7rem;
}

.cover-card {
  background-color: rgba(245, 245, 245, 0.6);
  max-width: 30rem;
  padding-top: 30px;
  padding-left: 50px;
  padding-right: 50px;
  padding-bottom: 30px;
  border-radius: 15%;
}

.cover-card-block {
  opacity: 1
}


/*
 * forms
 */
.nolabel label {
  display: none;
}

ul.errorlist {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/*
 * Typefaces
 */

.low-key {
  color: #777777;
  font-weight: 300;
}

.list-title {
  margin-top: 10px;
  margin-bottom: 20px;
}

/*
 * Profile
 */
.profile-image {
  width: 120px;
  clear: both;
  float: left;
}

.profile-text {
  overflow: hidden;
  padding-left: 20px
}

h3.profile-title {
  margin-bottom: 0px;
}

.profile-username {
  color: #777777;
  font-weight: 300;
  font-style: italic;
}


/*
 * Hyperlinks
 */
.content a {
  text-decoration: none;
  color: #0d6efd;
}

.content a:hover {
  text-decoration: underline;
  color: #0d6efd;
}


/* form */
form .form-control,
form input.form-control,
form select.form-control,
form textarea.form-control {
  width: 100% !important;
  box-sizing: border-box;
  padding: .375rem .75rem;
  font-size: 1rem;
  border: 1px solid #ced4da;
  border-radius: .25rem;
  display: block;
  height: auto;
}

form textarea.form-control {
  min-height: 3rem;
  /* adjust if you want taller textarea */
  resize: vertical;
}

.offcanvas {
  --bs-offcanvas-width: 280px;
}

.offcanvas.offcanvas-end {
  --bs-offcanvas-width: 280px;
  width: 280px;
  max-width: 80vw;
}

.offcanvas {
  background: #212529;
}

.offcanvas .nav-link {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  padding: 12px;
  border-radius: 8px;
}

.offcanvas .nav-link:hover {
  background: #1f1f1f;
  color: #fff;
}

.day-group,
[id^="event-"] {
  scroll-margin-top: 78px;
}


.highlight-card {
  box-shadow: 0 0 0 3px yellow !important;
}

.sticky-day {
  position: sticky;
  top: 51px;
  z-index: 1000;
  background: white;
  font-weight: normal;
  padding: 0 0 6px 0;
  margin: 0;
}

.sticky-day a {
  opacity: 0.6;
  transition: opacity 0.2s ease;
}

.sticky-day a:hover {
  opacity: 1;
}

.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 1010;
  padding: 0;
  background-color: #ffffff;
  border-bottom: 1px solid #fbf9f9;
}

html {
  scroll-behavior: smooth;
}

/* arrows */
.next-day-arrow {
  font-size: 1.2rem;
  margin-right: 12px;
}

.day-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: 1.2rem;
  line-height: 1;
}

/* share message */

.share-toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #212529;
  color: white;
  padding: 10px 18px;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 2000;
  font-size: 0.9rem;
}

.share-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* share button */

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #777;
  font-size: 0.9rem;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-button:hover {
  color: #212529;
  background: #f1f1f1;
}

.icon-button:active {
  transform: scale(0.9);
}

.last-day {
  padding-bottom: 120px;
}

/* image over */

.card {
  border: 1px solid #e6e6e6;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(193, 48, 48, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  overflow: visible;
}

.card:hover {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

.card-image-link {
  overflow: hidden;
  border-radius: 0;
}

.card-img-top {
  height: 350px;
  object-fit: cover;
  border-radius: 0;
}

.card-body {
  background: white;
  border-radius: 0 0 16px 16px;
}

.card-image-link img {
  transition: transform 0.25s ease;
}

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

.card-placeholder {
  height: 350px;
  background: #f2f2f2;
  color: #555;
  text-decoration: none;
  font-weight: bold;
}

.card-placeholder:hover {
  background: #e8e8e8;
}

.event-placeholder {
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background: linear-gradient(135deg, #f5f5f5, #e8e8e8);
  color: #333;
}

.event-placeholder div {
  text-align: center;
}

.event-placeholder i {
  font-size: 3rem;
  display: block;
  margin-bottom: 15px;
  opacity: 0.5;
}

.event-placeholder span {
  font-size: 1.2rem;
  font-weight: 600;
}

.brand-placeholder {
  height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
  background: #111;
  color: white;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-decoration: none;
  border-radius: 0;
}

.event-detail-image {
  display: block;
  width: 100%;
  max-height: 600px;
  object-fit: contain;
  margin: 0 auto;
}

.like-button:focus {
  box-shadow: none;
}

/* Floating top button */
.popup-scroll-top {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  border: none;
  background: #212529;
  color: white;
  font-size: 22px;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, transform .2s ease;
  z-index: 1000;
  box-shadow: 0 3px 8px rgba(0, 0, 0, .25);
}

.popup-scroll-top span {
  font-size: 10px;
  font-weight: normal;
  text-transform: uppercase;
}

.popup-scroll-top:hover {
  transform: translateY(-3px);
}

.popup-scroll-top.show {
  opacity: 1;
  visibility: visible;
}

/* comment images */
.comment-images {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.comment-image {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

/* announcement */
.hide-announcement #announcement-wrapper {
  display: none;
}

/* notification latest and discussion */
.notification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  min-width: 18px;
  height: 18px;
  padding: 0 5px;

  margin-left: -1px;

  background-color: #dc3545;
  color: white;

  border-radius: 50%;

  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  transform: translateY(-1px);
}

/* =========================
   Quick Tips create
   ========================= */

.quick-tip-form {
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 24px;
}

.quick-tip-form .form-control {
  border-radius: 8px;
}

.quick-tip-form .form-control:focus {
  box-shadow: none;
}

#upload_widget {
  border-radius: 8px;
  border-style: dashed;
}

#imagePreview img {
  max-width: 100%;
  border: 1px solid #e5e5e5;
}

@media (max-width: 576px) {
  .quick-tip-form {
    padding: 18px;
    border-radius: 10px;
  }
}

/* =========================
   Quick Tips
   ========================= */

.quick-tip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.quick-tip-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.quick-tip-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.quick-tip-card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f5f5f5;
}

.quick-tip-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.quick-tip-card-body {
  padding: 16px;
}

.quick-tip-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
  font-size: 0.8rem;
  color: #777;
}

.quick-tip-source {
  display: block;
  margin-bottom: 10px;
  font-size: 0.9rem;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quick-tip-source:hover {
  text-decoration: underline;
}

.quick-tip-card-description {
  margin-bottom: 0;
  line-height: 1.5;
}

.quick-tips-empty {
  border: 1px dashed #ddd;
  border-radius: 12px;
}

@media (max-width: 992px) {
  .quick-tip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .quick-tip-grid {
    grid-template-columns: 1fr;
  }

  .quick-tip-card-meta {
    flex-direction: column;
    gap: 2px;
  }
}

/* =========================
   Source badge
   ========================= */
.brand-title {
  width: 90%;
  margin-left: auto;
  margin-right: auto;
}

.source-link {
  font-size: 0.7em;
  white-space: nowrap;
}

.detail-brand-title {
  margin-left: 0;
  margin-right: 0;
}