:root {
  /* Color Palette */
  --primary-color: #7c4dcc; /* mature violet */
  --primary-hover-color: #6438a8;
  --secondary-accent-color: #00a9c2;
  --accent-color: #6b5fd7;
  --light-accent-color: #b2b2e9; /* Soft Blue Accent */
  --text-color-secondary: #ffffff; /* White for button/text contrast */
  --secondary-hover-color: #4a90e2; /* Darker secondary accent color */
  --button-color:  #5c6bc0;; /* Base button color */
  --old-button-hover-color: #0eb896; /* Vibrant hover */
  --button-hover-color: #3f51b5; /*#784dc9; /* A slightly darker variant of --primary-color */
  --button-text-color: var(--text-color-secondary); /* Ensure readability */
  
  /* Backgrounds and Contrast */
  --background-color: #f8f5ff;
  --heading-color: #231633;
  --navbar-bg-color: #7c4dcc;
  --dropdown-bg-color: #ffffff; /* White dropdown for contrast */

  --box-shadow-light: rgba(0, 0, 0, 0.1) 0px 4px 8px; /* Light shadow for depth */
  --info-color: #26a69a; /* Soft teal for informational messages */
  --warning-color: #ffb74d; /* Orange for warnings */
  --danger-color: #ff4d4d; /* Red for danger/alerts */
  --alternate-primary-color: #334af4; /* Vibrant blue for alternates */

  --form-bg-color: #ffffff; /* White form backgrounds for contrast */
  --input-border-color: #d1c4e9; /* Soft border for input fields */
  --button-border-radius: 8px; /* Slightly rounded buttons */
  --button-padding: 12px 24px; /* Comfortable padding for buttons */
  --box-shadow-hover: rgba(0, 0, 0, 0.2) 0px 6px 12px; /* Stronger shadow on hover */
  --modal-overlay-bg: rgba(74, 0, 114, 0.85); /* Deep purple transparent overlay */
  --gradient-bg: linear-gradient(135deg, #7c4dcc 0%, #5f34a6 58%, #00a9c2 100%);
  --gradient-bg-radial: radial-gradient(circle, #7c4dcc, #5f34a6);
  
  --default-font-size: 16px;
}

/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(to bottom, var(--background-color), #f3f4f6);
  color: var(--heading-color);
  font-size: var(--default-font-size);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
}

/* Main Layout Containers */
#page-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

#content-wrap {
  flex: 1;
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Heading Styles */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  color: var(--heading-color);
  font-weight: 700;
  letter-spacing: 1px;
}

h1 {
  font-size: 2.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

h2 {
  font-size: 1.5rem;
}

h3, h4, h5, h6 {
  font-size: 1rem;
}

/* Container for Centered Content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.primary-background {
  background-color: var(--primary-color);
  color: var(--light-accent-color);
}
.btn {
  display: inline-block;
  border: none;
  border-radius: 50px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--box-shadow-light);
  text-align: center;
  padding: var(--button-padding);
  font-size: 1rem;
  background-color: var(--button-color);
  color: var(--button-text-color);
}

/* Hover & Focus States for All Buttons */
.btn:hover {
  transform: scale(1.05);
  box-shadow: var(--box-shadow-hover);
}

.btn:focus {
  outline: 2px solid var(--accent-color);
  box-shadow: 0 0 0 3px rgba(86, 128, 233, 0.5);
}

/* 🟦 Primary Button (Main Action) */
.btn-primary {
  background-color: var(--button-color);
  color: var(--button-text-color);
}

.btn-primary:hover {
  background-color: var(--primary-hover-color);
}

/* 🟨 Secondary Button (Supporting Action) */
.btn-secondary {
  background-color: var(--accent-color);
  color: var(--button-text-color);
}

.btn-secondary:hover {
  background-color: var(--secondary-hover-color);
}

/* 🟥 Small Button (Back, Cancel, Home) */
.btn-small {
  background-color: var(--accent-color);
  color: var(--button-text-color);
  padding: 8px 16px;
  font-size: 0.75rem;
}

.btn-small:hover {
  background-color: var(--button-hover-color);
}

/* 💡 Contextual Buttons (Success, Warning, Danger, etc.) */
.btn-warning {
  background-color: var(--warning-color);
  color: var(--button-text-color);
}

.btn-warning:hover {
  background-color: #ff8f00;
}

.btn-success {
  background-color: #28a745;
  color: var(--button-text-color);
}

.btn-success:hover {
  background-color: #218838;
}

.btn-info {
  background-color: var(--info-color);
  color: var(--button-text-color);
}

.btn-info:hover {
  background-color: #00796b;
}

.btn-danger {
  background-color: var(--danger-color);
  color: var(--button-text-color);
}

.btn-danger:hover {
  background-color: #e53935;
}

.btn-dark {
  background-color: #333;
  color: var(--button-text-color);
}

.btn-dark:hover {
  background-color: #1d1d1d;
}

.btn-alternate {
  background-color: var(--alternate-primary-color);
  color: var(--button-text-color);
}

.btn-alternate:hover {
  background-color: var(--alternate-primary-color);
}

/* Button Size Adjustments for Mobile Responsiveness */
@media (max-width: 768px) {
  .btn-primary {
    padding: 12px 24px;
    font-size: 1rem;
  }
  
  .btn-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
  }

  .btn-small {
    padding: 6px 12px;
    font-size: 0.8rem;
  }
}

/* Responsive Layout Adjustments */
@media (max-width: 1024px) {
  .container {
    padding: 15px;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.25rem;
  }

  .btn {
    padding: 10px 20px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  html, body {
    font-size: 14px;
  }

  .btn {
    padding: 10px 20px;
    font-size: 0.875rem;
  }

  h1 {
    font-size: 1.75rem;
  }
}


/* Group containers for radio buttons and checkboxes */
.radio-group,
.checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: 15px; /* Space between groups */
}

/* Labels for radio buttons with proper alignment */
.radio-label,
.checkbox-label {
  display: flex; /* Make label a flex container */
  align-items: center; /* Center items vertically within the label */
  margin-right: 20px; /* Space between radio buttons and checkboxes */
}

/* Add space between input (radio/checkbox) and label text */
.radio-label input[type="radio"],
.checkbox-label input[type="checkbox"] {
  margin-right: 8px;
}

/* General styles for checkboxes and radio buttons */
.checkbox-wrapper,
.radio-wrapper {
  display: flex;
  align-items: center; /* Align input and label vertically */
  margin-bottom: 10px; /* Space between each checkbox/radio */
}

/* Input styles for checkboxes and radio buttons */
.checkbox-wrapper input[type="checkbox"],
.radio-wrapper input[type="radio"] {
  margin-right: 10px; /* Space between input and label */
}

/* Labels for checkboxes and radio buttons with a pointer cursor */
.checkbox-wrapper label,
.radio-wrapper label {
  font-size: 1em; /* Adjust font size if needed */
  cursor: pointer; /* Pointer cursor for better UX */
}

/* Hover effect for visual feedback */
.checkbox-wrapper:hover label,
.radio-wrapper:hover label {
  text-decoration: underline; /* Underline on hover */
}

/* General styles for radio buttons and checkboxes */
input[type="radio"],
input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  margin-right: 10px; /* Add space between checkbox/radio and label */
  border: 2px solid var(--primary-color); /* Border color */
  border-radius: 4px; /* Rounded for checkboxes */
  position: relative;
  cursor: pointer;
  outline: none;
  transition: background-color 0.3s, border-color 0.3s;
}

