/* Policies Sidebar Styles */
.policies-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
  border-left: 2px solid #EB0029;
  z-index: 1002;
  transition: right 0.3s ease;
  box-shadow: -4px 0 20px rgba(235, 0, 41, 0.15);
  backdrop-filter: blur(10px);
  overflow-y: auto;
}

.policies-sidebar.active {
  right: 0;
}

.policies-sidebar-header {
  background: linear-gradient(135deg, #EB0029 0%, #c41e3a 100%);
  padding: 25px 20px;
  position: relative;
  overflow: hidden;
}

.policies-sidebar-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="10" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="90" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  opacity: 0.3;
}

.policies-sidebar-header h3 {
  color: #ffffff;
  font-family: 'Rubik', sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  margin: 0;
  text-align: center;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  letter-spacing: 0.5px;
}

.policies-sidebar-header .subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 0.85rem;
  margin: 5px 0 0 0;
  text-align: center;
  position: relative;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.close-sidebar {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.close-sidebar:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.policies-sidebar-nav {
  list-style: none;
  padding: 20px 0;
  margin: 0;
  background: rgba(255, 255, 255, 0.95);
}

.policies-sidebar-nav li {
  margin: 0;
  position: relative;
}

.policies-sidebar-nav a {
  display: flex;
  align-items: center;
  padding: 18px 25px;
  color: #333;
  text-decoration: none;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-left: 4px solid transparent;
  position: relative;
  overflow: hidden;
}

.policies-sidebar-nav a::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(235, 0, 41, 0.1), transparent);
  transition: left 0.5s ease;
}

.policies-sidebar-nav a:hover::before {
  left: 100%;
}

.policies-sidebar-nav a:hover {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  color: #EB0029;
  border-left-color: #EB0029;
  transform: translateX(-5px);
  box-shadow: 0 4px 12px rgba(235, 0, 41, 0.15);
}

.policies-sidebar-nav a i {
  margin-right: 12px;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
}

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Scrollbar Styling for Policies Sidebar */
.policies-sidebar::-webkit-scrollbar {
  width: 6px;
}

.policies-sidebar::-webkit-scrollbar-track {
  background: rgba(235, 0, 41, 0.1);
}

.policies-sidebar::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #EB0029, #c41e3a);
  border-radius: 3px;
}

.policies-sidebar::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #c41e3a, #EB0029);
}

/* Mobile responsive for policies sidebar */
@media (max-width: 768px) {
  .policies-sidebar {
    width: 100%;
    right: -100%;
  }
}
