/* Modern Color Palette & Variables */
:root {
    --bs-primary: #84cc16;
    --bs-secondary: #64748b;
    --bs-success: #22c55e;
    --bs-info: #0ea5e9;
    --bs-warning: #f59e0b;
    --bs-danger: #ef4444;
    --bs-light: #f8fafc;
    --bs-dark: #0f172a;
    --bs-font-sans-serif: 'Roboto', sans-serif;
    
    /* Modern Design Variables */
    --primary-gradient: linear-gradient(135deg, #84cc16 0%, #22c55e 100%);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.18);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 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;
    position: relative;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(135deg, white, #06b6d4, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 1.3rem;
}

.navbar-brand img {
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.3));
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    animation: logoPulse 3s ease-in-out infinite;
    height: 45px !important;
}

@keyframes logoPulse {
    0%, 100% {
        filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.3));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.6)) drop-shadow(0 0 30px rgba(139, 92, 246, 0.4));
        transform: scale(1.05);
    }
}

.navbar-brand:hover img {
    filter: drop-shadow(0 0 20px rgba(6, 182, 212, 0.8)) drop-shadow(0 0 30px rgba(139, 92, 246, 0.6));
    transform: scale(1.1) rotate(5deg);
}

.navbar-brand:hover {
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

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: Ultra-Modern Glassmorphic Navbar --- */

/* Initial State (Glassmorphic Transparent) */
.main-navbar.navbar-transparent {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  }
  
  /* 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.95);
    font-weight: 600;
    transition: all 0.3s ease;
  }
  
  .main-navbar.navbar-transparent .nav-link:hover,
  .main-navbar.navbar-transparent .nav-link.active {
    color: #a3e635;
    transform: translateY(-2px);
  }
  
  .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.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
  
  /* Styles for Login/Register Buttons (Transparent State) */
  .main-navbar.navbar-transparent .nav-btn {
      border-width: 2px;
      font-weight: 600;
      padding: 0.5rem 1.5rem;
      border-radius: 50px;
      transition: all 0.3s ease;
  }
  
  .main-navbar.navbar-transparent .nav-btn.btn-outline-light:hover {
      background-color: rgba(255, 255, 255, 0.2);
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
  }
  
  .main-navbar.navbar-transparent .nav-btn.nav-btn-primary {
      background: linear-gradient(135deg, #84cc16 0%, #22c55e 100%);
      border: none;
      color: #fff;
      box-shadow: 0 4px 15px rgba(132, 204, 22, 0.4);
  }
  
  .main-navbar.navbar-transparent .nav-btn.nav-btn-primary:hover {
       background: linear-gradient(135deg, #22c55e 0%, #84cc16 100%);
       transform: translateY(-3px);
       box-shadow: 0 6px 20px rgba(132, 204, 22, 0.5);
  }
  
  /* Scrolled State (Solid Glassmorphic Background) */
  .main-navbar.navbar-scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(132, 204, 22, 0.1);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  
  /* Adjust text/logo/link colors for light background */
  .main-navbar.navbar-scrolled .navbar-brand,
  .main-navbar.navbar-scrolled .nav-link {
    color: #0f172a;
    font-weight: 600;
  }
  
  .main-navbar.navbar-scrolled .nav-link:hover,
  .main-navbar.navbar-scrolled .nav-link.active {
    color: #84cc16;
    transform: translateY(-2px);
  }
  
  .main-navbar.navbar-scrolled .navbar-toggler {
      border-color: rgba(132, 204, 22, 0.3);
  }
  
  .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%2815, 23, 42, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  }
  
  /* Styles for Login/Register Buttons (Scrolled State) */
  .main-navbar.navbar-scrolled .nav-btn.btn-outline-light {
      border-color: #84cc16;
      color: #84cc16;
  }
  
  .main-navbar.navbar-scrolled .nav-btn.btn-outline-light:hover {
      background-color: #84cc16;
      color: #fff;
      transform: translateY(-2px);
      box-shadow: 0 4px 12px rgba(132, 204, 22, 0.3);
  }
  
  .main-navbar.navbar-scrolled .nav-btn.nav-btn-primary {
       background: linear-gradient(135deg, #84cc16 0%, #22c55e 100%);
       border: none;
       color: #fff;
       box-shadow: 0 4px 15px rgba(132, 204, 22, 0.4);
  }
  
  .main-navbar.navbar-scrolled .nav-btn.nav-btn-primary:hover {
       background: linear-gradient(135deg, #22c55e 0%, #84cc16 100%);
       transform: translateY(-3px);
       box-shadow: 0 6px 20px rgba(132, 204, 22, 0.5);
  }
  
  /* Add padding to main content area to avoid being hidden by fixed navbar */
  .main-content-padding {
    padding-top: 76px;
  }
  
  /* Style for collapsed menu background */
  @media (max-width: 991.98px) {
      .main-navbar .navbar-collapse {
          background: rgba(15, 23, 42, 0.95);
          backdrop-filter: blur(20px);
          padding: 1.5rem;
          border-radius: 16px;
          margin-top: 1rem;
          box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
      }
      
      .main-navbar .navbar-nav .nav-link {
          color: rgba(255, 255, 255, 0.9);
          padding: 0.8rem 1rem;
          border-radius: 8px;
          margin: 0.3rem 0;
      }
      
      .main-navbar .navbar-nav .nav-link:hover,
      .main-navbar .navbar-nav .nav-link.active {
          color: #a3e635;
          background: rgba(132, 204, 22, 0.1);
      }
      
      .main-navbar.navbar-scrolled .navbar-collapse {
           background: rgba(255, 255, 255, 0.98);
           backdrop-filter: blur(20px);
      }
      
      .main-navbar.navbar-scrolled .navbar-nav .nav-link {
          color: #0f172a;
      }
      
      .main-navbar.navbar-scrolled .navbar-nav .nav-link:hover,
      .main-navbar.navbar-scrolled .navbar-nav .nav-link.active {
          color: #84cc16;
          background: rgba(132, 204, 22, 0.1);
      }
  }
  
/* Modern Benefit Cards with 3D Effects */
.benefit-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 2px solid rgba(132, 204, 22, 0.1);
    border-radius: 24px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.benefit-card:hover {
    transform: translateY(-12px) rotateX(3deg);
    box-shadow: 0 20px 50px rgba(132, 204, 22, 0.25);
    border-color: rgba(132, 204, 22, 0.4);
}

.benefit-card .icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    background: linear-gradient(135deg, #84cc16 0%, #22c55e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(132, 204, 22, 0.3);
}

.benefit-card:hover .icon-circle {
    transform: rotate(360deg) scale(1.1);
}

.benefit-card .icon-circle i {
    font-size: 2rem;
    color: white;
}

/* Enhanced Button Styles */
.btn-primary {
    background: linear-gradient(135deg, #84cc16 0%, #22c55e 100%);
    border: none;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(132, 204, 22, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #22c55e 0%, #84cc16 100%);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 8px 25px rgba(132, 204, 22, 0.4);
}

.btn-outline-primary {
    border: 2px solid #84cc16;
    color: #84cc16;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, #84cc16 0%, #22c55e 100%);
    color: white;
    border-color: transparent;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(132, 204, 22, 0.4);
}

/* 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 */
}