@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root {
  --bg-gradient-start: #f0ffe8;
  --bg-gradient-end: #d3e6ff;
  --primary-color: #111;
  --accent-color: #00bcd4;
  --card-bg: rgba(255, 255, 255, 0.95);
  --shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  --border-radius: 16px;
  --font-default: 'Poppins', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-default);
  background: #f9f9f9;
  color: var(--primary-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

header {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--bg-gradient-start), var(--bg-gradient-end));
  position: relative;
  border-bottom: 4px solid var(--accent-color);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

header .logo {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  max-height: 240px;
  width: auto;
  z-index: 2;
}

.main-layout {
  flex: 1;
  display: flex;
  flex-direction: row;
}

nav {
  width: 200px;
  background: var(--card-bg);
  border-right: 4px solid var(--accent-color);
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
}

nav a {
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--primary-color);
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  box-shadow: 2px 2px 0 #666;
  text-align: center;
  width: 100%;
}

nav a:hover {
  background: var(--accent-color);
  transform: scale(1.05);
  box-shadow: 2px 2px 0 #222;
}

nav a.active {
  background-color: var(--accent-color);
  color: white;
  box-shadow: inset 0 0 4px #222;
}

main {
  flex: 1;
  padding: 3rem 2rem;
  background: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
}

main h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-color);
  margin: 1rem 0;
}

main ul {
  padding-left: 1rem;
  margin-bottom: 2rem;
}

/* ==== CAMP CARD LAYOUT ==== */

.camp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.camp-card {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.camp-card h3 {
  margin-top: 0;
  font-size: 1.25rem;
  color: var(--primary-color);
}

/* ==== Enroll Button as Registration Date ==== */

.enroll-button {
  margin-top: auto;
  display: inline-block;
  background-color: var(--accent-color);
  color: white;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.2s ease;
}

.enroll-button:hover:not(.inactive) {
  background-color: #009fb5;
}

.enroll-button.inactive {
  background-color: #ccc;
  color: #666;
  cursor: not-allowed;
  pointer-events: none;
  transition: none;
}

/* ==== FORM STYLING ==== */

form {
  margin-top: 2rem;
  max-width: 700px;
}

form label {
  font-weight: 500;
  display: block;
  margin-bottom: 0.5rem;
}

input[type="text"],
input[type="tel"],
input[type="email"],
textarea,
select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 2px solid #ccc;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-family: var(--font-default);
}

textarea {
  resize: vertical;
}

.checkbox-inline {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
  width: 100%;
  word-break: normal;
  white-space: normal;
  overflow-wrap: break-word;
  margin-bottom: 1rem;
}

form button {
  background-color: var(--accent-color);
  border: none;
  color: white;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-family: var(--font-default);
  cursor: pointer;
  transition: background-color 0.2s ease;
  display: block;
  margin-top: 1rem;
}

form button:hover {
  background-color: #00a2bb;
}

hr {
  border: none;
  border-top: 1px solid #ddd;
  margin: 1.5rem 0;
}

.checkbox-group,
.checkbox-column {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
  width: 100%;
}

.checkbox-group label,
.checkbox-column label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 1rem;
  line-height: 1.4;
  width: 100%;
  word-break: normal;
  white-space: normal;
  overflow-wrap: break-word;
}

/* ==== FOOTER ==== */

footer {
  width: 100%;
  padding: 1.5rem;
  font-size: 0.9rem;
  background: var(--primary-color);
  color: #fff;
  text-align: center;
}

footer .social-buttons {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

footer .social-buttons a {
  width: 56px;
  height: 56px;
  display: inline-block;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  filter: contrast(1.2) drop-shadow(2px 2px 0 #000);
  transition: transform 0.2s ease;
}

footer .social-buttons a:hover {
  transform: scale(1.15);
}

.curriculum-grid .camp-card ul {
  padding-left: 1.2rem;
  margin: 1rem 0 0;
  list-style-type: disc;
}

.curriculum-grid .camp-card li {
  margin-bottom: 0.4rem;
}
