/* General reset and font */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
 
}

body {
  margin: 0;
  font-family: sans-serif;
  background-color: #fafafa;
  background-image: 
    linear-gradient(#e0e0e0 1px, transparent 1px), 
    linear-gradient(90deg, #e0e0e0 1px, transparent 1px);
  background-size: 40px 40px; /* grid spacing */
}
body::before {
  content: "";
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url("doodle1.png") 10% 20% no-repeat,
              url("doodle2.png") 80% 10% no-repeat,
              url("doodle3.png") 50% 80% no-repeat,
              ;
  background-size: 120px, 100px, 150px;
  opacity: 0.3; /* faint doodles */
  pointer-events: none; /* don’t block clicks */
  z-index: -1; /* stays behind everything */
}

/* Remove old header image rules if present */
.header img { display: none; }

/* Header bar stays as you had it, tweak if you like */
.header {
  text-align: left;
  
  padding: 24px 16px;
}

/* Stylish handwritten logo text */
.brand {
  font-family: "Nanum Pen Script", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: clamp(44px, 8vw, 96px);   /* responsive */
  line-height: 1;
  color: #5aa9ff;                      /* calm blue */
  text-decoration: none;
  letter-spacing: 1px;
  display: inline-block;
  background: transparent;
  
  /* subtle depth so it reads on dark gradients */

  
  /* optional soft stroke for contrast on busy backgrounds */
  -webkit-text-stroke: 0.6px rgba(255,255,255,0.25);
}

/* gentle hover pop (kept minimal) */
.brand:hover {
  transform: translateY(-1px);
  transition: transform 0.2s ease;
}
avbar container */
.navbar {
  position: absolute;   /* pin to the corner */
  top: 20px;
  right: 30px;
  display: flex;
  gap: 15px;
  background: transparent; /* no dark strip */
}

/* Navbar container */
.navbar {
  position: absolute;
  top: 20px;
  right: 30px;
  display: flex;
  gap: 10px;
  background: transparent;
}

/* Navbar links */
.navbar a {
  position: relative;
  display: inline-block;
  padding: 6px 14px; /* smaller size */
  border-radius: 20px;
  font-size: 14px; /* smaller text */
  font-weight: 600;
  color: #080808;  
  text-decoration: none;
  border: 2px solid #000000;  
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
  transition: 
    color 0.4s ease,
    border-color 0.4s ease,
    transform 0.3s ease,
    background 0.4s ease;
}

/* white swipe effect */
.navbar a::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.6);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
}

/* Hover effect */
.navbar a:hover::before {
  left: 100%;
}

.navbar a:hover {
  transform: scale(1.08);
  color: #000; /* text turns black */
  border-color: #000; /* border changes too */
  background: rgba(255, 255, 255, 0.6);
}

/* Buttons on index */
.menu-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.menu-buttons a {
  background: linear-gradient(90deg, #0e42c5, #7b2cff, #000000, #7b2cff, #0e42c5);
  background-size: 200% 100%;
  background-position: left center;
  margin: 10px;
  padding: 20px 30px;
  border-radius: 8px;
  color: white;
  text-decoration: none;
  font-size: 18px;
  transition: background-position 0.8s ease, transform 0.2s ease;
}

.menu-buttons a:hover {
  background-position: right center;
  transform: scale(1.1);
}

/* Tables */
table {
  width: 90%;
  margin: 30px auto;
  border-collapse: collapse;
}

th, td {
  padding: 12px;
  border: 1px solid #000000;
  text-align: center;
}

th {
  background-color: #0d8b28;
  color: white;
}
td{
    background-color: rgb(244, 245, 235);
}
tr:nth-child(even) {
  background-color: #f2f2f2;
}

/* Add row button */
.add-row-btn {
  display: block;
  margin: 20px auto;
  padding: 10px 15px;
  background-color: #0d8b28;
  border: none;
  color: white;
  cursor: pointer;
  border-radius: 5px;
}

.add-row-btn:hover {
  background-color: #00aacc;
}
.section-title {
  display: block;            /* make it block so we can center */
  margin: 30px auto;         /* auto centers it horizontally */
  padding: 10px 25px;
  border-radius: 25px;
  color: white;
  font-size: 24px;
  font-weight: bold;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  cursor: default;
  width: fit-content;        /* keeps it only as wide as its text */
}


.section-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.4);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
}

.section-title:hover::before {
  left: 100%;
}

.upcoming {
  background-color: #28a745; /* Aesthetic green */
}

.ended {
  background-color: #dc3545; /* Aesthetic red */
}
  #examTable2 th { 
    background-color: #dc3545;  /* nice red */
    color: white; 
  }