:root {
  --primary-color: #218B82;
  --primary-dark: #1a726b;
  --primary-light: #9cc9b5;
  --text-color: #333;
  --text-light: #6c757d;
  --white: #ffffff;
  --error-color: #dc3545;
  --border-radius: 8px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #f5f7fa;
  color: var(--text-color);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.login-container {
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 100px auto 0;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
}

.login-card {
  width: 50%;
  padding: 3rem;
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header .login-logo {
  height: 80px;
  margin-bottom: 1rem;
}

.login-header h1 {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.login-header h1 span {
  font-weight: 700;
  color: var(--primary-dark);
}

.login-header p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-color);
}

.input-with-icon {
  position: relative;
}

.input-with-icon i:first-of-type {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
}

.input-with-icon input {
  width: 100%;
  padding: 12px 15px 12px 45px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-with-icon input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(33, 139, 130, 0.2);
  outline: none;
}

.input-with-icon input.is-invalid {
  border-color: var(--error-color);
}

#togglePassword {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  cursor: pointer;
  display: none;
}

.form-footer {
  margin-top: 2rem;
}

.login-btn {
  width: 100%;
  padding: 12px;
  background-color: var(--primary-color);
  color:black;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-btn:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
}

.login-btn:active {
  transform: translateY(0);
}

