body {
    padding-top: 80px; 
    font-family: 'Segoe UI', sans-serif;
    background-color: #f9f9f9;
    margin: 0;
    padding: 20px;
    text-align: center;
}

.header-image img {
    max-width: 270px;
    margin: 30px auto 20px;
    display: block;
}

h1 {
    color: #333;
    margin-bottom: 40px;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px 20px;
    width: 280px;
    box-shadow: 0 0 10px rgba(0,0,0,0.08);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 91, 187, 0.2); /* subtle blue glow */
}


.card-img {
    width: 90px;
    height: auto;
    box-shadow: none;
    border-radius: 0;
    margin-bottom: 15px;
}

.card h2 {
    font-size: 20px;
    margin: 10px 0;
    color: #444;
}

.card p {
    font-size: 14px;
    color: #777;
    margin-bottom: 20px;
}

button {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #f58025;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

button:hover {
    background-color: #d86c1f;
}
.card-link {
    display: inline-block;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #f58025;
    border: none;
    color: white;
    border-radius: 5px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
}

.card-link:hover {
    background-color: #d86c1f;
}
.nav-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 40px;
    padding-bottom: 20px;
}

.nav-button {
    padding: 10px 20px;
    background-color: #ccc;
    color: #333;
    font-size: 14px;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background-color 0.3s ease;
}

.nav-button:hover {
    background-color: #bbb;
}
.tile-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.tile-link h2,
.tile-link p {
  text-decoration: none !important;
  color: inherit !important;
}


/* Optional: On hover, keep things clean */
.tile-link:hover h2,
.tile-link:hover p {
    text-decoration: none;
    color: inherit;
}
.nav-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
    text-align: right;
  }
  
  .menu-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  
  .menu-toggle:hover,
.menu-toggle:focus {
  background: none;
  outline: none;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.15); /* subtle shadow */
  border-radius: 4px;
}
.nav-menu {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1000;
  }
  
  .menu-panel {
    position: absolute;
    right: 0;
    top: 50px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    min-width: 260px; /* was 220px */
    padding: 10px 0;
    animation: fadeIn 0.2s ease-in-out;
    border: 1px solid rgba(200,200,200,0.3);
  }
 
  .menu-panel a {
    padding: 12px 20px;
    text-decoration: none;
    color: #333;
    font-size: 15px;
    transition: background 0.2s ease;
  }
  
  .menu-panel a:hover {
    background: rgba(245, 128, 37, 0.1);
    color: #f58025;
  }
  
  .menu-panel.show {
    display: flex;
  }
  
  /* Animation for smooth appearance */
  @keyframes fadeIn {
    from {
      opacity: 0;
      transform: scale(0.95);
    }
    to {
      opacity: 1;
      transform: scale(1);
    }
  }
  
  /* Responsive behavior */
  @media (max-width: 600px) {
    .nav-menu {
        position: fixed;         /* ⬅️ fixed instead of absolute */
        top: 20px;
        right: 20px;
        z-index: 1000;
        text-align: right;
      }
      
  
    .menu-panel {
      top: 45px;
      right: 0;
      width: auto;
      min-width: 180px;
    }
  }
  .menu-toggle .bar {
    position: absolute;
    width: 30px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: 0.3s ease;
  }
  
  .menu-toggle .bar:nth-child(1) {
    top: 10px;
  }
  
  .menu-toggle .bar:nth-child(2) {
    top: 20px;
  }
  
  .menu-toggle .bar:nth-child(3) {
    top: 30px;
  }
  
  .menu-toggle.open .bar:nth-child(1) {
    transform: rotate(45deg);
    top: 20px;
  }
  
  .menu-toggle.open .bar:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle.open .bar:nth-child(3) {
    transform: rotate(-45deg);
    top: 20px;
  }
  .area-selector {
    margin-bottom: 20px;
    font-size: 16px;
  }
  
  .area-selector select {
    padding: 6px 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
  }
  #page-classic-won .card {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    display: none;
  }
  
  #page-classic-won .card.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
  }
  form {
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin-top: 30px;
  }
  
  form label {
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
    color: #333;
  }
  
  form input[type="text"],
  form select,
  form input[type="file"] {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 15px;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }
  
  form input:focus,
  form select:focus {
    outline: none;
    border-color: #f58025;
    box-shadow: 0 0 4px rgba(245, 128, 37, 0.3);
  }
  .admin-form {
    max-width: 600px;
    margin: auto;
    text-align: left;
  }
  /* Admin Panel Styling */
.admin-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 30px 20px;
  text-align: center;
}

.button-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 25px 0;
}

.admin-button {
  background-color: #444;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.admin-button:hover {
  background-color: #222;
}

@media (max-width: 600px) {
  .button-group {
    flex-direction: column;
    align-items: center;
  }

  .admin-button {
    width: 100%;
    max-width: 300px;
  }
}
/* ===== Notice Case Styling ===== */

.notice-board {
  border: 10px solid red;
  padding: 20px;
  background-color: #f0f0f0;
  margin: 20px auto;
  max-width: 1200px;
}

.notice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 20px;
}

.notice-tile {
  background-color: #d1d1d1;
  color: #000;
  padding: 15px;
  text-align: center;
  font-weight: bold;
  border: 2px solid #999;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.notice-tile:hover {
  transform: scale(1.02);
  box-shadow: 4px 4px 12px rgba(0,0,0,0.2);
}

/* ===== Modal Viewer ===== */
.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.8);
}

.modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 0;
  border: 1px solid #888;
  width: 90%;
  max-width: 900px;
  box-shadow: 0 0 15px rgba(0,0,0,0.5);
}

.close {
  color: #000;
  float: right;
  font-size: 28px;
  font-weight: bold;
  margin: 10px;
  cursor: pointer;
}
input[type="date"] {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  width: 100%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: border 0.2s ease-in-out;
}

input[type="date"]:focus {
  border-color: #e86e05;
  outline: none;
}
/* ===== Admin Page Tile Styling ===== */
/* Admin dashboard – modern buttons */
.admin-actions{
  max-width: 1000px;
  margin: 28px auto 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  padding: 0 12px;
}

.action-btn{
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 14px;
  text-decoration: none;
  color: #1f2937;                 /* slate-800 */
  font-weight: 600;
  background: linear-gradient(180deg,#ffffff,#f6f7f9);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.06),
    0 8px 18px rgba(0,0,0,0.06);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}

.action-btn:hover{
  transform: translateY(-2px);
  box-shadow:
    0 3px 8px rgba(0,0,0,0.10),
    0 14px 28px rgba(0,0,0,0.10);
  border-color: rgba(0,0,0,0.12);
}

.action-btn:active{
  transform: translateY(0);
  box-shadow:
    inset 0 2px 6px rgba(0,0,0,0.08);
}

.action-btn .icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: #eef4ff;
  border: 1px solid rgba(0, 91, 187, 0.12);
  font-size: 20px;               /* emoji size */
}

.action-btn.destructive .icon{
  background: #fff0f0;
  border-color: rgba(220,53,69,0.20);
}

.action-btn .label{
  line-height: 1.2;
}

/* Make admin buttons full-width on small screens */
@media (max-width: 520px){
  .action-btn{ padding: 14px 16px; }
  .action-btn .icon{ width: 38px; height: 38px; font-size: 19px; }
}
