body,
html {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  font-weight: 350;
  font-style: normal;
  overflow-x: hidden;
  width: 100%;
}

body {
  /* padding-top: 95px; */
  background-color: #fffbe6;
}

body::-webkit-scrollbar {
  display: none;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1;
}

nav {
  padding: 20px 100px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: rgba(50, 50, 93, 0.25) 0px 2px 5px -1px,
    rgba(0, 0, 0, 0.3) 0px 1px 3px -1px;
  z-index: 1;
  background-color: #fffbe6;
}

nav.scrolled {
  background: #ffffff;
  transition: 0.3s ease-in-out;
}

nav .logo {
  display: flex;
  align-items: center;
}
nav .logo img {
  height: 50px;
  width: auto;
  margin-right: 10px;
}

nav ul {
  list-style: none;
  display: flex;
}
nav ul li {
  margin-left: 1.5rem;
}
nav ul li a {
  text-decoration: none;
  color: #000;
  font-size: 95%;
  font-weight: 400;
  padding: 4px 8px;
  border-radius: 5px;
  transition: all 0.3s ease;
  display: inline-block;
  line-height: 1.5;
  vertical-align: middle;
}

nav ul li a:hover {
  color: #006400;
  background-color: rgba(0, 100, 0, 0.1);
}

/* Dropdown styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-button {
  text-decoration: none;
  color: #000;
  font-size: 95%;
  font-weight: 400;
  padding: 4px 8px;
  border-radius: 5px;
  cursor: pointer;
  display: inline-block;
  line-height: 1.5;
  vertical-align: middle;
  transition: all 0.3s ease;
}

.dropdown-button:hover {
  color: #006400;
  background-color: rgba(0, 100, 0, 0.1);
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  min-width: 150px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  z-index: 1;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 5px;
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.dropdown-content.show {
  opacity: 1;
  transform: translateY(0);
}

.dropdown-item {
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  color: #333;
  transition: background-color 0.2s;
  cursor: pointer;
}

.dropdown-item:hover {
  background-color: #f1f1f1;
  color: #006400;
}

/* Banner */
.banner {
  background-color: #006400;
  background-image: linear-gradient(rgba(0, 50, 0, 0.7), rgba(0, 50, 0, 0.7)), url('https://via.placeholder.com/1920x400');
  background-size: cover;
  background-position: center;
  color: white;
  text-align: center;
  padding: 80px 0;
  margin-bottom: 40px;
}

.banner h1 {
  font-size: 48px;
  font-weight: bold;
}

/* Gallery section */
.gallery-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.gallery-controls {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  align-items: center;
}

.view-controls {
  display: none;
  margin-bottom: 20px;
}

.view-controls.show {
  display: flex;
  gap: 10px;
}

.view-button {
  background-color: #006400;
  color: white;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.view-button:hover {
  background-color: #005200;
  transform: translateY(-2px);
}

.view-button.active {
  background-color: #004400;
}

/* Gallery grid view */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.gallery-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  background-color: white;
}

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

.gallery-item-caption {
  padding: 15px;
  text-align: center;
  font-weight: 500;
}

/* Gallery list view */
.gallery-list {
  display: none;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 40px;
}

.gallery-list.show {
  display: flex;
}