/* Styles for checked checkboxes and radio buttons */
input[type="checkbox"]:checked,
input[type="radio"]:checked {
  background-color: var(--primary-color); /* Background when checked */
  border-color: var(--primary-color); /* Change border color when checked */
}

/* Custom checked mark for checkboxes */
input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 4px;
  width: 10px;
  height: 10px;
  background-color: var(--text-color-secondary); /* Check mark color */
  clip-path: polygon(0 0, 0 100%, 100% 100%, 100% 0); /* Check mark shape */
}

/* Custom radio button styles */
input[type="radio"] {
  border-radius: 50%; /* Rounded shape for radio button */
}

input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  top: 50%; /* Center vertically */
  left: 50%; /* Center horizontally */
  width: 10px; /* Size of the dot */
  height: 10px; /* Size of the dot */
  background-color: var(--text-color-secondary); /* Dot color */
  border-radius: 50%; /* Make it circular */
  transform: translate(-50%, -50%); /* Center the dot inside */
}

/* Style labels to align with inputs */
label {
  display: flex;
  align-items: center;
  font-size: 16px;
  color: var(--heading-color); /* Use custom heading color */
}

/* Add space between label text and input */
label input {
  margin-right: 8px;
}
/* Media Query for Tablets and Smaller Devices */
@media (max-width: 768px) {
  .radio-group,
  .checkbox-group {
    flex-direction: column; /* Stack elements vertically on smaller screens */
    align-items: flex-start; /* Align the items to the start */
  }

  .radio-label,
  .checkbox-label {
    margin-right: 0; /* Remove margin between input and label when stacked */
    margin-bottom: 10px; /* Add margin between stacked radio buttons/checkboxes */
  }

  label {
    font-size: 14px; /* Reduce label font size on smaller screens */
  }

  input[type="radio"],
  input[type="checkbox"] {
    width: 18px; /* Slightly reduce the size of checkboxes and radio buttons */
    height: 18px; /* Maintain proportional size */
  }
}

