/* Override Bootstrap Primary Color */
:root {
    --bs-primary: #4e73df;
    --bs-secondary: #858796;
    --bs-success: #1cc88a;
    --bs-info: #36b9cc;
    --bs-warning: #f6c23e;
    --bs-danger: #e74a3b;
    --bs-light: #f8f9fc;
    --bs-dark: #5a5c69;
    --bs-font-sans-serif: 'Roboto', sans-serif;
}

/* Ensure the page takes full height */
html,
body {
    height: 100%; /* Ensure both take full available height */
    margin: 0;
    padding: 0;
    overflow-x: hidden; /* Prevent horizontal scroll on body */
    font-family: var(--bs-font-sans-serif); /* Set base font */
    background-color: var(--bs-light); /* Set base background */
    color: var(--bs-dark);
}

/* Container to hold main content and footer */
#page-container {
    position: relative; /* Establishes positioning context */
    min-height: calc(100% - 70px); /* Crucial: Full height MINUS navbar height (adjust 70px) */
                                   /* If navbar is NOT fixed, use min-height: 100%; */
    display: flex;
    flex-direction: column;
}

/* The area for the main page content */
#content-wrap {
    flex-grow: 1; /* Allows this area to expand */
    /* Add padding needed AFTER the fixed navbar spacer */
    /* padding-top: 1rem; REMOVE - main-content-padding handles this */
    padding-bottom: 4rem; /* Add space ABOVE the footer */
                           /* Adjust value as needed for footer height */
    width: 100%; /* Ensure it takes full width */
    overflow-y: auto; /* Allow internal scrolling if content exceeds viewport */
}

/* The actual footer element */
#footer {
    /* Footer is positioned normally within the flex flow */
    width: 100%;
    flex-shrink: 0; /* Prevent shrinking */
    /* Add specific styles like background, padding */
    background-color: #212529;
    color: #ced4da;
    padding-top: 1.5rem; /* Adjust padding as needed */
    padding-bottom: 1rem;
}


/* Padding div for fixed navbar - Adjust height! */
.main-content-padding {
    height: 70px; /* MUST match your actual fixed/sticky navbar height */
                  /* Inspect element to find real height */
    flex-shrink: 0; /* Prevent it from shrinking */
}

/* Main content grows to fill available space */
.container-content {
    flex: 1; /* This pushes the footer to the bottom */
}

footer.footer-section {
    width: 100%; /* Prevent footer from shrinking */
}

/* --- Footer --- */
.footer-section {
    background-color: #212529;
    font-size: 0.9rem; /* Base size slightly smaller */
}
.footer-heading {
    color: #adb5bd;
    font-weight: 600;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.footer-text {
    color: #ced4da;
}
address.footer-text {
    line-height: 1.6;
}
.footer-links {
    padding-left: 0;
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.4rem; /* Slightly less space */
}
.footer-links a, a.footer-link {
    color: #ced4da;
    text-decoration: none;
    transition: color 0.2s ease;
}
.footer-links a:hover, a.footer-link:hover {
    color: #fff;
    text-decoration: underline; /* Simple underline on hover */
}
.footer-section hr.footer-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.15); /* Slightly more visible divider */
}
a.footer-social-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block; /* Allows transform */
}
a.footer-social-link:hover {
    color: #fff;
    transform: scale(1.2); /* Slight zoom effect */
}

/* Ensure input group looks okay on dark background */
.footer-section .input-group input.form-control {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.footer-section .input-group input.form-control::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

/* Example: Smooth button hover */
.btn-primary {
    transition: background-color 0.3s ease, transform 0.2s ease;
  }
  .btn-primary:hover {
    background-color: #0056b3; /* Darker shade */
    transform: translateY(-2px); /* Slight lift */
  }
  
  /* Example: Link hover underline effect */
  .footer-links a::after {
    content: '';
    display: block;
    width: 0;
    height: 1px;
    background: #fff;
    transition: width .3s;
  }
  .footer-links a:hover::after {
    width: 100%;
  }

/* Custom Styles */
.navbar-brand {
    font-weight: 700;
    letter-spacing: 1px;
}

body {
    font-family: 'Roboto', sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    color: #007bff;
}

.navbar-brand {
    font-weight: bold;
}

.footer {
    background-color: #f1f1f1;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

footer {
    background-color: #f8f9fa;
    color: #6c757d;
}

.hero-section {
    height: 85vh; /* Adjust height as needed */
    min-height: 500px;
    position: relative;
    overflow: hidden;
}
.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item {
    height: 100%;
}
.hero-section .carousel-item {
    background-size: cover;
    background-position: center center;
    position: relative; /* Needed for overlay */
}
/* Add overlay for better text contrast */
.hero-section .carousel-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5); /* Dark overlay */
    z-index: 1;
}
.hero-section .carousel-caption {
    position: absolute;
    bottom: 15%; /* Adjust vertical position */
    left: 10%;
    right: 10%;
    text-align: center;
    color: #fff;
    z-index: 2; /* Above overlay */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 20px;
    border-radius: 10px;
}

