body {
  font-family: 'hasti-font' !important;
  font-size: 1rem;
  min-height: 100vh;   /* ✅ correct */
  background: linear-gradient(to bottom, rgb(0, 140, 255), rgb(255, 255, 255));
}
@font-face {
  font-family: "hasti-font";
  src: url('../fonts/Neue-regular.otf');
}
:root{
    --primary-color:rgb(0, 81, 255);
}
.logo { width: 72px; height: 72px; object-fit: contain; background: #fff; border-radius: 14px; padding: 10px; box-shadow: 0 6px 16px rgba(0,0,0,.08); }
.stat { background: #f8fafc; border: 1px solid #eef2f7; border-radius: 14px; padding: 12px; }
.stat-label { color: #64748b; font-size: .85rem; font-weight: bold; }
.stat-value { font-weight: 800; font-size: 1.4rem; color: var(--primary-color)}
.calendar td { height: 110px; vertical-align: top; }
.calendar a.badge { white-space: normal; text-align: start; }
input, select { border-radius: 12px !important; }
.main-header *{
    color:white;
}
.coming-evenets-drop-down *{
    color:black;
}
.dropdown-item{
  color:black;
}
.card{
  background: white;
}
.header-nav-bar li{
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    margin-inline: 8px;
    border-radius: 8px;
}
.nav-link{
  color:white;
  border: 1px rgba(255, 255, 255, 0.402) solid;
  margin-right:8px;
  border-radius: 8px;
}
.home-main-logo{
    width:300px;
    object-fit: cover;
    margin: 16px auto;
}
.alert-error{
    background-color: rgba(255, 0, 0, 0.804);
    color: white;
}
.calendar-cell {
  min-height: 120px;
  vertical-align: top;
}

.day-number {
  font-size: 0.85rem;
  color: #555;
}

.calendar-event {
  font-size: 0.75rem;
  line-height: 1.3;
  white-space: normal;      /* ✅ allow wrapping */
  word-break: break-word;  /* ✅ Arabic-safe */
  max-height: 3.2em;       /* ~2 lines */
  overflow: hidden;
  padding: 4px !important;
}
.past-event {
  background-color: gray !important;
  color: white !important;
}
.upcoming-event {
  color:white !important;
  background-color: rgb(176, 149, 0) !important;
}
.today-event {
  background-color: green !important;
  color: white !important;
}
.page-title{
  color:white;
}
/* new edits */
.calendar {
  table-layout: fixed; /* critical */
}
.btn{
    font-weight: bold;
}

.calendar-cell {
  vertical-align: top;
  padding: 6px;
  min-height: 140px;

}
.calendar-cell-inner {
height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.day-number {
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: #555;
  flex-shrink: 0;
}
.calendar-more {
  font-size: 0.7rem;
  flex-shrink: 0;
}
.calendar-event {
    font-size: 0.75rem;
  line-height: 1.3;
  white-space: normal;
  word-break: break-word;
  max-height: 3.2em;
  overflow: hidden;
  padding: 4px !important;
}

.calendar-cell-inner a,
.calendar-cell-inner button {
  flex-shrink: 0;
}
.event-cover-image{
    width:100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    border-radius: 8px;
}
.errorlist {
  list-style: none;
  padding: 0;
  margin: 0.25rem 0 0;
  color: #dc3545;
  font-size: 0.85rem;
}


/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .calendar-wrapper {
    overflow-x: auto;
  }

  .calendar {
    min-width: 720px;
  }
  .navbar-brand{
    font-size: 0.75rem;
  }
}