.policies-section {
  background-color: #0a2240;
  color: #e0e6f0;
  padding: 40px 20px;
  min-height: 600px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.policies-Title {
  background: rgba(0, 0, 0, 0.5); /* black, semi-transparent */
    padding: 0.05em 0.3em; /* space around text */
    border-radius: 2em;   /* curved corners */
    display: inline-block; /* shrink wrap around text */
}

.policies-box {
  max-width: 1100px;
  margin: 0 auto;
  background-color: #153360;
  border-radius: 10px;
  padding: 30px 40px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* NEW: Two-column layout */
.policy-layout {
  display: flex;
  gap: 30px;
}

/* Sidebar navigation */
.policy-sidebar {
  width: 220px;
  border-right: 2px solid #1e90ff;
  padding-right: 20px;
}

.policy-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.policy-sidebar li {
  margin-bottom: 15px;
}

.policy-sidebar a {
  display: block;
  color: #a9c8ff;
  text-decoration: none;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 6px;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.policy-sidebar a:hover,
.policy-sidebar a.active {
  background-color: #1e90ff;
  color: #fff;
}

/* Main content */
.policy-content {
  flex: 1;
}

.policy-content h2,
.policy-content h3 {
  color: #c9d6f0;
}

.policy-content p,
.policy-content ul {
  color: #d6dbf7;
  line-height: 1.6;
  margin-bottom: 15px;
}

.policy-content ul {
  padding-left: 20px;
}

.policy-content li {
  margin-bottom: 8px;
}

/* Hide all policy sections by default */
.policy {
  display: none;
}

.pdf-link {
  color: #ffe600;
  font-weight: bold;
}

.pdf-link:hover {
  color: #34ff06;
}

/* Hero section */
.policies-hero {
  background: url('TopImages/CommunitySnapNew3.jpeg') no-repeat center center/cover;
  height: 40vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-shadow: 2px 2px 8px black;
  font-size: 3rem;
  font-weight: bold;
}

/* Responsive */
@media (max-width: 768px) {
  .policy-layout {
    flex-direction: column;
  }

  .policy-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 2px solid #1e90ff;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .policy-sidebar ul {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }

  .policy-sidebar li {
    margin: 0;
  }

  .policy-sidebar a {
    padding: 8px 12px;
  }

  .policies-box {
    padding: 20px;
  }
}

.invertImage {
  filter: brightness(0) invert(1);
}

html {
  font-size: 16px; /* minimum base font size */
}
