/* Importing fonts */
@font-face {
  font-family: 'PlayfairDisplay-Black';
  src: url('../fonts/playfairDisplay/PlayfairDisplay-Black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
}
@font-face {
  font-family: 'PlayfairDisplay-BlackItalic';
  src: url('../fonts/playfairDisplay/PlayfairDisplay-BlackItalic.ttf') format('truetype');
  font-weight: 900;
  font-style: italic;
}
@font-face {
  font-family: 'PlayfairDisplay-Bold';
  src: url('../fonts/playfairDisplay/PlayfairDisplay-Bold.ttf') format('truetype');
  font-weight: bold;
  font-style: normal;
}
@font-face {
  font-family: 'PlayfairDisplay-BoldItalic';
  src: url('../fonts/playfairDisplay/PlayfairDisplay-BoldItalic.ttf') format('truetype');
  font-weight: bold;
  font-style: italic;
}
@font-face {
  font-family: 'PlayfairDisplay-Italic';
  src: url('../fonts/playfairDisplay/PlayfairDisplay-Italic.ttf') format('truetype');
  font-weight: normal;
  font-style: italic;
}
@font-face {
  font-family: 'PlayfairDisplay-Regular';
  src: url('../fonts/playfairDisplay/PlayfairDisplay-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'PlayfairDisplay-Regular';
  src: url('../fonts/playfairDisplay/PlayfairDisplay-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'montserratBold';
  src: url('../fonts/montserrat/Montserrat-Bold.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}
@font-face {
  font-family: 'montserratRegular';
  src: url('../fonts/montserrat/Montserrat-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

/* CSS for default html tags */
html {
  font-size: 0.8125rem;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background-color: #1c1b22;
}
body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #ffffff;
  font-family: 'montserratRegular';
  overflow-x: hidden;
  background-color: #1c1b22;
}
div {
  border-radius: 0.75rem;
  gap: 0.625rem;
}
button {
  all: unset;
  cursor: pointer;
  border-radius: 9.75rem;;
}
a {
  all: unset;
  color: #da744b;
  cursor: pointer;
}
textarea {
  all: unset;
  border-radius: 0.75rem;
}
input {
  all: unset;
  border-radius: 0.75rem;
  padding: 5px;
}
select {
  all: unset;
  border-radius: 0.75rem;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
label {
    vertical-align: middle;
    cursor: pointer;
    display: flex;
    align-items: center;
    height: 100%;
}
/* Chrome, Edge, Safari (WebKit/Blink) */
input:-webkit-autofill,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-box-shadow: 0 0 0px 1000px #1c1b22 inset !important;
  -webkit-text-fill-color: #fff !important;
  transition: background-color 9999s ease-in-out 0s; /* prevent flicker */
}

/* Firefox */
input:autofill,
textarea:autofill,
select:autofill {
  box-shadow: 0 0 0px 1000px #1c1b22 inset !important;
  -moz-text-fill-color: #fff !important;
}
::-webkit-scrollbar {
  width: 1px;
  height: 1px;
}
::-webkit-scrollbar-track {
  background: #1c1b22;
}
::-webkit-scrollbar-thumb {
  background: #2b2a33;
}
/*For Firefox*/
* {
  scrollbar-width: thin;
  scrollbar-color: #2b2a33 #1c1b22;
}
/* Chrome, Edge, Safari */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  background: gold;   /* set your color */
  border-radius: 4px; /* optional */
}

/* Firefox */
input[type=number] {
  -moz-appearance: textfield; /* removes arrows entirely */
}

/* To style in Firefox, you'd need a custom UI, since spin buttons aren't directly stylable */
/* CSS for custom classes */
.content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 58.88px 0.625rem 25px 0.625rem;
}

/*--CSS for navbar */
.navbar {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  background-color: #1c1b22;
  width: 100%;
  height: 3.125rem;
  position: fixed;
  top: 0;
  padding-top: 0.625rem;
  padding-bottom: 0.625rem;
  border-radius: 0;
  border-bottom: 0.1875rem solid #daa74b;
  z-index: 9999;
}
.logo-pageHeader {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: fit-content;
  height: 100%;
}
.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  cursor: pointer;
}
.logo img{
  height: 3rem;
  transition: transform 0.3s ease;
}
.logo img:hover {
  transform: rotate(-0deg); /* rotate anticlockwise */
}
.pageHeader p{
  font-size: 2.875rem;
  color: #daa74b;
}
.options {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
  width: fit-content;
}
.nobiPoints {
  display: flex;
  flex-direction: row;
  height: 100%;
  cursor: pointer;
  gap: 0.125rem;
  padding: 0rem 0.3125rem;
  border: 0.125rem solid #daa74b; 
}
.nobiLogo {
  height: 100%;
  width: fit-content;
}
.nobiLogo img{
  height: 100%;
}
.nobiAmount {
  font-size: 2.875rem;
  height: 100%;
  display: flex;
  align-items: center;
}
.nobiAmount:hover {
  color: rgb(28, 243, 28);
}
.nobiAmount p{
  margin: 0;
}
.notificationDropDown {
  height: 100%;
  width: fit-content;
  cursor: pointer;
}
.notificationDropDown img {
  height: 100%;
  display: inline-block;
  transition: transform 0.2s ease;
}
.notificationDropDown img:hover {
  animation: bell-shake 0.6s ease-in-out;
}
@keyframes bell-shake {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(-30deg); } /* tilt left (10 o'clock) */
  40%  { transform: rotate(30deg); }  /* tilt right (2 o'clock) */
  60%  { transform: rotate(-15deg); } /* smaller tilt left */
  80%  { transform: rotate(15deg); }  /* smaller tilt right */
  100% { transform: rotate(0deg); }   /* back to normal */
}
.userProfile {
  height: 100%;
  width: fit-content;
  overflow: hidden;
  cursor: pointer;
  border: 0.125rem solid #daa74b;
  border-radius: 12px;
}
.userProfile img {
  height: 100%;
}
/* CSS for Side Menu */
.navDropDown {
  height: 100%;
  width: fit-content;
  cursor: pointer;
}
.navDropDown img {
  height: 100%;
}

/* Side menu */
.sideMenu {
  position: fixed;
  top: 0;
  right: -18.75rem; /* hidden off-screen */
  width: 16.25rem;
  height: 100%;
  background: #1c1b22;
  border-left: 0.125rem solid #daa74b;
  box-shadow: -0.25rem 0 0.625rem rgba(0,0,0,0.2);
  transition: right 0.3s ease;
  padding: 1.25rem 0;
  z-index: 2500;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 20px;
}
.sideMenu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sideMenu li {
  padding: 0.875rem 8px;
  font-size: 0.9375rem;
  color: #daa74b;
  cursor: pointer;
}
.summarySubTopics li {
  border-radius: 12px;
  position: relative;
  font-size: 0.9375rem;
  color: #ffffff;
  cursor: pointer;
}
.summarySubTopics li:hover{
  background: #daa74b !important;
}
.sideMenu li:hover{
  background: #2b2a33;
}
.sidemenuBtns {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: fit-content;
  justify-content: center;
  align-items: center;
}
.logoutBtn {
  width: 90%;
  background: #daa74b;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border-radius: 12px;
  color: #ffffff;
}
.staffPanelBTN {
  width: 90%;
  background: #f52424;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
}
.teacherPanelBTN {
  width: 90%;
  background: #da4b4b;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: #ffffff;
}
/* Active (visible) state */
.sideMenu.active {
  right: 0;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 2000;
}
.overlay.active {
  opacity: 1;
  pointer-events: all;
}
.sideMenuContainer {
  height: 100%;
}

/* ----------- Custom Summary Styles ----------- */

/* Remove default arrow */
summary::-webkit-details-marker {
  display: none;
}
summary::marker {
  content: none;
}

/* Make summary row flex */
.summaryDivider {
  display: flex;
  align-items: center;
  cursor: pointer;
}

/* Logo in summary */
.summaryDivider > div:first-child img {
  width: 20px;
  height: 20px;
  margin-right: 8px;
}

/* Custom arrow (right side) */
.summaryDivider::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-left: auto;
  background: url("icons/summaryArrowRight.png") no-repeat center center;
  background-size: contain;
}

/* Arrow rotates when open */
details[open] > summary.summaryDivider::after {
  background-image: url("icons/summaryArrowDown.png");
}
/* CSS for footer */
.footer {
    padding-top: 0;
    padding-bottom: 20px;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
}
.footer p{
    margin: 0;
    
}
.neafooter {
    display: flex;
    flex-direction: row;
}
.neafooterLogo img{
    height: 25px;
}
.neafooteracademy {
    height: 100%;
    display: flex;
    align-items: center;
    color: #daa74b;
}
.social {
    display: flex;
    flex-direction: row;
    font-size: 17px;
    align-items: center;
    gap: 2px;
    cursor: pointer;
}
.social p{
    margin: 0;
}
.socialLogo {
    display: flex;
    height: 100%;
    align-items: center;
}
.socialLogo img {
    height: 30px;
    width: 30px;
}
.footerDetails {
    height: 25px;
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;

}
.neafooter {
    height: 100%;
}
.footerText {
    width: 100%;
    display: flex;
    flex-direction: column;
}
.footercompany {
    font-size: 10px;
}
.footerNav {
    height: 100%;
    display: flex;
    align-items: center;
}
/*CSS for footer*/
.footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.aboutUs {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}
.aboutText {
    display: flex;
    flex-direction: column;
    flex: 1;
    max-width: 45%;
}
.aboutText p{
    margin: 0;
}
.aboutP {
    font-size: 13px;
}
.aboutLinks {
    display: flex;
    flex-direction: row;
    width: fit-content;
    height: 100%;
    justify-content: space-between;
}
.nav a{
    all: unset;
}
/* CSS for news widget */
#news-widget {
  width: 340px;
  height: 196px;
  position: relative;
  overflow: hidden;
  border: 2px solid #daa74b;
  border-radius: 8px;
}

.news-buttons {
  position: absolute;
  top: 5px;
  right: 5px;
  z-index: 5;
}

.news-buttons button {
  background: #daa74b;
  color: #000;
  border: none;
  padding: 3px 8px;
  margin-left: 5px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.news-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}

.news-slide.active {
  opacity: 1;
}

.news-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  padding: 10px;
  box-sizing: border-box;
}

.news-title {
  font-weight: bold;
  font-size: 14px;
  text-decoration: none;
  color: #fff;
}

.news-desc {
  font-size: 12px;
  margin-top: 5px;
}

.loading,
.no-news,
.error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  font-size: 14px;
}
/* For display none, unless active by js */
.hidden {
  display: none;
}
/* [SECTION: mobile] */
@media (max-width: 768px){
  .navbar{
    height: 2.125rem;
  }
  .pageHeader {
    display: none;
  }
  .nobiAmount p{
    font-size: 24px;
  }
  .sidemenuBtns {
    margin-bottom: 40px;
  }
  .footerDetails > :nth-child(2) {
    display: none;
  }
}