.register-link {
  text-align: center;
  margin-top: 1rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.register-link a {
  color: var(--primary-color);
  font-weight: 500;
  text-decoration: none;
  transition: all 0.3s ease;
}

.register-link a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.login-image {
  width: 50%;
  background-color: var(--primary-light);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.login-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 2rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: var(--white);
}

.image-overlay h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.image-overlay p {
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Responsive Design */
@media (max-width: 992px) {
  .login-container {
    flex-direction: column;
    margin: 80px auto 0;
    max-width: 600px;
  }
  
  .login-card,
  .login-image {
    width: 100%;
  }
  
  .login-image {
    height: 200px;
  }
}

@media (max-width: 576px) {
  .login-card {
    padding: 2rem;
  }
  
  .login-header h1 {
    font-size: 1.5rem;
  }
}

/* Alert styling */
.alert {
  border-radius: var(--border-radius);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1rem;
}

.alert-danger {
  background-color: rgba(220, 53, 69, 0.1);
  border-left: 4px solid var(--error-color);
}




:root {
  --primary-color: #218B82;
  --text-color: #ffffff;
  --secondary-color: #f8f9fa;
  --overlay-color: rgba(112, 95, 95, 0.5); /* 705F5F with 50% opacity */
  --gray-overlay: rgba(0, 0, 0, 0.5); /* Gray overlay with 50% opacity */
  --news-title-bg: #5EB691; /* Background color for news title */
  
}
.navbar {
  background-color: var(--text-color);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.navbar-brand img {
  height: 40px;
  margin-right: 10px;
  transition: transform 0.3s ease, rotate 0.3s ease; /* Logo image animation */
}

.navbar-brand:hover img {
  transform: scale(1.1) rotate(5deg); /* Scale up and rotate on hover */
}

.navbar-brand span {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: bold;
  position: relative;
  text-decoration: none;
  transition: color 0.3s ease;
}

.navbar-brand span::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.navbar-brand:hover span {
  color: #155e57;
}

.navbar-brand:hover span::after {
  width: 100%; /* Underline animation on hover */
}

.nav-link {
  color: var(--primary-color) !important;
  margin: 0 10px;
  font-weight: bold; /* Bold text */
  position: relative;
  text-decoration: none;
  transition: color 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.nav-link:hover {
  color: #155e57 !important;
}

.nav-link:hover::after {
  width: 100%; /* Underline animation on hover */
}

/* Active Page Highlight */
.nav-link.active {
  background-color: var(--primary-color);
  color: var(--text-color) !important;
  border-radius: 4px;
  padding: 0.5rem 1rem;
}

.nav-link.active::after {
  display: none; /* Remove underline for active page */
}

/* Collapsible Menu */
.navbar-toggler {
  border-color: var(--primary-color);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(33, 139, 130, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

.navbar-collapse {
  background-color: var(--text-color);
}

.navbar-collapse .nav-link {
  color: var(--primary-color) !important;
  font-weight: bold; /* Bold text in collapsible menu */
}

.navbar-collapse .nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  bottom: -5px;
  left: 0;
  transition: width 0.3s ease;
}

.navbar-collapse .nav-link:hover {
  color: #155e57 !important;
}

.navbar-collapse .nav-link:hover::after {
  width: 100%; /* Underline animation on hover */
}

.navbar-collapse .nav-link.active {
  background-color: var(--primary-color);
  color: var(--text-color) !important;
  border-radius: 4px;
  padding: 0.5rem 1rem;
}

.navbar-collapse .nav-link.active::after {
  display: none; /* Remove underline for active page */
}


.navbar-collapse.show ~ .overlay {
  display: block;
}

.navbar .btn {
  background-color: var(--primary-color);
  border: none;
  padding: 0.70rem 1rem;
  font-size: 1rem;
  font-weight: bold;
}

.navbar .btn:hover {
  background-color: #155e57;
}


  /* Hero Section */
 /* Hero Section */
/* Hero Section */
.hero-section {
  background-image: url(assets/banner.png); 
  background-size: cover;
  background-position: center;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(112, 95, 95, 0.7); /* 705F5F with 70% opacity */
}

.hero-section .container {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--text-color);
  padding: 0 90px; /* Add spacing on left and right */
}

.hero-section .title {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 2rem;

}

.hero-section .welcome-text {
  font-size: 1rem;
  margin-bottom: 3rem;
  text-align: justify; 
}

.hero-section .btn {
  background-color: var(--primary-color);
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: bold;
}

.hero-section .btn:hover {
  background-color: #155e57;
}

/* Responsive Adjustments for Hero Section */
@media (max-width: 768px) {
  .hero-section .title {
    font-size: 1.5rem; /* Smaller font size for mobile */
  }

  .hero-section .welcome-text {
    font-size: 0.9rem; /* Smaller font size for mobile */
  }

  .hero-section .btn {
    padding: 0.5rem 1.5rem; /* Smaller button for mobile */
  }
}


  /* Footer */
  footer {
    background-color: var(--primary-color);
    color: var(--text-color);
    padding: 2rem 0;
  }

  .footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
  }

  .footer-logo img {
    max-height: 150px; /* Adjust as needed */
    width: auto;
    margin: 1rem; /* Margin around the logo */
    transition: transform 0.3s ease, rotate 0.3s ease; /* Logo image animation */
  }

  .footer-logo:hover img {
    transform: scale(1.1) rotate(5deg); /* Scale up and rotate on hover */
  }

  .footer-contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .footer-contact p {
    margin: 0;
    text-align: justify; /* Justified text */
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .footer-links a {
    color: var(--text-color);
    text-decoration: none;
    margin: 5px 0;
    font-weight: bold; /* Bold text */
    position: relative;
    transition: color 0.3s ease;
  }

  .footer-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: var(--text-color);
    bottom: -5px;
    left: 0;
    transition: width 0.3s ease;
  }

  .footer-links a:hover {
    color: #d1e7dd; /* Lighter color on hover */
  }

  .footer-links a:hover::after {
    width: 100%; /* Underline animation on hover */
  }

  .footer-divider {
    border-left: 2px solid var(--text-color);
    height: 100%;
    margin: 0 20px;
  }

  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .footer-logo, .footer-contact, .footer-links {
      text-align: center;
      margin-bottom: 1.5rem;
    }

    .footer-logo img {
      max-height: 100px;
    }

    .footer-contact p {
      text-align: center; /* Center text in mobile view */
    }

    .footer-divider {
      display: none;
    }
  }

  /* Buttons */
  .btn-primary {
    background-color: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    transition: transform 0.8s ease, box-shadow 0.8s ease;
  }

  .btn-primary:hover {
    background-color: #155e57;
    transform: translateY(-5px);
    transition: transform 0.3s ease-in-out;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  }



   /* About Us Section */
  /* About Us Section */
 /* About Us Section */
 .about-section {
  padding: 4rem 0;
}

.about-section img {
  width: 100%;
  border-radius: 8px;
  margin-top: 3rem;
}

.about-section h1 {
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 2.5rem;
}

.about-section p {
  color: #555;
  font-size: 1.1rem;
  text-align: justify; 
  margin-bottom: 1.5rem; /* Space for the button */
}

.about-section .learn-more-btn {
  display: flex;
  justify-content: flex-end;
}

.about-section .btn {
  background-color: var(--primary-color);
  border: none;
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: bold;
}

.about-section .btn:hover {
  background-color: #155e57;
}



   /* Home Page */
 
  /* News Section */
  .news-section {
    padding: 4rem 0;
    background-color: var(--secondary-color);
  }

  .news-section h1 {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 2.5rem;
    text-align: center;
  }

  .news-card {
    background-color: var(--text-color);
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2rem; /* Space between cards */
    position: relative;
  }

  .news-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }

  .news-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
  }

  .news-card:hover img {
    transform: scale(1.1);
  }

  .news-card .title {
    background-color: var(--news-title-bg);
    color: var(--text-color);
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .news-card .content {
    padding: 1rem;
  }

  .news-card .content p {
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Limit to 3 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: justify; /* Justified text */
  }

  .news-card .footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-top: 1px solid #ddd;
  }

  .news-card .footer .date {
    color: #777;
    font-size: 0.9rem;
  }

  .news-card .footer .read-more {
    color: var(--primary-color);
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
  }

  .news-card .footer .read-more:hover {
    color: #155e57;
  }

   /* View More Button */
   .view-more-btn {
    text-align: center;
    margin-top: 2rem;
  }

  .view-more-btn .btn {
    background-color: var(--primary-color);
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .view-more-btn .btn:hover {
    background-color: #155e57;
    transform: translateY(-5px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
  }


 /* Services Section */
 .services-section {
  padding: 4rem 0;
}

.services-section h1 {
  color: var(--primary-color);
  font-weight: bold;
  margin-bottom: 2.5rem;
  text-align: center;
}

.service-card {
  background-color: var(--text-color);
  border: 2px solid var(--primary-color);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  margin-bottom: 1.5rem; /* Space between cards in mobile view */
  position: relative;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.service-card i {
  font-size: 3rem;
  color: var(--primary-color);
  margin-bottom: 1rem;
  transition: transform 0.3s ease;
}

.service-card:hover i {
  transform: rotate(15deg) scale(1.2);
}

.service-card h3 {
  color: var(--primary-color);
  font-weight: bold;
}

.service-link {
  text-decoration: none;
  color: inherit;
}

.service-link:hover {
  text-decoration: none;
}

.login-btn {
  color: rgb(9, 7, 7) !important; /* Ensure text color remains white */
  background: none !important; /* Remove background */
  border: none !important; /* Remove any borders */
  padding: 8px 15px;
  transition: color 0.3s ease-in-out;
}

.login-btn:hover {
  color: #ddd !important; /* Change text color on hover instead of blue */
  background: none !important; /* Prevent Bootstrap's blue hover effect */
  text-decoration: none; /* Remove underline */
}
