body {
    font-family: sans-serif;
    /* background-image:
        linear-gradient(rgba(252, 247, 247, 0.418), rgba(255, 255, 255, 0.5)),
        url('assets/img/hero-bg-abstract.jpg'); */
    object-fit: cover;
    width: 100%;
    overflow-x: hidden;
}

.other_link {
    background-image:
        linear-gradient(rgba(243, 238, 238, 0), rgba(255, 255, 255, 0)),
        url(img/tar1.jpg);
    background-size: cover;
    background-attachment: fixed;
    background-position: center;
    overflow: auto;

}


.holiday {
    background-color: #ffe6e6;
    border: 2px solid #dc3545;
    /* red border */
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.holiday:hover {
    transform: scale(1.05);
    /* box-shadow: 0 0 8px rgba(220, 53, 69, 0.5); */
    background-color: #ffe6e6;
}

.holiday:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: green;
    padding: 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 18px;
    z-index: 10;
    border: 1px solid green;
}


table {
    width: 100%;
    /* border-collapse: collapse; */
    /* text-align: center; */
    height: 300px;
}

th,
td {
    /* padding: 15px; */
    /* border: 1px solid black; */
    /* Sets a border on all four sides of table cells */
    text-align: center;
}

th {
    background-color: #f8f9fa;
}

.weekend {
    /* background-color: rgb(252, 204, 208); */
    background-color: rgb(240, 188, 188);
    color: rgb(163, 20, 34);
    /* font-weight: bold; */
}

/* .holiday{
        background-color:rgb(240, 194, 188);
        color:#721c24;
        font-weight: bold;
    } */

.holiday {
    background-color: #d1ecf1;
    color: rgb(2, 82, 15);
    /* font-size: 12px; */
    /* padding: 2px; */
    /* border-radius: 4px; */
}

.event {
    background-color: rgb(231, 231, 186);
    color: rgb(184, 145, 19);
    /* font-weight: bold; */
}

.working_saturday {
    background-color: rgb(208, 236, 201);
    color: #0c5460;
}

.today_date {
    border: 1px solid rgb(248, 210, 84) !important;
    color: rgb(2, 33, 170) !important;
    font-weight: bold !important;
    background-color: rgb(248, 210, 84);
    cursor: pointer;
}

.today_date:hover {
    transform: scale(1.05);
    box-shadow: 0 0 8px rgba(220, 53, 69, 0.5);
    
}

.today_date:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    color: green;
    padding: 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 18px;
    z-index: 10;
    border: 1px solid green;
}

.date {
    font-weight: bold;
}

.month-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 24px;
    /* margin-bottom: 20px; */

}

.month-header button {
    background-color: white;
    color: black;
    border: none;
    /* padding: 5px 10px; */
    font-size: 18px;
    cursor: pointer;
}

.month-header button:hover {
    /* background-color: #bf9456; */
}

.notification-wrapper {
    height: 200px;
    /* Adjust as needed */
    overflow: hidden;
    position: relative;
    border-radius: 1rem;
}

.notification-wrapper2 {
    height: 210px;
    /* Adjust as needed */
    overflow: hidden;
    position: relative;
    border-radius: 1rem;
}

.latest_notofication_scroll {
    display: inline-block;
    animation: scroll-up 20s linear infinite;
}

.latest_afr_scroll {
    display: inline-block;
    animation: scroll-up 50s linear infinite;
}

@keyframes scroll-up {
    0% {
        transform: translateY(0%);
    }

    100% {
        transform: translateY(-100%);
    }
}

#calendarTable th,
#calendarTable td {
    border: 1px solid #dee2e6 !important;
    /* Matches Bootstrap's border */
    vertical-align: top;

}

#calendarTable {
    border-collapse: collapse;
}

.weekend {
    background-color: #f8d7da !important;
    /* light red */
}

.working_saturday {
    background-color: #cce5ff !important;
    /* light blue */
}

.holiday {
    background-color: #d4edda !important;
    /* light green */
}

/* Optional: Styling for the legend itself */
.calendar-legend {
    margin-top: 1rem;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    font-size: 0.9rem;

}

.calendar-legend span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.calendar-legend .box {
    width: 20px;
    height: 20px;
    display: inline-block;
    border: 1px solid #ccc;
}

/* Remove margin or padding from calendar table */
#calendarTable {
    margin-bottom: 0;
    /* Remove any bottom margin */
    padding-bottom: 0;
    /* Remove any bottom padding */
}

/* Remove padding and margin from the calendar legend */
.calendar-legend {
    margin-top: 0;
    /* Remove top margin */
    padding-top: 0;
    /* Remove top padding */
}

/* Ensure calendar legend is aligned correctly and compact */
.calendar-legend span {
    margin: 0 1rem;
    /* Add some spacing between the labels */
}

.dropdown-menu li {
    position: relative;
}

.dropdown-menu .dropdown-submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: -7px;
}

.dropdown-menu .dropdown-submenu-left {
    /* right: 100%; */
    /* left: auto; */
}

.dropdown-menu>li:hover>.dropdown-submenu {
    display: block;
}

