:root {
    --secBlue: #000263;
    --secRed: rgb(146, 0, 0);
}

.calendar-nav {
     float: right;
     width: 100%;
     text-align: center;
     margin-bottom: 76px;
 }

 .calendar-nav button {
    transform: translateY(0) !important;
 }
 .calendar-nav button:nth-child(1) {
     transition: all 400ms;
     margin-left: -10px;
 }

 .calendar-nav button:nth-child(1):hover {
     transition: all 400ms;
     margin-left: 0px;
     transform: translateY(0);
 }

 .calendar-nav button:nth-child(3) {
    margin-right: -10px;
    transition: all 400ms;
    transform: translateY(0);
 }

 .calendar-nav button:nth-child(3):hover {
     margin-right: 0px;
     transition: all 400ms;
 }

 .calendar-nav button {
     transition: all 400ms;
     background: transparent;
     color: var(--secBlue);
     border: 1px solid var(--secBlue);
     min-width: 130px;
 }

 .calendar-nav button:hover {
     background: var(--secRed);
     border-color: var(--secRed);
     color: #fff;
 }

 .calendar-btn {
    background: var(--secBlue);
    color: #fff;
    padding: 8px 22px;
    border-radius: 7px;
 }

 .calendar-button {
    display: block;
    float: right;
    width: 100%;
 }

 .calendar-month {
     width: 100%;
     float: right;
     display: flex;
     margin-bottom: 40px;
     color: #333;
 }

 .course-calendar {
     margin: 20px 0;
     border-collapse: collapse;
     width: 100%;
     text-align: center;
     direction: rtl;
     background-color: #fff;
 }

 .course-calendar th,
 .course-calendar td {
     border: 1px solid #ddd;
     padding: 8px;
     min-width: 46px;
     vertical-align: top;
     width: 75px;
 }

 .course-calendar td {
     height: 50px;
     vertical-align: middle;
     cursor: pointer;
 }
 .course-calendar td:hover {
    background-color: #eee;
 }

 .course-calendar th {
     background: #f6f6f6;
 }

 .course-calendar .friday {
     background: #fff0f0;
     color: #c00;
 }

 .course-calendar .event-day {
     background: #eef9ee;
     font-weight: 700;
     cursor: pointer;
     position: relative;
 }

 .calendar-month-title {
     font-size: 18px;
     font-weight: 700;
     margin: 0px 0 8px;
     text-align: center;
     background: var(--secBlue);
     color: #fff;
     padding: 8px;
     border-radius: 10px 10px 0 0;
     margin-bottom: -20px;
     border-bottom: 4px solid var(--secondaryBg);
 }

 .course-calendar small {
    display: -webkit-box;
    font-weight: 400;
    font-size: 11px;
    margin-top: 4px;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    text-overflow: unset;
    padding: 5px;
    height: auto;
 }

 .popup-td {
    visibility: hidden;
    position: absolute;
    height: auto;
    background: #070c20;
    color: #fff;
    bottom: 118%;
    font-family: 'iransansX';
    width: 90px;
    box-shadow: 0 0 10px #ccc;
    border-radius: 7px;
    right: -4px;
 }

 .event-day:hover .popup-td {
     visibility: visible;
 }

 .crs-row-item {
     display: flex;
     margin-bottom: 10px;
     margin-top: 10px;
 }

 .crs-row-item .title-item {
     font-weight: 900;
 }

 .date-item {
     width: 40px;
     height: 40px;
     display: flex;
     justify-content: center;
     align-items: center;
     background: var(--secBlue);
     color: #fff;
     border-radius: 7px;
     margin-left: 9px;
 }

 .crs-row-item .crs-row-content span.teacher {
     color: #070c20;
     font-size: 12px;
 }

 .crs-row-item .crs-row-content span {
     display: block;
     width: 100%;
 }

 .popup-td::after {
     content: '';
     width: 0;
     height: 0;
     border-top: 10px solid #070c20;
     border-left: 10px solid transparent;
     border-right: 10px solid transparent;
     border-bottom: 10px solid transparent;
     position: absolute;
     bottom: -18px;
     right: 0;
     left: 0;
     margin: auto;
 }

 .event-day.hover-highlight.highlight {
     cursor: pointer;
     background: var(--secBlue);
     color: #fff;
     transition: all 400ms;
 }

 .hover-highlight {
     cursor: pointer;
 }

 .calendar-wrapper {
     font-size: 16px;
     margin: 0 13px;
 }

 .calendar-wrapper .calendar-body {
     height: 60px;
     width: 60px;
 }

 .calendar-wrapper .calendar-body .cal-header {
     background-color: #f94444;
     height: 30%;
     border-radius: 1em 1em 0 0;
     position: relative;
 }

 .calendar-wrapper .calendar-body .cal-header .punch-left {
     width: 0.7em;
     height: 0.7em;
     border-radius: 50%;
     background-color: rgba(0, 0, 0, 0.25);
     position: absolute;
     top: 7%;
     z-index: 0;
     left: 15%;
 }

 .course-calendar .event-day span {
     border-radius: 100px;
     width: 32px;
     height: 22px;
     display: inline-block;
   
 }

 .calendar-wrapper .calendar-body .cal-header .punch-right {
     width: 0.7em;
     height: 0.7em;
     border-radius: 50%;
     background-color: rgba(0, 0, 0, 0.25);
     position: absolute;
     top: 7%;
     z-index: 0;
     right: 15%;
 }

 .calendar-wrapper .calendar-body .cal-header .binder-left {
     z-index: 1;
     width: 0.3em;
     height: 0.9em;
     background-color: #ccc;
     border-radius: 25px;
     position: absolute;
     top: -30%;
     left: 20%;
 }

 .calendar-wrapper .calendar-body .cal-header .binder-right {
     z-index: 1;
     width: 0.3em;
     height: 0.9em;
     background-color: #ccc;
     border-radius: 25px;
     position: absolute;
     top: -30%;
     right: 20%;
 }

 .calendar-wrapper .calendar-body .cal-header .month {
     text-align: center;
     color: #fff;
     font-weight: bold;
     font-size: 10px;
     padding-top: 10%;
 }

 .calendar-wrapper .calendar-body .cal-body {
     background-color: #fff;
     height: 70%;
     border-radius: 0px 0px 1em 1em;
     box-shadow: 0px -5px 14px -5px #000 inset;
 }

 .calendar-wrapper .calendar-body .cal-body .date {
     color: #000;
     font-weight: bold;
     font-size: 1.2em;
     text-align: center;
     line-height: 145%;
     margin-bottom: -8px;
 }

 .calendar-wrapper .calendar-body .cal-body .day {
     color: #000;
     text-align: center;
     font-weight: bold;
     font-size: 10px;
 }

 .ch5-row {
     padding: 9px 0 10px;
     display: inline-block;
     width: 88px;
     height: 88px;
     border: 1px solid #ccc;
     border-radius: 31px;
     margin: 8px 23px;
     background: #f7f7f7;
     overflow: hidden;
     position: relative;
 }

 .ch9-0icon {
     font-size: 53px;
     color: #2747bd;
 }

 #section-1 .text-module-block {
     background: linear-gradient(to bottom, #fff 10%, transparent) !important;
 }

 .ch5-row h5 {
     background: #f94444;
     height: 28px;
     font-size: 10px;
     color: #fff;
     align-items: center;
     display: flex;
     justify-content: center;
     position: absolute;
     bottom: 0;
     left: 0;
     right: 0;
     margin-bottom: 0;
 }

 .sloga3 img {
     visibility: hidden;
     opacity: 0;
     position: absolute;
     top: 0;
     left: 0;
     right: 0;
     bottom: 0;
     border-radius: 13px;
     object-fit: cover;
     width: 100%;
     height: 100%;
     box-shadow: 0 0 10px #ccc;
     transition: all 700ms;
 }

 .sloga3 img.hover-highlight.highlight {
     visibility: visible;
     opacity: 1;
     transition: all 400ms;
 }

 .hover-highlight.highlight .crs-row-content {
     transition: all 400ms;
 }
  .left-sec .hover-highlight {
    border:2px solid transparent;
  }
 .left-sec .hover-highlight.highlight  {
    background: #dae4ff !important;
    border:2px solid green;
}
 .hover-highlight.highlight span.teacher {
     color: #ccc !important;
 }
 .crs-row-content .time {
  font-size: 13px;
}
.course-calendar .event-day span::before {
  content: '';
  background: var(--secBlue);
  position: absolute;
  width: 7px;
  height: 7px;
  right: 6px;
  top: 7px;
  border-radius: 100px;
}
 .rte {
    background: #fff;
    display: block;
    border-radius: 0;
    border-bottom: 1px solid var(--secBlue);
    margin-top: 2px;
    margin-bottom: 0px;
    display: flex;align-items: center;
 }