.list-item {
  display: flex;
  align-items: center;
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.list-item img {
  width: 150px;
  height: 100px;
  object-fit: cover;
}

.list-item-details {
  padding: 15px;
}

.list-item-title {
  font-weight: 600;
  margin-bottom: 5px;
}

.list-item-description {
  color: #666;
  font-size: 14px;
}

/* Events section */
.events-section {
  display: none;
  margin-bottom: 40px;
}

.events-section.show {
  display: block;
}

.event-card {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 15px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.event-title {
  font-weight: 600;
  font-size: 18px;
  margin-bottom: 10px;
}

.event-date {
  color: #006400;
  font-weight: 500;
  margin-bottom: 10px;
}

.event-description {
  color: #333;
  margin-bottom: 15px;
}

.hamburger {
  display: none;
  cursor: pointer;
}

.hamburger .line {
  width: 25px;
  height: 2px;
  background-color: #004906;
  display: block;
  margin: 7px auto;
  transition: all 0.3s ease-in-out;
}
.hamburger-active {
  transition: all 0.3s ease-in-out;
  transition-delay: 0.6s;
  transform: rotate(45deg);
}

.hamburger-active .line:nth-child(2) {
  width: 0px;
}

.hamburger-active .line:nth-child(1),
.hamburger-active .line:nth-child(3) {
  transition-delay: 0.3s;
}

.hamburger-active .line:nth-child(1) {
  transform: translateY(12px);
}

.hamburger-active .line:nth-child(3) {
  transform: translateY(-5px) rotate(90deg);
}

.menubar {
  position: absolute;
  top: 0;
  left: -60%;
  display: flex;
  flex-direction: column;

  align-items: flex-start;
  width: 60%;
  height: 100vh;

  background-color: #004906;
  transition: all 0.5s ease-in;
  z-index: 2;
}
.active {
  left: 0;
  box-shadow: #959da533 0px 8px 24px;
}

.menubar ul {
  padding: 0;
  list-style: none;
}
.menubar ul li {
  margin-bottom: 32px;
}

.menubar ul li a {
  text-decoration: none;
  color: #fff;
  padding: 5px 20px;
  border-radius: 5px;
}

@media screen and (min-width: 721px) {
}

@media screen and (max-width: 720px) {
  .hamburger {
    display: block;
  }

  nav {
    padding: 5%;
  }

  nav ul {
    display: none;
  }
}

.home {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 50px 0;
  height: 100lvh;
  flex-grow: 1;
}

.text-content {
  max-width: 50%;
  padding-left: 100px;
}

.text-content h1 {
  color: #004d09;
  font-size: 48px;
  margin-bottom: 20px;
  text-align: left;
}

p {
  color: #004d09;
  font-size: 18px;
  margin-bottom: 15px;
}

.cta-button,
button {
  background-color: #006400;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.image-content {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-right: -60px;
}

.robot-hand {
  width: 100%;
  max-width: 800px;
}

/* Services */

.services_banner {
  background-image: url(images/services_banner.jpg);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  height: 300px;
}

.service-icon{
 
  width: 100%;
  background-size: cover;
  height: 150px;
}

.incubation-card .service-icon {
  background-image: url('images/incubation1.png');
}

.training-card .service-icon {
  background-image: url('images/training2.JPG');
}

.venue-card .service-icon {
  background-image: url('images/main_boardroom\ \(2\).jpg');
}

.office-card .service-icon {
  background-image: url('images/incubation3.png');
}

.services_container {
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 50px 100px;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}
.service-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease;
  overflow: hidden;
}


.services-content{
  padding: 20px;
}
.service-card:hover {
  background-color:#004906;
  color: #fffbe6;
  transform: scale(105%);
  transition: ease-in-out 0.4s;

  a{
    color: #004906;
  }

  .services-content p, .services-content h2{
    color: #fff;
  }

  .services-content button{
    background-color: #fff;
    color: #004906;
  }
}

.service-card button:hover{
  background-color: #000;
  color: #fff;
}

.service-icon {
  font-size: 48px;
  margin-bottom: 15px;
  color: #006400;
}
.service-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #006400;
}
.service-description {
  margin-bottom: 15px;
}
.apply-btn {
  background-color: #006400;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  
}
.apply-btn:hover {
  background-color: #004d00;
}

.drone-tour {
  text-align: center;
  background-color: #fcfcfc;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.drone-tour iframe {
  height: 450px;
}

/* About us Page */

.about_ {
  max-width: 100%;
  margin: 0 auto;
  text-align: justify;
}

.about-content {
  display: flex;
  padding: 60px 100px;
  gap: 20px;
}

.about-content iframe {
  flex: 1;
  border-radius: 10px;
}

.about_ {
  flex: 1;
}

h1 {
  font-size: 2.5rem;
}

.about_image h1 {
  color:#eaffdd;
  text-transform: capitalize;
}

