* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
:root{
  --text-color:#1a6194;
  --hover-text:#1a6194;
  --hover-background:#1a6194;
  --body-background:rgb(223, 225, 223);
  --background: #fff;
  --border:black;
  --trans-gray:rgba(128,128,128,0.45);

}

body {
  width: 100%;
  display: grid;
  justify-content: center;
  align-items: center;
  gap:10px;
  padding: 10px 5px;
  background-color: var(--body-background);
}
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--background);
  min-width: 220px;
  z-index: 1000;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-menu ul li:hover .sub-menu {
  display: block;
}
@media (min-width:"300px") and (max-width:"720px"){
  .nav{
    flex-direction:column;
    
  }
}
.nav {
  width: 98%;
  height: 150px;
  margin: auto;
  padding: 0 10px;
  background-color: var(--background);
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;

}
.nav-info{
  position: absolute;
  top: 100px;
  right: 200px;
  padding: 10px;
}
.nav-info marquee{
  font-size: 20px;
  font-weight: bold;
  color: rgb(5, 175, 243) 
}
.sp{
  text-decoration: none;
  font-weight: bold;
  color:red;
}
.nav img {
  height: 100px;
}

.header-menu {
  width: 98%;
  box-shadow: 5px 5px 20px black;
  background-color: var(--hover-background);
  position: relative;
  margin: auto;
}

.header-menu ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
}

.header-menu ul li {
  position: relative;
}

.header-menu ul li a {
  text-decoration: none;
  color: var(--background);
  font-size: 15px;
  padding: 10px 13px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.header-menu ul li a:hover {
  background-color:var(--background);
  border-radius: 3px;
  color: var(--hover-background);
}

.active a {
  font-weight: bold;
}

.down {
  margin-left: 3px;
  font-size: 10px;
}

/* Sub-menu (second level) */
.sub-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--background);
  z-index: 1000;
  min-width: 220px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-menu ul li:hover .sub-menu {
  display: block;
}

.sub-menu ul {
  display: flex;
  flex-direction: column;
}

.sub-menu ul li {
  border-bottom: 0.1px solid var(--background);
  position: relative;
}

.sub-menu ul li a {
  color: var(--text-color);
  padding: 8px;
  display: block;
}

.sub-menu ul li a:hover {
  background-color:var(--hover-background);
  color: var(--background);
}

.super-sub {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  background-color: var(--hover-background);
  min-width: 200px;
  z-index: 1001;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.sub-menu li:hover .super-sub {
  display: block;
}

.super-sub ul {
  display: flex;
  flex-direction: column;
}

.super-sub ul li a {
  color: var(--hover-background);
  padding: 8px;
  display: block;
}

.super-sub ul li a:hover {
  background-color:var(--hover-text);
  color: var(--background);
}

/* Main Menu */
.main_menu{
  width: 98%;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 2fr 2fr;
  gap:10px;
}
.menu_taps{
  display: flex;
  flex-direction: column;
  gap: 20px;

}
.exam_dash h4,.right h4{
  border-left:5px solid var(--hover-background);
  padding:10px;
  background-color:var(--background);
  font-size: 17px;
  color: var(--hover-text);
  cursor: pointer;
}
.edit{ margin-left: 10px;}
.exam_dash h4 span,.links h4 span,.right h4 span{
  margin-right:10px;
}
.exam_dash h4:hover ,.right h4:hover{
  background-color:var(--hover-background);
  color: var(--background);
  cursor: pointer;
}
.links{
  color: var(--hover-background);
  background-color: var(--background);
  padding: 10px 0px 20px 10px;
}
.days{color:var(--hover-background)}
.link,.update_info{
  color: var(--hover-background);
}
.links h4,.update_info h4{
  color: var(--hover-text);
  padding: 10px 10px;
  font-size: 15px;
  font-weight: bold;
  cursor: pointer;
  color:black;
}
.links h4 span,.update_info h4 span{
  margin-right: 10px;
}
.links ul li{
  list-style: none;
  padding: 10px 0px 10px 10px;
  margin: 0;
  border-bottom: 0.1px solid rgba(0, 123, 255, 0.3);
}
.links ul{
  cursor: pointer;
  font-size: 14px;  
}
.links ul li:hover{
  background-color: var(--hover-background);
  color:var(--background);
  font-weight: bold;
}
.links ul li:last-child{
  border-bottom: none;
}

.updates {
  position: relative;
  width: 600px;
  height: 350px;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.slides {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 1s ease-in-out;
}

.slide {
  min-width: 100%;
  position: relative;
}

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

.caption {
  position: absolute;
  bottom: 20px;
  right: 5%;
  width: 90%;
  border-radius: 10px;
  margin: auto;
  background: var(--hover-background);
  color: var(--background);
  text-align: center;
  padding: 8px 10px;
  font-size: 16px;
  text-align: left;
}

.slide_icon {
  position: absolute;
  width: 100%;
  height: 40px;
  bottom:26px;
  transform: translateX(86%);
  display: flex;
  align-items:center;
  gap:25px;
  padding: 0 15px;
  color: white;
  background: var(--trans-gray);
  font-size: 22px;
  cursor: pointer;
  z-index: 10;
}

.slide_icon i:hover {
  color: #007bff;
}

.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: rgba(255,255,255,0.3);
}

.progress {
  height: 6px;
  width: 0%;
  background: #007bff;
  transition: width linear;
}


.announcements{
  display: flex;
  flex-direction: column;
  gap: 20px;
}


.whats-new {
  width: 100%;
  height:290px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.whats-new h3 {
  font-size: 18px;
  color: #003366;
  border-bottom: 2px solid #003366;
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.scroll-box {
  height: 230px;
  overflow: hidden;
  position: relative;
}

.scroll-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  width: 100%;
}

.scroll-box li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: #333;
  transition: color 0.3s ease;
  cursor: pointer;
}

.scroll-box li:hover {
  color: #007bff;
}

.date {
  background: var(--hover-background);
  color: #fff;
  font-size: 12px;
  font-weight: bold;
  border-radius: 3px;
  padding: 5px 5px 10px 5px;
  text-align: center;
  line-height: 1.2;
  min-width: 40px;
}
#date{
  width: 50px;
  height: 20px;
  text-align: center;
  font-size: 14px;
  font-weight: bold;

}