.left-sec .hover-highlight {
  background: #eee;
  padding: 5px;
  margin-top: 9px;
}
 .rte span {
  padding: 0 10px;
    background: #eee;
    color: #000;
  margin: 0 8px;
  border-radius: 26px;
  font-size: 13px;
  display: flex;
  align-items: center;
  cursor: pointer;
}
.filter-events {

}
.sec-eb-container {
    max-height: 330px;
    overflow: auto;
}
 .rte span.active {
 background: var(--secBlue);
  color: #fff;
 }
 .chabok-event-calendar {
     position: relative;
 }
 .reminder-input {
    display: flex;align-items: center;

 }
 .reminder-input input {
    width: auto !important;
    margin:0 0 0 10px !important;
 }

 .chabok-event-calendar::before {
     content: '';
     background: url('../images/cl-bg.webp');
     background-size: cover;
     background-position: bottom;
     position: absolute;
     left: 0;
     right: 0;
     top: 0;
     bottom: 0;
     background-position: bottom;
     opacity: 0.5;
     z-index: 1;
 }
 .chabok-calender-events {
    position: relative;
    z-index: 2;
 }

 .chabok-event-calendar {
     overflow: hidden;
     padding-top: 10px;
     padding-bottom: 10px;
     position: relative;
 }

 .chabok-event-calendar.chabok-loading::before {
     content: '';
     position: absolute;
     left: 0;
     top: 0;
     bottom: 0;
     right: 0;
     background-color: rgba(255, 255, 255, 0.42);
     filter: blur(5px);
     z-index: 6;
 }

 .chabok-event-calendar.chabok-loading::after {
     content: '';
     position: absolute;
     left: 0;
     top: 0;
     bottom: 0;
     right: 0;
     width: 60px;
     height: 60px;
     border-radius: 100px;
     border: 4px solid red;
     border-right: 4px solid transparent;
     z-index: 9;
     margin: auto;
     animation: ChabokEventSpin infinite 400ms ease-in-out;
 }

 .calendar-btn:hover {
     background: var(--secRed);
     color: #fff;
 }