.about_image,
.contact-banner,
.clients_image,
.services_banner,
.gallery_banner {
  width: 100%;
  height: 300px;
  background: linear-gradient(to bottom right, #003a0fcd, #003f12b1),
    url("images/Firefly\ Create\ a\ striking\ web\ banner\ in\ an\ illustrative\ style\ that\ embodies\ the\ theme\ of\ the\ Fourth\ .jpg")
      no-repeat center center/cover;

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  display: flex;
  justify-content: center;
  align-items: center;
  color:#eaffdd;
}

.error-message {
  color: red;
  font-size: 0.8em;
  margin-top: 5px;
}

input.error,
textarea.error {
  border: 1px solid red;
}

/* Footer */


.footer {
  background-color: #004d00;
  color: white;
  display: flex;
  flex-direction: column; /* Stack children vertically */
  padding: 40px 100px;
  align-items: center; /* Center items horizontally */
}

.footer-main-content {
  display: flex;
  justify-content: space-between; /* Distribute items */
  width: 100%; /* Take full width of footer */
  max-width: 1200px; /* Optional: constrain width for larger screens */
  margin-bottom: 20px; /* Space between main content and bottom copyright */
}

.copyright {
  display: block;
  list-style: none;
  padding: 0; /* Remove default padding for ul */
}

.copyright li {
  margin-bottom: 15px; /* Consistent space between list items */
}

.copyright a {
  text-decoration: none;
  color:#eaffdd;
  font-weight: bold;
}

.rights-reserved-bottom {
  text-align: center; /* Center the text */
  margin-top: 50px; /* Increased space above the copyright text to push it further down */
  color: white;
  font-size: 0.9em;
}

.rights-reserved-bottom span {
  color: white; /* Ensure text color is white */
}

.social-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center; /* Center icons horizontally */
  align-items: center;
  gap: 10px;
  margin: 10px 0; /* Adjust margin as needed */
}

.social-icons img {
  height: 50px;
  width: 50px;
}

.social-icons a {
  color: #005e23; /* Set the icon color */
  font-size: 24px; /* Adjust size as needed */
  margin: 0 10px;
  text-decoration: none;
}

.social-icons a:hover {
  color:#eaffdd; /* Optional: Change to a darker shade for hover effect */
}

.social-icons .fab {
  color: #ffffff; /* Set the icon color */
  font-size: 24px; /* Adjust size as needed */
  margin: 0 10px;
}

.social-icons .fab:hover {
  color:#eaffdd; /* Optional: Change to a darker shade for hover effect */
}

/* Mission, vision and goals */

.mission_container {
  background-color:#eaffdd;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
  padding: 50px 100px;
}

.mission_container h2,
p {
  color: #004d00;
}

.mvv-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  justify-content: space-around;
  gap: 20px;
}
.mvv-item {
  flex-basis: calc(33.333% - 20px);
  background-color: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin-bottom: 20px;
}

.title, .description{
  padding: 10px;
}

.mvv-item:hover {
  background-color:#004906;
color: #fffbe6;
transform: scale(105%);
transition: ease-in-out 0.4s;

p,span{
  color: #fff;
  transition: ease-in-out 0.4s;
}

.divider{
  background-color: #c0eba6;
}
}
.icon {
 width: 100%;
 height: 200px;
 object-fit: cover;
 object-position: center bottom;
margin-bottom: 10px;
background-position: center; /* Focuses on the bottom of the image */
background-repeat: no-repeat; /* Prevents the image from repeating */
}

.mission{
 background-image: url(images/trainingroom2.jpg);
}

.vision{
  background-image: url(images/hotdesk1.jpg);

}

.values{
  background-image: url(images/trainingroom.jpg);
}

.title {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
 
  
  
}
.title span {
  color: #004d00;
}
.description {
  font-size: 14px;
  color: #004d00;
  line-height: 1.5;
}
.divider {
  width: 50px;
  height: 2px;
  background-color: #004d00;
  margin: 15px auto;
}

/* Why us */

#why-us {
  width: 100%;
  background: linear-gradient(to bottom right, #dffdcdb3,#eaffddd5),
    url("https://images.pexels.com/photos/934062/pexels-photo-934062.jpeg?auto=compress&cs=tinysrgb&w=600")
      no-repeat center center/cover;

  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  height: auto;
  width: 100%;
  text-align: center;
}

.why-chose-us {
  width: 100%;
  padding: 40px 100px;
}
h2 {
  font-size: 36px;
  color: #004d00;
  margin-bottom: 40px;
  display: inline-block;
}


.content {
  display: grid;
  grid-template-columns: 1fr 1fr; /* Two columns of equal width */
  column-gap: 40px; /* Adds spacing between items */
  row-gap: 80px;

}

.column p{
  text-align: justify;
  object-position: center t;
  
}

