:root {
  --lydo-primary: #28a745;
  --lydo-secondary: #6c757d;
  --lydo-light: #f8f9fa;
  --lydo-dark: #343a40;
  --lydo-hover: #218838;
  --font-primary: "Montserrat", sans-serif;
  --font-secondary: "Roboto", sans-serif;
}

body {
  font-family: var(--font-secondary);
}

/* Header styling */
.navbar-brand {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--lydo-primary) !important;
  display: flex;
  align-items: center;
}

.navbar-brand img {
  height: 40px;
  width: auto;
  margin-right: 10px;
}

/* Improved logo alignment for all pages */
.navbar-brand,
.card-title,
.modal-title {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Specific fix for card title centering */
.card-title.text-center {
  justify-content: center;
  width: 100%;
}

/* Fix for modal title */
.modal-title {
  width: 100%;
  justify-content: center;
}

/* Fix for logo in headers */
.card-title img,
.modal-title img {
  vertical-align: middle;
  margin-right: 10px;
}

.navbar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 0.8rem 1rem;
}

.navbar.position-sticky {
  position: sticky !important;
  top: 0;
  z-index: 1030;
  background-color: var(--bs-body-bg, #fff);
}

.nav-link {
  font-family: var(--font-primary);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.5rem 1rem !important;
  transition: all 0.3s ease;
}

.nav-link:hover {
  color: var(--lydo-primary) !important;
  transform: translateY(-2px);
  font-weight: 700;
}

.nav-link.active {
  color: var(--lydo-primary) !important;
  font-weight: 700;
  background-color: rgba(40, 167, 69, 0.1);
  border-bottom: 3px solid var(--lydo-primary);
  border-radius: 4px 4px 0 0;
}

/* Dropdown styling */
.dropdown-menu {
  border-radius: 0.25rem;
  border-top: 3px solid var(--lydo-primary);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.dropdown-item {
  font-family: var(--font-secondary);
  font-weight: 400;
}

.dropdown-item:hover {
  background-color: var(--lydo-light);
  color: var(--lydo-primary);
}

/* Login button */
.btn-outline-success {
  font-family: var(--font-primary);
  font-weight: 600;
  letter-spacing: 0.5px;
  border-color: var(--lydo-primary);
  color: var(--lydo-primary);
  transition: all 0.3s ease;
}

.btn-outline-success:hover {
  background-color: var(--lydo-hover);
  border-color: var(--lydo-hover);
  transform: translateY(-2px);
}

/* Form styling */
.form-control:focus,
.form-select:focus,
.form-check-input:focus,
.btn:focus {
  border-color: var(--lydo-primary);
  box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25); 
  outline: 0;
}

.form-check-input:checked {
  background-color: var(--lydo-primary);
  border-color: var(--lydo-primary);
}

.input-group-text {
  background-color: var(--lydo-light);
  border-color: #ced4da;
  color: var(--lydo-secondary);
}

/* Button focus styles */
.btn-outline-success:focus,
.btn-success:focus {
  box-shadow: 0 0 0 0.25rem rgba(40, 167, 69, 0.25);
}

.btn-outline-secondary:focus {
  box-shadow: 0 0 0 0.25rem rgba(108, 117, 125, 0.25);
}

.btn-close {
  box-shadow: none !important;
  outline: none !important;
}

#togglePassword {
  color: #6c757d;
  border-color: #d7dade;
}

#togglePassword:hover,
#togglePassword:focus {
  color: #5a6268;
  border-color: #d7dade;
  box-shadow: none !important;
}

#toggleConfirmPassword {
  color: #6c757d;
  border-color: #d7dade;
}

#toggleConfirmPassword:hover,
#toggleConfirmPassword:focus {
  color: #5a6268;
  border-color: #d7dade;
  box-shadow: none !important;
}

/* For Chrome, Safari, Edge, Opera */
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Carousel Styles */
.hero-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  color: white;
  position: relative;
  overflow: hidden;
}

.slide-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.hero-section .container {
  position: relative;
  z-index: 3;
}

.carousel-item {
  min-height: 80vh;
}

.carousel-item .hero-section {
  min-height: 80vh;
  margin: 0;
}

.carousel-control-prev,
.carousel-control-next {
  width: 5%;
  z-index: 4;
}

.carousel-indicators {
  margin-bottom: 2rem;
  z-index: 4;
}

.carousel-indicators button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin: 0 5px;
}

.welcome-text {
  font-size: 1.5rem;
  line-height: 1.8;
}

.section-title {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 30px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background-color: #28a745;
}

.news-card {
  transition: transform 0.3s;
  height: 100%;
}

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

.mission-vision-card {
  background-color: #f8f9fa;
  border-radius: 10px;
  padding: 20px;
  height: 100%;
}

.service-pledge {
  background-color: #28a745;
  color: white;
  padding: 40px 0;
}

/* New styles for different heading sizes */
.carousel-item:not(.active) h1 {
  font-size: 2.5rem;
  font-weight: 600;
}

.carousel-item:not(.active) .welcome-text {
  font-size: 1.2rem;
}