/* Media Query for Mobile Devices */
@media (max-width: 480px) {
  .radio-group,
  .checkbox-group {
    flex-direction: column; /* Stack radio buttons and checkboxes vertically */
  }

  .radio-wrapper,
  .checkbox-wrapper {
    margin-bottom: 8px; /* Reduce space between inputs */
  }

  label {
    font-size: 13px; /* Further reduce font size for mobile devices */
  }

  input[type="radio"],
  input[type="checkbox"] {
    width: 16px; /* Further reduce size of input elements */
    height: 16px; /* Maintain proportional size */
  }
}


/* Form Elements */
input, textarea, select {
  width: 100%;
  padding: 13px 15px;
  margin-bottom: 18px;
  border-radius: 14px;
  border: 1.5px solid var(--j2d-outline, #e4e4ef);
  background-color: #fff;
  color: var(--j2d-text-primary, #1c1c28);
  font-size: .96rem;
  box-shadow: 0 1px 2px rgba(16, 16, 40, .04);
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input:hover, textarea:hover, select:hover {
  border-color: #c9c4e6;
}

input:focus, textarea:focus, select:focus {
  border-color: var(--j2d-primary, #8860d0);
  box-shadow: 0 0 0 4px rgba(136, 96, 208, .16);
  background: #fdfcff;
  outline: none;
}

/* Modern caret so selects don't look native/old-school. */
select {
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238860d0' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
textarea { min-height: 120px; resize: vertical; line-height: 1.55; }




/* Common Styles for Info Box and Toggle Info Box */
.info-box, .info-toggle {
  display: flex;
  align-items: center;
  background-color: var(--background-color); /* Light background */
  border-radius: 8px;
  padding: 15px 20px;
  margin-bottom: 20px;
  font-family: Arial, sans-serif;
  color: var(--heading-color); /* Dark heading text */
  box-shadow: var(--box-shadow-light);
  transition: all 0.3s ease;
}

/* Info Box Specific Styles */
.info-box {
  border-left: 5px solid var(--info-color); /* Soft teal for info box */
}

/* Info Box Icon */
.info-box-icon {
  font-size: 24px;
  color: var(--info-color); /* Use the info color for icon */
  margin-right: 15px;
}

/* Info Box Content */
.info-box-content h6 {
  font-size: 16px;
  font-weight: bold;
  color: var(--heading-color); /* Dark text for header */
}

.info-box-content p {
  font-size: 14px;
  line-height: 1.4;
  color: var(--heading-color); /* Ensure text color remains consistent */
  margin: 0;
}

/* Info Toggle (Expand/Collapse) Specific Styles */
.info-toggle {
  position: relative;
  background-color: var(--light-accent-color); /* Soft Blue Accent for toggle box */
  cursor: pointer;
  border-radius: 8px;
}

/* Info Icon for Toggle */
.info-icon {
  font-size: 1rem;
  color: var(--accent-color); /* Deep blue accent for the icon */
  margin-left: 0.5rem;
  vertical-align: middle;
  display: inline-block;
}

/* Toggle Content */
.toggle-content {
  display: none;
  margin-top: 0.5rem;
  padding: 0.5rem;
  border: 1px solid var(--input-border-color); /* Soft border for toggle content */
  border-radius: 4px;
  background-color: var(--background-color);
  font-size: 14px;
  color: var(--heading-color); /* Text color for content */
}

.toggle-content.show {
  display: block;
}

/* Shared Hover Effect */
.info-box:hover, .info-toggle:hover {
  background-color: var(--secondary-accent-color); /* Vibrant Blue hover effect */
  box-shadow: var(--box-shadow-hover); /* Stronger shadow on hover */
}

/* Responsive Layout for Info Boxes */
@media (max-width: 768px) {
  .info-box, .info-toggle {
    flex-direction: column;
    padding: 10px;
    margin-bottom: 15px;
  }

  .info-box-icon {
    margin-right: 10px;
    font-size: 20px;
  }

  .info-box-content h6 {
    font-size: 14px;
  }

  .info-box-content p {
    font-size: 12px;
  }
}


.email-logo {
  width: 50px;
  height: 50px;
}

.web-logo {
  width: 150px;
  height: auto;
}

/* Navbar */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--navbar-bg-color);
  padding: 15px 20px;
  box-shadow: var(--box-shadow-light);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  position: sticky; /* Keeps the navbar fixed at the top */
  top: 0;
  z-index: 1000; /* Ensures it stays above other content */
}

/* Logo */
.j2d-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.nav-logo {
  height: 44px;
  width: auto;
  cursor: pointer;
  filter: drop-shadow(0 3px 8px rgba(124, 58, 237, 0.35));
  transition: transform .15s ease, filter .15s ease;
}
.j2d-brand:hover .nav-logo {
  transform: translateY(-1px);
  filter: drop-shadow(0 5px 12px rgba(124, 58, 237, 0.5));
}

/* Navbar Links */
.navbar-nav {
  display: flex;
  gap: 20px; /* Provides consistent spacing between links */
}

.navbar-nav .nav-link {
  display: flex;
  align-items: center;
  font-size: 1rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--heading-color);
  text-decoration: none; /* Removes underline */
  padding: 10px 15px;
  border-radius: 5px; /* Adds slight rounding for a modern look */
  transition: color 0.3s ease, background-color 0.3s ease; /* Smooth transitions */
}

.navbar-nav .nav-link:hover {
  color: var(--button-hover-color); /* Modern hover effect */
  background-color: rgba(0, 0, 0, 0.05); /* Subtle background on hover */
}

/* Active Link */
.navbar-nav .nav-link.active {
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color); /* Highlights the active link */
}

/* Notification Badge (if applicable) */
.nav-item .nav-link {
  position: relative;
}

.nav-item .notification-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: var(--primary-color);
  color: #fff;
  font-size: 0.75rem;
  font-weight: bold;
  height: 20px;
  width: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
}


