.sahl-new-calendar-system {
  display: flex;
  flex-wrap: wrap;
}
@media only screen and (max-width:850px) {
  .sahl-new-calendar-system {
    padding:0
  }
  .event-info {padding:1px}
  div.panel-body {padding:0}
  #event-details {padding:0}
}

.calendar-header,
.calendar-body {
  display: flex;
  flex-direction: column;
}

.calendar-header {
  text-align: center;
  position: relative;
  color: white;
  padding: 0;
  /* height: 100%; Ensures equal height */
}

.cmr_breadcrumbs {display: none;}

.img {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}

.wrap-header {
  z-index: 0;
  flex-grow: 1;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-top-left-radius: 9px;
  border-bottom-left-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  min-height: 100%; 
  position: relative;
}

.wrap-header:after {
  position: absolute;
  border-top-left-radius: 9px;
  border-bottom-left-radius: 9px;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  content: '';
  background: #000;
  opacity: .5;
  z-index: -1;
}

.calendar-body {
  background-color: #f1f1f1;
  border-top-right-radius: 9px;
  border-bottom-right-radius: 9px;
  padding: 0px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}

.arrows,
.button-wrap {
  display: flex;
  justify-content: space-between;
  padding: 15px ;
}

.head-day {
  font-size: 9em;
  line-height: 1;
  color: #fff;
}

.head-month {
  font-size: 2em;
  line-height: 1;
  color: #fff;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 300;
}

#reset {
  display: block;
  position: absolute;
  right: 0.5em;
  top: 0.5em;
  z-index: 999;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0 0.5em;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  -webkit-transition: all 0.3sease;
  -o-transition: all 0.3s ease;
  transition: all 0.3sease;
  text-transform: uppercase;
  font-size: 12.5px;
}

.box-shadow {
  box-shadow: 0px 19px 27px -20px rgba(0, 0, 0, 0.16);
}

table {
  background-color: #f1f1f1;
  width: 100%;
  border-collapse: collapse;
  
}

th, td {
  text-align: center;
  padding: 15px;
  font-size: 12px;
}

th {
  background-color: #f1f1f1;
  color: #2a3246;
}

tbody td {
  cursor: pointer;
  transition: 0.3s;
  /* border-radius: 50%; Ensure it remains circular */
  width: 44px; /* Ensure width and height are equal */
  height: 44px;
  text-align: center;
  line-height: 44px; /* Centers text vertically */
  position: relative;
}

tbody td:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  /* border-radius: 50%; */
  transition: 0.3s;
  z-index: -1;
}

tbody td:hover, #today {
  color: #fff;
  background-color: #2a3246;
}

tbody td:hover:after, #today:after {
  background-color: #2a3246; /* Color on hover */
}

/* Fix for today’s circle */
#today {
  background-color: #e13a9d;
  color: white;
}
 
/* Ensure equal height for mobile devices */
@media (max-width: 768px) {
  .sahl-new-calendar-system {
    display: block;
  }

  .calendar-header,
  .calendar-body {
    width: 100%;
    height: auto;
  }
}

.event-day {
  background-color: rgba(225, 58, 157, 0.3); 
}
.event-day-mufti {
  background-color: orangered; 
}

.head-body a{color: #fff;}

.panel {
  border:0;
  background: #eee;
}

#event-details {
  margin: 20px auto;
  padding: 9px;
  background: #eee;
  border-radius: 10px;
  border:0;
  display: flex;
  align-items: center;
  gap: 15px;
  width: 100%;
  max-width: 750px;
}

.event-card {
  border-radius: 5px;
  overflow: hidden;
  margin-bottom:0;
  box-shadow:none;
}

.event-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 15px;
  background: #eee;
  box-sizing: border-box;
}

/* Mobile View - Image on Top */
@media (max-width: 768px) {
  .event-card .col-xs-12 {
      width: 100%;
  }
}

.sahl-relative {position: relative}

.sahl-calendar-arrow {
  display: block;
  height: 45px;
  width: 45px;
  position: relative;
}

i.sahl-calendar-arrow:hover,
.sahl-calendar-arrow i:hover {opacity:0.9;color:#e13a9d}

.sahl-left {
  display: block;
  position: absolute;
  margin: 0 auto;
  font-size: 21px;
  line-height: 41px;
  text-align: center;
  vertical-align: middle;
  top: 0;
  left: 0;
  cursor: pointer;
  height: inherit;
  width: inherit;
}

.sahl-right {
  display: block;
  position: absolute;
  margin: 0 auto;
  font-size: 21px;
  line-height: 41px;
  text-align: center;
  vertical-align: middle;
  top: 0;
  left: 0;
  cursor: pointer;
  height: inherit;
  width: inherit;
}

.sahl-padding-0 {padding:0}