.footer {
  background-color: #f4f6f9;
  padding: 20px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  flex: 1;
}

.footer-left, .footer-right {
  flex: 1;
}

.candidate-corner {
  font-size: 18px;
  font-weight: bold;
  color: #003366;
  margin-bottom: 10px;
}

.footer-links a {
  color: #003366;
  text-decoration: none;
  margin-right: 10px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.footer-right .contact-info {
  font-weight: bold;
  color: #003366;
}

.footer-branding {
  display: flex;
  align-items: center;
  margin-top: 10px;
}

.footer-branding img {
  width: 40px;
  height: 40px;
  margin-left: 10px;
}

.footer-bottom {
  background-color: #003366;
  color: white;
  padding: 10px;
  text-align: center;
}

.footer-bottom span {
  font-size: 12px;
}
.user_operations{
  width: 98%;
  height: 60px;
  margin: auto;
  display: flex;
  justify-content: self-start;
  align-items: center;
  background-color: var(--hover-background);
  gap:20px;
}
.user_operations div{
  color: var(--hover-background);
  background-color: var(--background);
  width: 200px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding:5px 5px; 
  gap:25px;
  cursor: pointer;
  font-size: 14px;
  border-radius: 2px;
}
.user_operations div i{
  font-size: 18px;
}
.user_operations div:first-child{
  margin-left: 10px;
  background-color:var(--hover-background);
  color:var(--background);
  font-size: 15px;
}
footer{
  width: 100%;
  height: 150px;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 2fr 1fr 1fr;
  justify-content: center;
  align-items: start;
  gap:20px;
  background-color: var(--hover-background);
  color: var(--background);
  padding:5px 10px 5px 10px;
}
footer div:nth-child(2) p{
  font-size: 15px;
  line-height: 30px;
}

.last_footer{
  width: 100%;
  height: 40px;
  margin: auto;
  display:flex;
  justify-content: flex-end;
  padding: 10px;

}
.last_footer ol{
  list-style: none;
  display: flex;
  gap:20px;
}
.last_footer ol li{
  cursor: pointer;
  font-size: 14px;
}
.last_footer ol li:hover{
  text-decoration: underline;
}

/* Hover effects for user operations */
.user_operations div:hover {
  background-color: var(--background);
  color: var(--hover-background);
  border:2px dotted black;
  transform: scale(0.98);
}