/* Footer */
footer {
  background-color: #333;
  color: white;
  text-align: center;
  padding: 20px 0;
  box-shadow: var(--box-shadow-light);
}

/* Miscellaneous */
.notice-container {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 5px;
  padding: 15px;
  margin: 20px auto;
  max-width: 600px;
}

.alert-danger, .alert-success {
  font-size: 14px;
  margin: 10px 0;
  padding: 10px;
  border-radius: 4px;
}

.alert-danger {
  color: #d9534f;
  background-color: #f2dede;
  border: 1px solid #d9534f;
}

.alert-success {
  color: #3c763d;
  background-color: #dff0d8;
  border: 1px solid #3c763d;
}


.fixed-sidebar {
  position: fixed;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  width: 60px; /* Compact sidebar width */
  background-color: #2c3e50; /* Dark modern background */
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  z-index: 1000;
  transition: all 0.3s ease;
  border-radius: 0 10px 10px 0; /* Rounded edge for modern look */
  padding: 10px 0; 
}

.hidden-sidebar {
  left: -60px;
  opacity: 0;
  pointer-events: none;
}

.fixed-sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.fixed-sidebar li {
  margin: 14px 0; /* More space between icons */
  position: relative;
}

.fixed-sidebar a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #ecf0f1; /* Light text for better contrast */
  border-radius: 5px;
  transition: all 0.3s ease;
  
  
}

.fixed-sidebar a:hover {
  background-color: #1abc9c; /* Elegant hover effect */
  color: white; /* Ensure text is visible on hover */
  border-radius: 10px; /* Smooth corners on hover */
}