.carousel-item img, .carousel-item video {
    filter: brightness(70%);
}

.carousel-caption h1, .carousel-caption p {
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.carousel-caption .btn {
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.carousel-caption .btn:hover {
    transform: scale(1.05);
    background-color: rgba(255, 255, 255, 0.9);
}
.card {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
    transition: 0.3s;
    border-radius: 10px; /* Rounded corners */
}

.card:hover {
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
}

.card-img-top {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
}

.card-body {
    padding: 20px;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.card-text {
    font-size: 1rem;
    color: #333;
}

.btn-primary {
    background-color: #4CAF50; /* Green */
    border: none;
    border-radius: 5px;
}

.btn-primary:hover {
    background-color: #45a049;
}

.form-horizontal .form-group {
    margin-bottom: 15px;
}

.form-horizontal .form-group label {
    font-weight: bold;
    margin-bottom: 5px;
}

.form-horizontal .form-control {
    border-radius: 5px;
    padding: 10px;
}

.form-horizontal .btn-primary {
    background-color: #007bff;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
}

.notification-item.new {
    animation: blink 1s ease-in-out infinite alternate;
    background-color: #fffbe7; /* Highlight background for new notifications */
}

@keyframes blink {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0.5;
    }
}

/* --- Option 1: Transparent Navbar --- */

/* Initial State (Transparent) */
.main-navbar.navbar-transparent {
    background-color: rgba(0, 0, 0, 0.2); /* Start slightly transparent black */
    transition: background-color 0.4s ease-out, padding-top 0.4s ease-out, padding-bottom 0.4s ease-out;
    box-shadow: none;
  }
  
  /* Make sure links are visible on dark/image backgrounds */
  .main-navbar.navbar-transparent .navbar-brand,
  .main-navbar.navbar-transparent .nav-link {
    color: rgba(255, 255, 255, 0.9);
  }
  .main-navbar.navbar-transparent .nav-link:hover,
  .main-navbar.navbar-transparent .nav-link.active {
    color: #ffffff;
  }
  .main-navbar.navbar-transparent .navbar-toggler {
      border-color: rgba(255, 255, 255, 0.3);
  }
  .main-navbar.navbar-transparent .navbar-toggler-icon {
      background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); /* White toggler */
  }
  
  /* Styles for Login/Register Buttons (Transparent State) */
  .main-navbar.navbar-transparent .nav-btn {
      border-width: 1px; /* Ensure border is visible */
  }
  .main-navbar.navbar-transparent .nav-btn.btn-outline-light:hover {
      background-color: rgba(255, 255, 255, 0.1);
  }
  .main-navbar.navbar-transparent .nav-btn.nav-btn-primary { /* Primary button styling */
      background-color: var(--lsa-primary, #198754); /* Use CSS var or fallback */
      border-color: var(--lsa-primary, #198754);
      color: #fff;
  }
  .main-navbar.navbar-transparent .nav-btn.nav-btn-primary:hover {
       background-color: #157347; /* Darker shade */
       border-color: #146c43;
  }
  
  
  /* Scrolled State (Solid Background) */
  .main-navbar.navbar-scrolled {
    background-color: #ffffff; /* Solid white background */
    padding-top: 0.75rem; /* Slightly reduce padding on scroll */
    padding-bottom: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075); /* Subtle shadow */
    transition: background-color 0.4s ease-out, padding-top 0.4s ease-out, padding-bottom 0.4s ease-out;
  }
  
  /* Adjust text/logo/link colors for light background */
  .main-navbar.navbar-scrolled .navbar-brand,
  .main-navbar.navbar-scrolled .nav-link {
    color: #333; /* Darker text color */
  }
  .main-navbar.navbar-scrolled .nav-link:hover,
  .main-navbar.navbar-scrolled .nav-link.active {
    color: var(--lsa-primary, #198754); /* Use primary color for hover/active */
  }
  .main-navbar.navbar-scrolled .navbar-toggler {
      border-color: rgba(0, 0, 0, 0.1);
  }
  .main-navbar.navbar-scrolled .navbar-toggler-icon {
     background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 0, 0, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e"); /* Default dark toggler */
  }
  
  /* Styles for Login/Register Buttons (Scrolled State) */
  .main-navbar.navbar-scrolled .nav-btn.btn-outline-light {
      /* Change to outline-success or similar */
      border-color: var(--lsa-primary, #198754);
      color: var(--lsa-primary, #198754);
  }
  .main-navbar.navbar-scrolled .nav-btn.btn-outline-light:hover {
      background-color: var(--lsa-primary, #198754);
      color: #fff;
  }
  .main-navbar.navbar-scrolled .nav-btn.nav-btn-primary {
      /* Keep primary button solid */
       background-color: var(--lsa-primary, #198754);
       border-color: var(--lsa-primary, #198754);
       color: #fff;
  }
  .main-navbar.navbar-scrolled .nav-btn.nav-btn-primary:hover {
       background-color: #157347;
       border-color: #146c43;
  }
  
  
  /* Add padding to main content area to avoid being hidden by fixed navbar */
  /* Adjust the padding value based on the CALCULATED height of your navbar */
  .main-content-padding {
    padding-top: 70px; /* STARTING POINT - INSPECT YOUR NAVBAR'S HEIGHT AND ADJUST */
  }
  
  /* Style for collapsed menu background */
  @media (max-width: 991.98px) {
      .main-navbar .navbar-collapse {
          background-color: rgba(0, 0, 0, 0.85); /* Dark background when collapsed */
          padding: 1rem;
          border-radius: 0.25rem;
          margin-top: 0.5rem;
      }
       /* Ensure links are white in collapsed menu */
      .main-navbar .navbar-nav .nav-link {
          color: rgba(255, 255, 255, 0.9);
      }
       .main-navbar .navbar-nav .nav-link:hover,
       .main-navbar .navbar-nav .nav-link.active {
          color: #ffffff;
      }
      .main-navbar.navbar-scrolled .navbar-collapse {
           background-color: #ffffff; /* White background when collapsed and scrolled */
      }
       /* Ensure links are dark in collapsed menu when scrolled */
       .main-navbar.navbar-scrolled .navbar-nav .nav-link {
          color: #333;
      }
       .main-navbar.navbar-scrolled .navbar-nav .nav-link:hover,
       .main-navbar.navbar-scrolled .navbar-nav .nav-link.active {
          color: var(--lsa-primary, #198754);
      }
  }
  
.benefit-card .icon-circle i {
    /* font-size: 1.8rem; /* Adjust if needed */
}

/* What Makes Us Different - Feature Cards */
.feature-card {
    border-left: 4px solid var(--bs-success);
    background-color: #f8f9fa; /* Light background for cards */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.1);
}
.feature-icon {
    /* margin-bottom: 0.5rem; */
}

/* Team Member Cards */
.team-member-card {
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.team-member-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.1);
}
.team-member-img {
    width: 130px;
    height: 130px;
    object-fit: cover;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.15);
}
.bg-success-subtle { /* Already defined, used for team section */
    /* background-color: #e2f5ea; */
}

/* --- Testimonials Section --- */
.testimonial-card {
    border-left: 5px solid var(--bs-success); /* Accent border */
    /* max-width: 700px; /* Already in inline style, which is fine for this case */
    /* min-height: 300px; /* Optional: ensure cards have a minimum height */
    display: flex; /* Added to help with vertical centering if needed */
    flex-direction: column; /* Added */
    justify-content: center; /* Added */
}

.testimonial-img {
    width: 100px;  /* Or your desired width */
    height: 100px; /* Or your desired height - should be same as width for circle */
    object-fit: cover; /* Ensures the image covers the area, might crop if not square */
    object-position: center; /* Centers the image within its box */
    border: 4px solid #fff; /* White border to lift it from background */
    box-shadow: 0 4px 10px rgba(0,0,0,0.15); /* Softer shadow */
    /* margin: 0 auto 1rem; /* Centering image and adding margin bottom */
    /* The mb-3 class on the img tag already handles bottom margin */
}

/* Style for testimonial carousel indicators */
#testimonialCarousel .carousel-indicators button {
    background-color: rgba(0, 0, 0, 0.25); /* Darker, semi-transparent */
    border-radius: 50%; /* Make them circles */
    width: 10px;
    height: 10px;
    margin-left: 5px;
    margin-right: 5px;
    border: none;
}

#testimonialCarousel .carousel-indicators .active {
    background-color: var(--bs-primary); /* Active indicator color */
}

/* Adjust carousel controls to be more subtle or match theme */
#testimonialCarousel .carousel-control-prev-icon,
#testimonialCarousel .carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent background for controls */
    border-radius: 50%;
    width: 2.5rem; /* Adjust size if needed */
    height: 2.5rem;
    background-size: 50% 50%;
}

#testimonialCarousel .carousel-control-prev,
#testimonialCarousel .carousel-control-next {
    width: 5%; /* Adjust hit area of controls */
    /* You might need to adjust opacity or z-index if they interfere */
}