.column {
  display: flex;
  flex-direction: column;
}

.column img {
  width: 100%;
  max-height: 300px;
  border-radius: 10px;
  object-fit: cover;
}

p {
  font-size: 16px;
  line-height: 1.6;
  color: #000000;
  margin-bottom: 20px;
}

/* Stakeholder */

.stakeholder-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  background-color: #ffffff51;
  text-align: center;
}

.stakeholders-banner {
  width: 100%;
  height: 350px;
  background: linear-gradient(to bottom right, #003a0fcd, #003f12b1),
    url("https://media.licdn.com/dms/image/v2/C4D16AQGdjykVyvkxMw/profile-displaybackgroundimage-shrink_200_800/profile-displaybackgroundimage-shrink_200_800/0/1644913325448?e=2147483647&v=beta&t=lcQuyX38u3Y6MF7PoHEA8a5GUAC0XxVdSc959LqZA64")
      no-repeat center center/cover;

  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;

  display: flex;
  justify-content: center;
  align-items: center;
  color:#eaffdd;
}

.stakeholders-banner h2 {
  color:#eaffdd;
}

.stakeholders {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  text-align: center;
  padding: 40px 100px;
  gap: 20px;
}

.stakeholder-logo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background-color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.stakeholder-logo img {
  max-width: 80%;
  max-height: 80%;
  object-fit: contain;
}

/* Our Clients */

.clients-content{
  display: block;
  justify-content: center;
  align-items: center;
  
}

.profiles {
  padding: 40px 100px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 15px;
  height: 100lvh;
}

.profile-card {
  display: flex;
  border-radius: 5px;
  background-color: #ffffff;
  box-shadow: 2px 2px 2px #00000066;
  align-items: center;
  height: fit-content;
  padding: 10px;
  width: 400px;
}

.profile-card p,
.profile-card h2 {
  margin: 0;
  font-size: 1rem;
}

.profile-card img {
  width: 150px;
  height: 150px;
  object-fit: cover;
}

.profile-card img,
.profile-content {
 
}

.profile-content {
  width: 100%;
}

.profile-card .buttons {
  display: flex;
  flex-direction: column;
  row-gap: 15px;
}

.search {
  width: 100%;
  display: flex;
  justify-content: start;
}

button:hover {
  background-color: #000000;
  color: #004d00;
  font-weight: 400;
}

button a {
  color:#eaffdd;
  text-decoration: none;
}

.buttons {
  margin: 10px 0;
}

.search {
  padding: 20px 100px;
  width: 100%;
  display: flex;
}

.search button {
  border-radius: 0;
  width: 15%;
  cursor: pointer;
  padding: 15px 10px;
}

.search input {
  padding: 15px 10px;
  width: 30%;
  border: solid #005301 0.5px;
  background-color: #f9f9f9;
}

.search input:focus {
  outline: none;
}

/* gallery */

.container {
 padding: 40px 100px;
}

.banner {
  background-color: #1b5e20;
  color: white;
  text-align: center;
  padding: 60px 0;
}
.banner h1 {
  font-size: 36px;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  padding: 2rem;
}
.room {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}
.room:hover {
  transform: translateY(-5px);
}
.room img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  display: block;
}
.room h3 {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  margin: 0;
  padding: 1rem;
  text-align: center;
  font-size: 1.1rem;
}
.images-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}
.images-container img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.pagination {
  text-align: center;
  margin-top: 30px;
}
.pagination button {
  padding: 8px 16px;
  margin: 0 5px;
  border: none;
  background-color: #f0f0f0;
  cursor: pointer;
}
.pagination button.active {
  background-color: #1b5e20;
  color: white;
}

/* Contact Us */

.contact-us {
  width: 100%;
height: fit-content;
  margin: 0;

  background-color: #ffffff;
}

.form {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 60px 100px;
  column-gap: 20px;
  
  
}

label{
  font-weight: 600;
  margin-left: 10px;
  
}

.submit {
  width: 100%;
  margin: 0;
}

.form-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
}