/* Sidebar Icons */
.fixed-sidebar i {
  font-size: 20px; /* Large icon size for better visibility */
  margin-bottom: 5px;
  opacity: 1; /* Ensure icons are fully visible */
  transition: opacity 0.3s ease;
}

/* Adjusting the first icon position */
.fixed-sidebar li:first-child a {
  padding-left: 15px; /* Ensure enough space to avoid overlap with the toggle button */
}

/* Toggle Button */
.toggle-sidebar {
  position: absolute;
  top: 10px;
  left:55px; /* Positioned outside the sidebar */
  background-color: #2980b9; /* Button with a modern blue color */
  color: white;
  border: none;
  padding: 8px;
  cursor: pointer;
  border-radius: 5px; /* Smooth rounded corners */
  z-index: 1100; /* Ensure it stays above the sidebar */
  transition: background-color 0.3s ease;
}

.toggle-sidebar:hover {
  background-color: #0eb896; /* Hover effect for button */
}

/* Ensure icons and toggle button are not overlapped */
.fixed-sidebar ul li:first-child a {
  margin-top: 40px; /* Extra space for the first icon */
}


/* Placeholder Styles */
::placeholder {
  color: var(--heading-color);
  opacity: 0.5; /* You can adjust this value */
  font-style: italic; 
}
/* Floating Search Button */
.floating-search-btn {
  position: fixed;
  bottom: 20px;
  left: 20px; /* Changed from right to left */
  background-color: var(--button-color);
  color: var(--text-color-secondary);
  border: none;
  border-radius: 50%;
  padding: 10px;
  font-size: 20px;
  box-shadow: var(--box-shadow-light);
  cursor: pointer;
  z-index: 1000;
  transition: background-color 0.3s ease, transform 0.3s ease;
}

.floating-search-btn:hover {
  transform: scale(1.1);
  background-color: var(--button-hover-color);
}



/* Specific styling for the bio placeholder */
textarea#id_bio::placeholder {
  color: rgba(0, 0, 0, 0.4);  /* Adjust opacity for the bio field */
  font-style: italic;
}

/* If you want to target specific input fields */
input::placeholder, textarea::placeholder {
  color: rgba(0, 0, 0, 0.4);  /* Adjust color and opacity */
  font-style: italic;         /* Optional: add an italic style */
}

/* Smooth animations for dropdowns and modals */
.dropdown-menu, .modal {
  animation: fadeIn 0.5s ease;
}

/* Smooth fade-in effect */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Responsive Layout */
@media (max-width: 768px) {
  body {
    font-size: 14px; /* Smaller font size for mobile */
  }

  .floating-sidebar {
    width: 100%; /* Full width on mobile */
    top: 80px; /* Adjust position */
    left: -50px; 
  }

  .notification-count {
    font-size: 10px; /* Smaller notification count */
    padding: 2px 5px; /* Adjust padding */
    
  }

  .navbar {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px;
  }

  .navbar-nav {
    flex-direction: column;
    gap: 10px;
    width: 100%; /* Takes full width on small screens */
  }

  .navbar-nav .nav-link {
    width: 100%; /* Links are full-width */
    text-align: left;
  }

  .notice-container {
    padding: 10px; /* Less padding on mobile */
    margin: 10px; /* Less margin */
  }

  .alert-danger, .alert-success {
    font-size: 12px; /* Smaller font in alerts */
  }
}

@media (max-width: 576px) {


  .row {
      display: block;
  }

  input[type="text"],
  textarea,
  select {
      font-size: 13px;
  }
}

.notification-bubble {
  display: none; /* Hidden by default */
  position: absolute;
  top: -5px;
  right: -5px;
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 3px 6px;
  font-size: 12px;
}


/* Notification Wrapper */


/* Notification Bubble */
.menu-notification-bubble {
  position: absolute;
  top: -8px; /* Adjust the vertical alignment */
  right: -4px; /* Adjust the horizontal alignment */
  width: 20px;
  height: 20px;
  background-color: #007bff;
  color: #fff;
  border-radius: 50%;
  text-align: center;
  line-height: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2); /* Depth for notification bubble */
}

