/* Add this import at the top of your existing style.css file */
@import url("footer.css");
@import url("homepage.css");
@import url("team.css");
@import url("verified-plants.css");
@import url("search.css");
@import url("criteria.css");
@import url("az.css");
@import url("gallery.css");
@import url("references.css");
@import url("contact.css");
@import url("plant.css");
@import url("plant-modal.css");

/* The rest of your existing style.css content remains unchanged */

/* ========== Modern Header & Navigation Styles ========== */
:root {
  --primary-color: #457d58;
  --primary-dark: #3a6849;
  --primary-light: #5c8f6e;
  --secondary-color: #f6fef7;
  --menu-text-color: #fff;
  --active-color: #e9f7ef;
  --font-family: "Nunito", Arial, sans-serif;
  --border-radius: 12px; /* Updated to 8px as requested */
  --transition: all 0.2s ease;
  --shadow: 0 2px 10px rgba(69, 125, 88, 0.1);
  --menu-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.5;
  color: #333;
  background-color: var(--secondary-color);
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========== Header & Logo ========== */
.site-header {
  background-color: white;
  box-shadow: var(--shadow);
  position: relative;
  z-index: 1000;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

.header-container {
  margin: 0 auto;
  padding: 0 20px;
}

.site-branding {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 0;
  position: relative;
}

.site-title-wrapper {
  text-align: center;
}

/* Redesigned stylish logo text */
.site-title {
  font-size: 1.8rem;
  font-weight: 900;
  margin: 0;
  position: relative;
  display: inline-block;
}

.title-first,
.title-second {
  color: var(--primary-color);
  letter-spacing: 0.02em;
  padding-left: 1px;
}


/* Institution banner styles */
.institution-banner {
  background-color: var(--primary-color);
  color: white;
  text-align: center;
  padding: 8px 15px;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .institution-banner {
    font-size: 0.8rem;
    padding: 6px 10px;
  }
}

@media (max-width: 480px) {
  .institution-banner {
    font-size: 0.75rem;
    padding: 5px 8px;
    white-space: normal;
  }
}

/* Logo styling if user uploads a logo */
.site-logo {
  max-height: 60px;
  max-width: 280px;
  display: block;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1050; /* Increased z-index to be above the menu */
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 3px;
  background-color: var(--primary-color);
  margin: 4px 0;
  border-radius: 2px;
  transition: var(--transition);
}

/* Hamburger to X animation */
.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ========== Main Navigation ========== */
.main-nav {
  background-color: var(--primary-color);
  border-radius: var(--border-radius);
}

.menu {
  display: flex;
  justify-content: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu-item {
  position: relative;
}

.menu-item > a {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  color: var(--menu-text-color);
  font-weight: 600;
  transition: var(--transition);
}

.menu-icon {
  display: inline-flex;
  margin-right: 6px;
  font-size: 0.9em;
}

.menu-item:hover > a,
.menu-item.active > a {
  background-color: var(--primary-dark);
}

/* Apply border radius to first and last menu items */
.menu > li:first-child > a {
  border-radius: var(--border-radius) 0 0 var(--border-radius);
}

.menu > li:last-child > a {
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

/* Change hamburger icon color when active */
.menu-toggle.active span {
  background-color: var(--secondary-color);
}

/* ========== Dropdown Styles ========== */
.dropdown-arrow {
  margin-left: 6px;
  font-size: 0.85em;
  transition: transform 0.2s;
}

.dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background-color: white;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  box-shadow: var(--menu-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s;
  z-index: 100;
}

.dropdown:hover .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.sub-menu li {
  display: block;
}

.sub-menu a {
  display: block;
  padding: 10px 18px;
  color: var(--primary-color);
  font-weight: 500;
  transition: var(--transition);
}

.sub-menu li:hover > a,
.sub-menu li.active > a {
  background-color: var(--active-color);
}

.sub-menu li:last-child a {
  border-radius: 0 0 var(--border-radius) var(--border-radius);
}

/* ========== Responsive Styles ========== */
@media (max-width: 1150px) {
  .menu {
    flex-wrap: wrap;
  }

  .site-title {
    font-size: 1.6rem;
  }

  .menu > li:first-child > a,
  .menu > li:last-child > a {
    border-radius: 0; /* Remove border radius on wrapped menu */
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .site-title {
    font-size: 1.4rem;
  }

  .site-logo {
    max-height: 50px;
    max-width: 220px;
  }

  .site-branding {
    justify-content: flex-start; /* Left align on mobile */
  }

  .main-nav {
    position: fixed;
    top: 0;
    left: -280px; /* Start off-screen */
    width: 280px;
    height: 100%;
    background-color: var(--primary-color);
    box-shadow: var(--menu-shadow);
    transition: left 0.3s ease;
    overflow-y: auto;
    z-index: 1040; /* Lower than hamburger */
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
  }

  .main-nav.open {
    left: 0;
  }

  .menu {
    flex-direction: column;
    padding: 20px 0;
  }

  .menu-item > a {
    justify-content: space-between;
  }

  .menu-text {
    flex-grow: 1;
  }

  .dropdown-arrow {
    margin-left: 0;
  }

  /* Reset border radius for mobile menu */
  .menu > li:first-child > a,
  .menu > li:last-child > a {
    border-radius: 0;
  }

  /* Mobile submenu */
  .sub-menu {
    position: static;
    width: 100%;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border-radius: 0;
    background-color: var(--primary-dark);
    max-height: 0;
    overflow: hidden;
    transform: none;
    transition: max-height 0.3s;
  }

  .dropdown.open .sub-menu {
    max-height: 1000px;
  }

  .sub-menu a {
    padding-left: 45px;
    color: var(--menu-text-color);
  }

  .sub-menu li:hover > a,
  .sub-menu li.active > a {
    background-color: rgba(255, 255, 255, 0.1);
  }

  .sub-menu li:last-child a {
    border-radius: 0;
  }

  /* Prevent hover on mobile */
  .dropdown:hover .sub-menu {
    max-height: 0;
  }

  .dropdown.open:hover .sub-menu {
    max-height: 1000px;
  }

  /* Menu overlay */
  .menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1030; /* Lower than nav but higher than content */
    opacity: 0;
    transition: opacity 0.3s;
  }

  .menu-overlay.open {
    display: block;
    opacity: 1;
  }

  body.menu-open {
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 15px 8px !important;
  }
  .site-title {
    font-size: 1.2rem;
  }

  .site-logo {
    max-height: 40px;
    max-width: 180px;
  }
}

/* Container for page content */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.page-title {
  color: var(--secondary-color);
  margin-bottom: 20px;
  text-align: center;
}

/* Apply border-radius to elements throughout the site */
.btn,
.card,
.input-field,
.select-field,
input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea,
.alert,
.notice {
  border-radius: var(--border-radius);
}