.form-content input,
.form-content textarea,
.submit {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.form-content textarea {
 
}

.form-content input[type="submit"] {
  background-color: #333;
  color: #fff;
  border: none;
  cursor: pointer;
}

.form-content input[type="submit"]:hover {
  background-color: #555;
}
.map-container {
  flex: 1;
  width: 100%;
  height: auto;
}
.map-container iframe {
  width: 100%;
  height: 350px;
  border: none;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

/* Venue container */

.venue-header{
  display: flex;
  align-items: center;
  margin: 20px 0 0 0;
  position: relative;
  justify-content: center;
}

.venue-header button {
  position: absolute;
  left: 0;
}

.venue-header h2 {
}

.venue-container{
  height: auto;
  padding: 40px 100px;
}

.images-container{
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 20px 0;
}

hr{
  height: 2px;
  background-color: #004906;
  margin: 0 0 20px 0 ;
}
span{
  color:#c0eba6
}

.venue-content{
 width: 100%;
}

.images-container img{
 width: 32%;
 height: 250px;
 border-radius: 2%;
 object-fit: cover;
}

.images-container img:hover{
  transform: scale(105%);
  transition: 0.3s ease-in;
}


 /* Pop-up container */
 .popup {
  display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.8); /* Semi-transparent background */
  z-index: 9999; /* Make sure it is above everything */
  display: flex;
  justify-content: center;
  align-items: center;
}

  .popup-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 80%;
    max-height: 80%;
    overflow: auto;
    text-align: center;
    display: flex;
    flex-direction: column;
  }

  /* Close button */
  .popup-close {
    background: #004906;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 10px 20px;
    cursor: pointer;
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 16px;
  }

  .popup-close:hover{
    color: white;
  }

.portal_banner {
  width: 100%;
  height: 300px;
  background: linear-gradient(to bottom right, #003a0fcd, #003f12b1),
    url("images/Firefly\ Create\ a\ striking\ web\ banner\ in\ an\ illustrative\ style\ that\ embodies\ the\ theme\ of\ the\ Fourth\ .jpg")
      no-repeat center center/cover;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #eaffdd;
}

.portal-content {
  text-align: center;
  padding: 40px 0;
}

.portal-content h2 {
  color: #004d00;
  margin-bottom: 20px;
}

.portal-content p {
  color: #333;
  margin-bottom: 40px;
}

.portal-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.portal-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.portal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  background-color: #004906;
  color: #fffbe6;
}

.portal-card:hover p,
.portal-card:hover h3 {
  color: #fffbe6;
}

.portal-card i {
  font-size: 48px;
  color: #006400;
  margin-bottom: 20px;
}

.portal-card:hover i {
  color: #fffbe6;
}

.portal-card h3 {
  color: #004d00;
  margin-bottom: 15px;
}

.portal-card p {
  color: #666;
  margin-bottom: 20px;
}

