 :root {
  --dark: #222;
  --light: #f8f9fa;
  --light-green: #eef0e5;
  --light-beige: #f8f3ef;
}

/* General section improvements */
section {
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}

/* About Section with a more dynamic layout */
#about .row {
  align-items: center;
}
#about img {
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Programs Section card hover effect */
.program-card {
  transition: all 0.4s ease;
  border-radius: 15px;
  padding: 40px 30px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  height: 100%;
}
.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}
/* Programs Section card hover effect */
.program-card {
    transition: all 0.4s ease;
    border-radius: 15px;
    padding: 40px 30px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    height: 100%;
}
.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Events Section */
.event-card {
  border: none;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  margin-bottom: 30px;
}

.event-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.15);
}

.event-img {
  height: 200px;
  object-fit: cover;
  width: 100%;
}

.event-body {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.event-date {
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 10px;
}

.event-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--dark);
}

.event-description {
  color: #666;
  margin-bottom: 15px;
  flex-grow: 1;
}

.event-location {
  display: flex;
  align-items: center;
  color: #666;
  margin-bottom: 15px;
}

.event-location i {
  margin-right: 8px;
  color: var(--secondary);
}

.event-btn {
  background-color: var(--primary);
  color: white;
  border: none;
  padding: 8px 20px;
  border-radius: 30px;
  font-weight: 500;
  transition: all 0.3s ease;
  align-self: flex-start;
  text-decoration: none;
  display: inline-block;
}

.event-btn:hover {
  background-color: var(--secondary);
  color: white;
  transform: translateY(-2px);
}

/* Navbar */
.navbar { 
  background: var(--light-green); 
  padding: 15px 0;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05); /* Add subtle shadow */
}
.navbar.scrolled {
  padding: 8px 0;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.navbar .nav-link, .navbar-brand { 
  color: var(--primary) !important; /* Change text color for visibility */
  font-weight: 500; 
  transition: all 0.3s ease;
}
.navbar .nav-link:hover {
  color: var(--secondary) !important;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('/assets/adminPanel/wellsense/img/coachhero.jpeg') center/cover no-repeat;
  position: relative;
  color: #fff;
  text-align: center;
}
.hero-content {
  max-width: 800px;
  margin: 0 auto;
}
.hero h1 { 
  font-size: 3.5rem; 
  font-weight: 800; 
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}
.hero p { 
  font-size: 1.3rem; 
  margin-bottom: 2rem;
  font-weight: 300;
}


/* Sections */
section { 
  padding: 100px 0; 
}
.section-title { 
  text-align: center; 
  margin-bottom: 60px; 
}
.section-title h2 {
  font-weight: 700;
  color: var(--primary);
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 15px;
}
.section-title h2:after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: var(--secondary);
}
.section-title p {
  color: #666;
  max-width: 700px;
  margin: 0 auto;
}

/* About */
#about {
  background: var(--light-green);
}
.about-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.about-content p.lead {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #444;
}

/* Programs */
.program-card {
  background: #fff;
  border-radius: 15px;
  padding: 40px 30px;
  text-align: center;
  transition: all 0.4s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  height: 100%;
  border-bottom: 4px solid transparent;
}
.program-card:hover { 
  transform: translateY(-10px); 
  border-bottom: 4px solid var(--secondary);
  box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}
.program-card i { 
  font-size: 3.5rem; 
  color: var(--secondary); 
  margin-bottom: 25px; 
}
.program-card h5 {
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--primary);
}
.program-card p {
  color: #666;
  line-height: 1.6;
}

/* Coach Program */
#coach {
  background: var(--light-beige);
}
.coach-img {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}
.coach-content h3 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 20px;
}
.coach-content p {
  color: #555;
  line-height: 1.8;
  margin-bottom: 30px;
}


/* Contact */
.contact-info {
  margin-bottom: 25px;
  display: flex;
  align-items: center;
}
.contact-info i { 
  font-size: 1.8rem; 
  color: var(--secondary); 
  margin-right: 15px;
  width: 40px;
}
.contact-info div {
  color: #444;
}


/* Footer */
footer {
  background: var(--dark);
  color: #bbb;
  padding: 60px 0 30px;
}
footer a { 
  color: #fff; 
  text-decoration: none; 
  transition: all 0.3s ease;
}
footer a:hover { 
  color: var(--secondary); 
  text-decoration: none;
}
.social-icons {
  margin: 20px 0;
}
.social-icons a {
  display: inline-block;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  text-align: center;
  line-height: 40px;
  margin-right: 10px;
  transition: all 0.3s ease;
}
.social-icons a:hover {
  background: var(--secondary);
  transform: translateY(-3px);
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--secondary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}
.back-to-top.active {
  opacity: 1;
  visibility: visible;
}
.back-to-top:hover {
  background: #8c5737;
  transform: translateY(-3px);
}

/* Responsive Adjustments */
@media (max-width: 992px) {
  .hero h1 { font-size: 2.8rem; }
  section { padding: 80px 0; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 2.3rem; }
  .hero p { font-size: 1.1rem; }
  .section-title { margin-bottom: 40px; }
}
#page-wrapper {
  min-height: 100%;
  display: flex;
  flex-direction: column;
}
#main-content {
  flex: 1; /* pushes footer down */
}
.toast-msg {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #4d5628;
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  display: none;
  z-index: 9999;
}
.cart-badge {
  position: absolute;
  top: 2px;
  right: 0px;
  background: #dc3545;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 6px;
  border-radius: 50%;
  line-height: 1;
}
/* spacing because header is sticky */
.page-wrapper {
  padding-top: 90px;
}