/* ===== Modal Base ===== */
.sec-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    pointer-events: none;
}

/* overlay */
.sec-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* content */
.sec-modal-content {
    position: absolute;
    bottom: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 1024px;
    max-width: 95%;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
    transition: all 0.4s cubic-bezier(.23,1,.32,1);
    height: 90vh;
    overflow: hidden;
}

/* active state */
.sec-modal.active {
    pointer-events: auto;
}

.sec-modal.active .sec-modal-overlay {
    opacity: 1;
}

.sec-modal.active .sec-modal-content {
    bottom: 0;
}

/* header */
.sec-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #eee;
}

.sec-close {
    font-size: 22px;
    border: none;
    background: #fff;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    cursor: pointer;
    transition: 0.2s;
    max-width: 35px;
    max-height: 35px;
    padding: 0;
    color: #000;
}

.sec-close:hover {
    background: #ddd;
}

/* body */
.sec-modal-body {
    display: flex;
    gap: 20px;
    padding: 20px;
}
.start-end-time {
    display:flex;
    direction:ltr;   
}
.start-end-time > div {
    width:100%;
}
.start-end-time > div:nth-child(1) {
    padding-right:10px;
}
.start-end-time > div:nth-child(2) {
    padding-left:10px;
}
/* columns */
.sec-col {
    flex: 1;
}
.reminder-field {
    margin-bottom: 20px;
}
/* form */
.sec-form input,
.sec-form textarea,
.sec-form select {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #868686;
    margin-bottom: 10px;
    font-family: inherit;
}

.sec-form textarea {
    min-height: 90px;
    resize: vertical;
}

.sec-btn {
    width: 100%;
    padding: 12px;
    border: none;
    background: #13225a;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.sec-modal-body h4 {
  font-size: 15px;
  color: var(--secBlue);
}

.sec-btn:hover {
    background: #0f1a45;
}