/* Icon Styling (Optional, if needed for alignment) */
.menu-notification-wrapper i {
  font-size: 24px; /* Adjust icon size if needed */
  vertical-align: middle;
}

/* Default state: hidden */
.menu-notification-bubble.hidden {
  display: none;
}

/* Explicitly show the bubble when needed (if it's not the default behavior) */
.menu-notification-bubble.show {
  display: inline-block; /* or use `block` if needed */
}


.fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: var(--button-color);
  color: var(--text-color-secondary);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  z-index: 1000; /* Ensure it appears above other elements */
}

.fab-icon {
  color: white;
  font-size: 24px;
  text-decoration: none;
}

.fab-icon:hover {
  color: #ffffff;
  opacity: 0.8;
  transform: scale(1.1);
  background-color: var(--button-hover-color);
}


footer {
  background-color: var(--primary-color); /* Use the primary color for the footer background */
  color: var(--text-color-secondary); /* Contrast text color */
  padding: 20px 0;
  text-align: center;
  position: relative;
  bottom: 0;
  width: 100%;
  box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1); /* Subtle shadow for elevation */
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap; /* Ensure responsiveness on smaller screens */
  justify-content: space-between;
  align-items: center;
  gap: 20px; /* Space between content items */
  padding: 0 15px; /* Add horizontal padding */
}

.footer-content {
  flex: 1;
  text-align: center; /* Center the text for better alignment */
}

.footer-content p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--light-accent-color); /* Subtle text accent */
  line-height: 1.5; /* Improve readability */
}

.footer-links {
  flex: 1;
  display: flex;
  justify-content: center; /* Center links horizontally */
  flex-wrap: wrap; /* Adjust to multiple rows on small screens */
  gap: 10px; /* Spacing between links */
}

.footer-links a {
  color: var(--secondary-accent-color); /* Vibrant blue for links */
  margin: 0 5px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500; /* Slightly bolder text for links */
}

.footer-links a:hover {
  color: var(--accent-color); /* Deep blue accent for hover */
  text-decoration: underline;
}

.footer-links a:focus {
  outline: 2px solid var(--light-accent-color); /* Accessible focus indication */
  outline-offset: 2px;
}

.footer-logo {
  flex: 1;
  display: flex;
  justify-content: center; /* Center the logo */
  align-items: center;
}

.footer-logo img {
  max-width: 100px;
  height: auto;
  border-radius: 50%; /* Circular logo */
  transition: transform 0.3s ease-in-out; /* Add hover effect */
}

.footer-logo img:hover {
  transform: scale(1.1); /* Slight zoom on hover */
}

@media (max-width: 768px) {
  .footer-container {
    flex-direction: column; /* Stack elements on smaller screens */
    align-items: center;
    gap: 15px;
  }

  .footer-links {
    justify-content: center; /* Center links for smaller screens */
    gap: 15px;
  }
}

/* ---- Shared member tile (group / church / events / directory) ---- */
.j2d-member-tile {
  display: flex; align-items: center; gap: 12px; padding: 11px 13px;
  border: 1px solid var(--j2d-outline, #e4e4ef); border-radius: 16px; background: #fff;
  text-decoration: none; color: inherit; margin-bottom: 10px;
  transition: box-shadow .15s ease, transform .12s ease, border-color .15s ease;
}
.j2d-member-tile:hover { box-shadow: 0 8px 22px rgba(124,58,237,.10); transform: translateY(-1px); border-color: #c9c4e6; }
.j2d-member-tile__avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 auto; overflow: hidden;
  display: grid; place-items: center; font-weight: 800; font-size: .92rem; color: #fff;
  background: linear-gradient(135deg, #7C3AED, #A855F7);
}
.j2d-member-tile__avatar img { width: 100%; height: 100%; object-fit: cover; }
.j2d-member-tile__body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.j2d-member-tile__name { font-weight: 700; color: var(--j2d-text-primary, #1c1c28); display: flex; align-items: center; gap: 8px; }
.j2d-member-tile__sub { font-size: .84rem; color: var(--j2d-text-secondary, #6b6b80); }
.j2d-member-tile__trailing { margin-left: auto; }
.j2d-you-badge {
  font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  color: #7C3AED; background: rgba(124,58,237,.12); border-radius: 999px; padding: 2px 8px;
}
.j2d-member-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