.portal-card button {
  background-color: #006400;
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.portal-card:hover button {
  background-color: #fff;
  color: #004906;
  transform: translateY(-2px);
}

/* Updated to make button hover consistent with card hover, and remove black */
.portal-card button:hover {
  background-color: #fff; /* White background on hover */
  color: #004906; /* Dark green text on hover */
  border: 1px solid #004906; /* Add a subtle border for definition */
}

/* Add these styles after the existing nav styles */
nav ul li a.portal-link {
  background: linear-gradient(to right, #808080, #a9a9a9);
  color: white;
  padding: 4px 8px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

nav ul li a.portal-link:hover {
  background: linear-gradient(to right, #a9a9a9, #808080);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.menubar ul li a.portal-link {
  background: linear-gradient(to right, #808080, #a9a9a9);
  color: white;
  padding: 4px 8px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.menubar ul li a.portal-link:hover {
  background: linear-gradient(to right, #a9a9a9, #808080);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Adjust the .form container specifically for register.html to control its width */
.portal-content .form {
    flex-direction: column; /* Stack the form content vertically */
    align-items: center; /* Center the form content horizontally */
    max-width: 600px; /* Limit the overall width of the form area */
    margin: 0 auto; /* Center the form area within portal-content */
    padding: 20px; /* Adjust padding as needed for the form area */
}

/* Ensure the form content itself takes up the full width of its new parent */
.portal-content .form .form-content {
    width: 100%; /* Make the form take up the full width of its new parent (.form) */
}

/* Ensure inputs and textareas now correctly fit within the new limited width */
.form-content input[type="text"],
.form-content input[type="email"],
.form-content input[type="tel"],
.form-content input[type="url"],
.form-content textarea {
    width: 100%; /* Ensures they fill the container */
    box-sizing: border-box; /* Essential for correct width calculation */
}

/* Updated submit button to match portal card button styling and hover */
.form-content .submit {
  background-color: #006400; /* Default green background */
  color: #fff; /* White text */
  border: none;
  padding: 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.form-content .submit:hover {
  background-color: #fff; /* White background on hover */
  color: #004906; /* Dark green text on hover */
  border: 1px solid #004906; /* Add a border for visual effect */
}
.portal-content {
  margin-top: 100px;
  padding: 20px;
  min-height: calc(100vh - 300px);
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #ddd;
}
.profile-section {
  display: flex;
  align-items: center;
  gap: 20px;
}
.profile-picture {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #004906;
}
.profile-upload {
  display: none;
}
.upload-btn {
  background-color: #004906;
  color: white;
  padding: 8px 15px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}
.tab {
  padding: 10px 20px;
  background-color: #f0f0f0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
.tab.active {
  background-color: #004906;
  color: white;
}
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
.attendance-card {
  background-color: #f8f9fa;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.clock-btn {
  background-color: #004906;
  color: white;
  padding: 15px 30px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 18px;
  width: 200px;
}
.clock-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}
.stat-card {
  background-color: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
  text-align: center;
}
.form-group {
  margin-bottom: 20px;
}
label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
input, select, textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  box-sizing: border-box;
}
button {
  background-color: #004906;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
button:hover {
  background-color: #003a0f;
}
.status {
  margin-top: 20px;
  padding: 10px;
  border-radius: 4px;
  display: none;
}
.success {
  background-color: #dff0d8;
  color: #3c763d;
}
.error {
  background-color: #f2dede;
  color: #a94442;
}
.attendance-history {
  margin-top: 20px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
th, td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
th {
  background-color: #f8f9fa;
}

/* Login Page Styles */
.login-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80vh;
    background-color: #fffbe6;
    padding: 20px;
}

.login-container {
    background-color: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.login-container h2 {
    margin-bottom: 30px;
    color: #006400;
    font-size: 2em;
}

.login-form .form-group {
    margin-bottom: 20px;
    text-align: left;
}

.login-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.login-form input[type="text"],
.login-form input[type="password"] {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1em;
}

.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus {
    border-color: #006400;
    outline: none;
    box-shadow: 0 0 5px rgba(0, 100, 0, 0.3);
}

.login-form button[type="submit"] {
    background-color: #006400;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
    width: 100%;
    margin-top: 20px;
}

.login-form button[type="submit"]:hover {
    background-color: #005200;
    transform: translateY(-2px);
}

.go-back {
    margin-top: 20px;
    text-align: center;
}

.go-back a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #006400;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.go-back a:hover {
    background-color: #005200;
    transform: translateY(-2px);
}

/* Dashboard Section Styles */
.portal-dashboard-section {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  background-color: #fffbe6;
  padding: 20px;
}

.portal-dashboard-container {
  background-color: #fff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  max-width: 900px; /* Increased max-width for dashboard content */
  width: 100%;
}

.portal-dashboard-container h2 {
  margin-bottom: 30px;
  color: #006400;
  font-size: 2em;
}

/* Styles for elements within the dashboard that were previously under .login-container */
.portal-dashboard-container h3 {
    margin-top: 40px;
    margin-bottom: 15px;
    color: #006400;
    font-size: 1.5em;
}

.portal-dashboard-container p {
    color: #555;
    font-size: 1em;
    line-height: 1.6;
}

.portal-dashboard {
  margin-top: 30px;
  border-top: 1px solid #eee;
  padding-top: 30px;
}

.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}

.tab {
  background-color: #f0f0f0;
  color: #333;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: all 0.3s ease;
  margin: 0 5px;
}

.tab:hover {
  background-color: #e0e0e0;
  transform: translateY(-2px);
}

.tab.active {
  background-color: #006400;
  color: white;
  transform: translateY(0);
}

.tab-content {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  position: absolute;
  width: calc(100% - 80px);
  padding: 0 40px;
}

.tab-content.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

.profile-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.profile-picture {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #006400;
  margin-bottom: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-picture:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(0, 100, 0, 0.4);
}

.profile-upload {
  display: none;
}

.upload-btn {
  background-color: #006400;
  color: white;
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.upload-btn:hover {
  background-color: #005200;
  transform: translateY(-2px);
}

/* Attendance Tracking Styles */
.attendance-card {
  background-color: #eafaea;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 20px;
  text-align: left;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.attendance-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.attendance-card p {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #004d00;
}

.attendance-card #attendance-status {
  font-weight: bold;
  color: #006400;
}

.attendance-card button {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-right: 10px;
}

#clock-in-btn {
  background-color: #28a745;
  color: white;
}

#clock-in-btn:hover {
  background-color: #218838;
  transform: translateY(-2px);
}

#clock-out-btn {
  background-color: #dc3545;
  color: white;
}

#clock-out-btn:hover {
  background-color: #c82333;
  transform: translateY(-2px);
}

#clock-out-btn:disabled {
  background-color: #cccccc;
  cursor: not-allowed;
  transform: translateY(0);
}

.status {
  margin-top: 15px;
  padding: 10px;
  border-radius: 5px;
  font-weight: bold;
  text-align: center;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.status.success,
.status.error {
  display: block;
  opacity: 1;
}

/* Tables */
.attendance-history table,
.leave-history table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background-color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
  overflow: hidden;
}

.attendance-history th,
.leave-history th {
  background-color: #006400;
  color: white;
  padding: 12px 15px;
  text-align: left;
  font-weight: 500;
}

.attendance-history td,
.leave-history td {
  padding: 10px 15px;
  border-bottom: 1px solid #eee;
  color: #333;
}

.attendance-history tr:nth-child(even),
.leave-history tr:nth-child(even) {
  background-color: #f9f9f9;
}

.attendance-history tr:hover,
.leave-history tr:hover {
  background-color: #f1f1f1;
  transform: translateX(5px);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

/* Leave Request Form */
.leave-form {
  background-color: #eafaea;
  padding: 25px;
  border-radius: 8px;
  margin-top: 30px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.leave-form .form-group {
  margin-bottom: 15px;
  text-align: left;
}

.leave-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #333;
}

.leave-form input[type="date"],
.leave-form select,
.leave-form textarea {
  width: calc(100% - 20px);
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1em;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.leave-form input[type="date"]:focus,
.leave-form select:focus,
.leave-form textarea:focus {
  border-color: #006400;
  outline: none;
  box-shadow: 0 0 8px rgba(0, 100, 0, 0.4);
}

.leave-form button[type="submit"] {
  background-color: #006400;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: 100%;
  margin-top: 20px;
}

.leave-form button[type="submit"]:hover {
  background-color: #005200;
  transform: translateY(-2px);
}

/* Form Input Focus Effects */
.login-form input[type="text"]:focus,
.login-form input[type="password"]:focus,
.profile-tab-content input[type="text"]:focus,
.profile-tab-content input[type="email"]:focus,
.leave-form input[type="date"]:focus,
.leave-form select:focus,
.leave-form textarea:focus {
  border-color: #006400;
  outline: none;
  box-shadow: 0 0 8px rgba(0, 100, 0, 0.4);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Diversion Section Specific Styles */
.diversion-section {
  padding: 40px 0;
  text-align: center;
  margin-top: 80px; /* Adjust this value to control distance from preceding content */
  margin-bottom: 80px; /* Pushes it towards the footer if footer has minimal margin */
}

.diversion-section h3 {
  color: #006400;
  font-size: 2em;
  margin-bottom: 20px; /* Space below the heading */
}

.diversion-text {
  color: #555;
  font-size: 1.1em;
  line-height: 1.8;
  margin-top: 100px; /* Significant top margin to separate it from the heading */
  margin-left: auto;
  margin-right: auto;
  max-width: 700px; /* Optional: limit width for readability */
}

#save-profile-btn {
    display: block;
    margin: 20px auto;
    background-color: #006400;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: all 0.3s ease;
}

#save-profile-btn:hover {
    background-color: #005200;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Update general button hover effects */
button:hover {
    background-color: #005200;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Update specific button hover effects */
.login-form button[type="submit"]:hover,
.leave-form button[type="submit"]:hover,
.upload-btn:hover,
#edit-profile-btn:hover,
#save-profile-btn:hover {
    background-color: #005200;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Update clock buttons hover effects */
#clock-in-btn:hover {
    background-color: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#clock-out-btn:hover {
    background-color: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