/* events */
.sec-events {
    max-height: 525px;
    overflow-y: auto;
}
.crs-row-item {
    position:relative;
}
.sec-event-item {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f7f7f7;
    transition: 0.2s;
    display: flex;
    justify-content: space-between;
    position:relative;
}
.row-badge {
    position: absolute;
    left: 20px;
    top: 10px;
    right: auto;
    width: auto !important;
    font-size: 12px;
    padding: 0 10px;
    border-radius: 17px 0 17px 17px;
    display: flex;
    align-items: center;
    min-width: 64px;
    text-align: center;
}
.crs-row-item.private-row .row-badge {
    background:#a00606;
    color:#fff;
}
.crs-row-item.public-row .row-badge {
    background:#0606a0;
    color:#fff;
}
.crs-row-item.private-access-row .row-badge {
    background:#7406a0;
    color:#fff;
}
.public-row .cal-header {
    background:var(--secBlue) !important;
}
.private-access-row .cal-header {
    background:#7406a0 !important;
}
.sec-badge {
  position: absolute;
  bottom: 8px;
  left: 17px;
  font-size: 12px;
  background: #0606a0;
  color: #fff;
  padding: 0 10px;
  border-radius: 10px;
}
.sec-badge.sec-bg-red {
    background: #a00606;
}
.sec-badge.sec-bg-perple {
     background:#7406a0;
}
.sec-event-item:hover {
    background: #eee;
}
.sec-info {
    cursor: pointer;
}
.sec-info strong {
  color: black;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  text-overflow: ellipsis;
  overflow: hidden;
}
.sec-item-desc {
    display: none;
}
.sec-event-item .sec-info.sec-active .sec-item-desc {
    display: block;
    font-size: 13px;
}
.sec-event-item .sec-info.sec-active strong {
    display: block !important;
}

.sec-actions {
    display: flex;
}
.sec-actions button {
  padding: 0px;
  margin:0 4px;
  width: 30px;
  height: 30px;
  font-size: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  background-color: none;
  background-image: none;
  background-position: center !important;
  background-size: 18px;
  background-repeat: no-repeat;
  opacity: 0.7;
}
.sec-actions button:hover {
    opacity: 1;
}

.sec-actions button.sec-edit {
    background-image: url('../images/edit-icon.svg') !important;
    
}
.sec-actions button.sec-delete {
    background-image: url('../images/trash-icon.svg') !important;
}


/* ===== Toast ===== */
#sec-toast {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: #13225a;
    color: #fff;
    padding: 12px 18px;
    border-radius: 8px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.3s;
    z-index: 99999;
}

#sec-toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* ===== Confirm Modal ===== */
.sec-confirm {
    position: fixed;
    inset: 0;
    display: none;
    background: rgba(0,0,0,0.5);
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.sec-confirm[style="display: block;"] {
    display: flex !important;
}
.sec-confirm-box {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    width: 300px;
}

.sec-confirm-actions {
    margin-top: 15px;
    display: flex;
    gap: 10px;
}

.sec-confirm-actions button {
    flex: 1;
    padding: 10px;
    border: none;
    cursor: pointer;
}

#sec-confirm-yes {
    background: #e74c3c;
    color: #fff;
}

#sec-confirm-no {
    background: #ddd;
}


/* ===== Mobile ===== */
@media (max-width: 768px) {

    .sec-modal-content {
        width: 100%;
        height: 90%;
        border-radius: 16px 16px 0 0;
    }

    .sec-modal-body {
        flex-direction: column;
        overflow-y: auto;
        height: calc(100% - 60px);
    }

    .sec-events {
        max-height: none;
    }
}


 @keyframes ChabokEventSpin {
     from {
         transform: rotate(0deg);
     }

     to {
         transform: rotate(360deg);
     }
 }

 @media screen and (max-width: 1165px) {

     .calendar-month .chabok-col-40,
     .calendar-month .chabok-col-20 {
         width: 100%;
         max-width: 600px;
         margin: auto;
     }

     .calendar-month {
         flex-wrap: wrap;
     }

     .calendar-month .chabok-col-20 {
         display: none;
     }
 }

 @media screen and (max-width: 500px) {

     .course-calendar th,
     .course-calendar td {
         font-size: 10px;
         width: auto !important;
         min-width: auto !important;
     }

     .text-module-block {
         padding: 10px !important;
     }

     .calendar-wrapper,
     .rte {
         margin-right: 0;
     }
     .rte {
        display: block;
        margin-top: 33px;
     }

     .rte span {
        display: inline-block;
        margin-bottom: 20px;
    }
    .row-badge {
        font-size: 8px;
        top: -12px;
        left: 0;
        padding: 1px 7px;
        min-width: auto;
    }
     .calendar-month .chabok-col-40 {
         padding: 0;
     }

     .calendar-nav button {
         width: auto !important;
         font-size: 12px !important;
         min-width: 100px;
     }
 }