/* ===== BANNER ===== */
.listing-banner {
  width: 100%;
  background: linear-gradient(
    135deg,
    #4d5628 0%,
    #6a7740 60%,
    #a56a42 100%
  );
  color: #fff;
  padding: 70px 20px 60px;
  text-align: center;
}

.listing-banner h1 {
  font-size: 34px;
  font-weight: 600;
  margin-bottom: 10px;
}

.listing-banner p {
  font-size: 15px;
  max-width: 640px;
  margin: 0 auto;
  opacity: 0.9;
}

/* ===== SIDEBAR FILTER ===== */
.filter-sidebar {
  background: #ffffff;
  border-radius: 16px;
  padding: 22px 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.08);
  position: sticky;
  top: 110px;
}

.filter-sidebar h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 18px;
}

.filter-block {
  margin-bottom: 22px;
}

.filter-block label {
  font-size: 12px;
  font-weight: 600;
  color: #666;
  margin-bottom: 6px;
  display: block;
}

.filter-sidebar select {
  height: 44px;
  border-radius: 12px;
  border: 1px solid #e2e2e2;
  font-size: 14px;
  background: #fafafa;
}

.filter-sidebar select:focus {
  border-color: #4d5628;
  box-shadow: 0 0 0 0.15rem rgba(77, 86, 40, 0.25);
}

/* ===== CARD GRID ===== */
.package-card {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
  transition: transform 0.2s ease;
  height: 100%;
}

.package-card:hover {
  transform: translateY(-5px);
}

.card-media {
  height: 170px;
  background: linear-gradient(135deg, #3f6b72, #2f4f55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 600;
  position: relative;
  padding: 0px 5px;
}

.card-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--secondary);
  color: #fff;
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 12px;
}

.card-body-custom {
  padding: 16px;
}

.card-body-custom h5 {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 6px;
}

.card-body-custom p {
  font-size: 13px;
  color: #666;
  min-height: 40px;
}

.price {
  font-weight: 700;
  color: var(--secondary);
  font-size: 16px;
}

.btn-card {
  background: var(--secondary);
  color: #fff;
  border-radius: 20px;
  font-size: 13px;
  padding: 6px 14px;
}

.btn-card:hover {
  background: var(--primary);
  color: #fff;
}
.mainsection{
  margin-top: -30px !important;
}
.btn-icon-cart {
  background: var(--secondary);
  color: #fff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.btn-icon-cart:hover {
  background: var(--primary);
  color: #fff;
}
.group-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.group-item {
  font-size: 12px;
  color: #4d5628;
  background: #f4f6f1;
  padding: 4px 8px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.group-item i {
  color: #28a745;
  font-size: 11px;
}

.btn-icon-view {
  background: #f4f6f1;
  color: #4d5628;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon-view:hover {
  background: #4d5628;
  color: #fff;
}

/* MODAL */
.package-modal-header {
  background: linear-gradient(135deg,#4d5628,#6a7740);
  color: #fff;
}

.test-list {
  max-height: 300px;
  overflow-y: auto;
  font-size: 13px;
}

.test-item {
  padding: 6px 0;
  border-bottom: 1px dashed #e5e5e5;
}

.test-item i {
  color: #28a745;
  margin-right: 6px;
}
/* ===== MODAL TEST LIST SCROLL DESIGN ===== */
.test-list {
  max-height: 320px;
  overflow-y: auto;
  padding-right: 8px;
}

/* Chrome, Edge, Safari */
.test-list::-webkit-scrollbar {
  width: 6px;
}

.test-list::-webkit-scrollbar-track {
  background: #f1f3ee;
  border-radius: 10px;
}

.test-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #a56a42, #4d5628);
  border-radius: 10px;
}

.test-list::-webkit-scrollbar-thumb:hover {
  background: #4d5628;
}

/* Firefox */
.test-list {
  scrollbar-width: thin;
  scrollbar-color: #4d5628 #f1f3ee;
}

/* Individual test row refinement */
.test-item {
  padding: 7px 4px;
  border-bottom: 1px dashed #e3e3e3;
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.test-item:last-child {
  border-bottom: none;
}

.test-item i {
  margin-top: 3px;
  font-size: 12px;
  color: #28a745;
}

.test-item span {
  font-size: 12px;
  color: #888;
}
.price-box {
  background: #fff;
  padding: 18px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.cart-item {
  background: #fff;
  padding: 14px;
  border-radius: 10px;
  margin-bottom: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-item h6 {
  margin: 0;
  font-size: 14px;
}

.cart-item small {
  color: #777;
}

.btn-remove {
  background: transparent;
  border: none;
  color: #dc3545;
  font-size: 16px;
}
.patient-card {
  background: #f9fafb;
  border: 1px solid #e3e6ea;
  border-radius: 12px;
  padding: 16px;
}
.patient-card label {
  font-weight: 600;
  font-size: 14px;
}
.patient-card i {
  color: #28a745;
}
/* CART PAGE */
.cart-wrapper {
  background: #f7f8f3;
  padding: 30px 0;
}

.cart-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px dashed #e5e5e5;
}

.cart-item:last-child {
  border-bottom: none;
}

.cart-item h6 {
  font-size: 15px;
  margin-bottom: 4px;
  font-weight: 600;
}

.cart-item small {
  color: #777;
  font-size: 12px;
}

.btn-remove {
  background: #ffeaea;
  border: none;
  color: #d9534f;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove:hover {
  background: #d9534f;
  color: #fff;
}

.price-box {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.1);
  position: sticky;
  top: 90px;
}

.price-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  margin-bottom: 8px;
}

.price-row strong {
  font-weight: 600;
}

.final-price {
  font-size: 18px;
  font-weight: 700;
  color: #4d5628;
}

.switch-wrap {
  background: #f9faf6;
  padding: 12px 14px;
  border-radius: 10px;
  margin-top: 20px;
}