/* Mobile View: Force right-aligned dropdown */
@media (max-width: 991.98px) {
    .dropdown-menu-end[data-bs-popper] {
        right: 0
            /* rtl:ignore */
        ;
        left: -10px
            /* rtl:ignore */
            !important;
        overflow: auto;
    }

    .dropdown-menu {
        position: absolute;
        z-index: 1000;
        display: none;
        min-width: 10rem !important;
        padding: .5rem 0;
        margin: 0;
        font-size: 1rem;
        color: #444;
        text-align: left;
        list-style: none;
        background-color: #fff;
        background-clip: padding-box;
        border: 1px solid rgba(0, 0, 0, .15);
        border-radius: 0px
    }
}

@media (max-width: 576px) {
    .dropdown-menu-end[data-bs-popper] {
        right: 0
            /* rtl:ignore */
        ;
        left: -10px
            /* rtl:ignore */
            !important;
        overflow: auto;
    }

    .dropdown-menu {
        position: absolute;
        z-index: 1000;
        display: none;
        min-width: 10rem !important;
        padding: .5rem 0;
        margin: 0;
        font-size: 1rem;
        color: #444;
        text-align: left;
        list-style: none;
        background-color: #fff;
        background-clip: padding-box;
        border: 1px solid rgba(0, 0, 0, .15);
        border-radius: 0px
    }
}

@media (max-width: 375px) {
    .head_icons {
        width: 160px !important;
    }
}
html, body {
    max-width: 100%;
    overflow-x: hidden; /* stop page from sliding right */
  }


/* Mobile only (up to 767px wide) */
@media (max-width: 767px) {
    html, body {
      max-width: 100%;
      overflow-x: hidden; /* stop page from sliding right */
    }
  
    .dropdown-menu {
      position: absolute;
      z-index: 1000;
      display: none;
      width: 100% !important;
      /* min-width: unset !important; */
     
      padding: .5rem 0;
      margin: 0;
      font-size: 1rem;
      color: #444;
      background-color: #fff;
      border: 1px solid rgba(0, 0, 0, .15);
      border-radius: 0;
    }
  }
  


.cj_div {
    /* background: linear-gradient(180deg, #b69595 0%, #946b81 100%); */
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    width: 100%;
    max-width: 400px;
    /* increased from 260px */
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
/* Vivo V19 / small mobile screen (≈360px wide) */
@media (max-width: 360px) {
    .navbar-toggler {
      padding: 0.35rem 0.65rem;   /* smaller padding */
      font-size: 1rem;            /* adjust icon/text size */
      border-radius: 4px;         /* nice rounded look */
      /* example: blue background */
      color: #fff;                /* white icon */
    }
  
    .navbar-toggler:focus {
      outline: none;
      /* box-shadow: 0 0 0 2px rgba(0,123,255,.5); */
    }
  }
  
.cj_div_round {
    width: 150px;
    height: 150px;
    margin: 0 auto 15px;
    border-radius: 50%;
    background: linear-gradient(135deg, #d4af37, #f8e473);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.cj_image{
    width:100%; height:120%; object-fit:cover; border-radius:50%; border:3px solid #fff;
}

.cj_div_p{
    font-size:18px; font-weight:700; margin-bottom:30px; color:#5a2d2d;
}

.cj_div_h2{
    font-size:16px; font-weight:700; color:#333; margin:8px 8px; padding-top:15px;
}

.cj_div_p2{
    font-size:14px; font-weight:500; color:#e7e6e1; margin:5px 0;
}

.working_saturday_box{
    background-color: #d1ecf1; width:16px; height:16px; display:inline-block; border:1px solid #ccc;
}

.weekend_box{
    background-color: rgb(240, 188, 188); width:16px; height:16px; display:inline-block; border:1px solid #ccc;
}

.holiday_box{
    background-color: rgb(208, 236, 201); width:16px; height:16px; display:inline-block; border:1px solid #ccc;
}

.cj_div_container{
    display:flex; justify-content:center;
}

.cj_name_a{
    text-decoration:none; color:inherit; display:block;
}

.theme_box_1{
    width: 20px; height: 20px; display: inline-block; border: 1px solid #ccc; background-color: #bf9456;
}

.theme_box_2{
    width: 20px; height: 20px; display: inline-block; border: 1px solid #ccc; background-color: #86A39F;
}

.theme_box_3{
    width: 20px; height: 20px; display: inline-block; border: 1px solid #ccc; background-color: #AA81A0;
}

.theme_box_4{
    width: 20px; height: 20px; display: inline-block; border: 1px solid #ccc; background-color:rgb(157, 155, 224);
}

.theme_box_5{
    width: 20px; height: 20px; display: inline-block; border: 1px solid #ccc; background-color: rgb(10, 120, 139);
}

.theme_box_6{
    width: 20px; height: 20px; display: inline-block; border: 1px solid #ccc; background-color: #fbaaca;
}

.theme_box_7{
    width: 20px; height: 20px; display: inline-block; border: 1px solid #ccc; background-color:rgb(97, 128, 122);
}

.theme_box_8{
    width: 20px; height: 20px; display: inline-block; border: 1px solid #ccc; background-color:rgb(233, 129, 129);
}

.theme_box_9{
    width: 20px; height: 20px; display: inline-block; border: 1px solid #ccc; background-color:#AF3D48;
}

.theme_box_10{
    width: 20px; height: 20px; display: inline-block; border: 1px solid #ccc; background-color:rgb(231 141 52);
}

.loader{
    width: 3rem; height: 3rem;
}

.judge_modal_image{
    max-width:200px;border:2px solid black;
}

.judge_modal_desc{
    max-height:70vh; overflow-y:auto; text-align:justify; text-align:justify; padding:10px;
}

