* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  min-height: 100vh;
  color: #333;
}

/* ===== HEADER / NAV ===== */
.top-bar {
  background: #111;
  color: #fff;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.site-title {
  font-size: 24px;
  font-weight: 700;
  cursor: pointer;
}

.site-title:hover {
  color: #4dd0e1;
}

.menu-btn {
  background: none;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 8px 10px;
  display: none;
}

nav {
  display: flex;
  gap: 20px;
}

nav a {
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  position: relative;
}

/* Nav underline animation */
nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #4dd0e1;
  transition: width 0.3s ease;
}

nav a:hover::after {
  width: 100%;
}

/* ===== MAIN LAYOUT ===== */
main {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 16px;
}

/* ===== CARD STYLE ===== */
.card {
  background: #ffffff;
  padding: 28px;
  border-radius: 14px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  margin-bottom: 30px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px rgba(0, 0, 0, 0.25);
}

.hidden {
  display: none;
}

h2, h3, h4 {
  margin-bottom: 12px;
  color: #111;
}

p {
  margin-bottom: 16px;
  line-height: 1.6;
}

/* ===== INPUTS & BUTTONS ===== */
input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
}

input:focus {
  outline: none;
  border-color: #4dd0e1;
}

button {
  background: #4dd0e1;
  border: none;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.3s;
}

button:hover {
  background: #26c6da;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
}

button:active {
  transform: scale(0.97);
}

.submit-btn {
  margin-top: 20px;
  width: 100%;
}

/* ===== LINKS ===== */
.link {
  color: #4dd0e1;
  cursor: pointer;
  font-weight: 600;
}

.link:hover {
  text-decoration: underline;
}

/* ===== GALLERY ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 16px 0 24px;
}

.gallery img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  height: 180px;
  transition: transform 0.35s ease;
}

.gallery img:hover {
  transform: scale(1.06);
}

/* ===== MAP ===== */
.map-container {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 300px;
  border: none;
}

/* ===== CALENDAR ===== */
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  margin-top: 20px;
}

.calendar-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.calendar {
  min-width: 560px; 
}

.calendar div {
  background: #f5f5f5;
  padding: 10px;
  text-align: center;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.calendar div:hover {
  background: #e0f7fa;
}

.calendar div:active {
  transform: scale(0.95);
}

/* ===== TABLE (ADMIN) ===== */
#admin {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
  min-width: 600px;
}

th, td {
  padding: 12px;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

th {
  background: #f0f0f0;
  font-weight: 600;
}

td button {
  width: 100%;
  margin: 6px 0;
}

/* ===== LOGOUT BUTTON ===== */
.logout {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ff5252;
  color: white;
  border-radius: 50px;
  padding: 12px 18px;
  font-weight: 600;
}

.logout:hover {
  background: #e53935;
}

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  .menu-btn {
    display: block;
  }

  nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #111;
    flex-direction: column;
    text-align: center;
  }

  nav.show {
    display: flex;
  }

  nav a {
    padding: 14px 0;
  }

  main {
    margin: 20px auto;
  }

  .gallery img {
    height: 150px;
  }

  table {
    min-width: 100%;
  }
}
/* ===== ANIMATED HAMBURGER ===== */

.menu-btn {
  width: 36px;
  height: 28px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-btn span {
  display: block;
  height: 3px;
  width: 100%;
  background: white;
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Animate to X */
.menu-btn.active span:nth-child(1) {
  transform: translateY(12px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.menu-btn.active span:nth-child(3) {
  transform: translateY(-12px) rotate(-45deg);
}

/* ===== MEMBERSHIP TOGGLE ===== */
.membership-btn {
  background: #ccc;
  color: #111;
  font-weight: 700;
  border-radius: 8px;
  padding: 12px 20px;
  transition: background 0.3s ease, transform 0.2s ease;
}

.membership-btn.member {
  background: #ffd600; 
  color: #111;
}

/* Show on mobile */
@media (max-width: 768px) {
  .menu-btn {
    display: flex;
  }
}
