/*
Theme Name:   Agronomics Lite CUSA
Template:     agronomics-lite
Version:      1.0
*/

html {
  position: absolute !important;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
}

body,
html.wprmenu-body-fixed body {
  position: relative !important;
  height: 100%;
  width: 100%;
}

#sitelayout_type {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: scroll;
  position: relative;
}

.page-wrapper {
  flex: 1;
  width: 100%;
}

/* Header start */
.site-header .container {
  background: white;
}

.header-socialicons {
  padding: 5px;
  margin: 10px 0;
}

.logo {
  padding: 5px;
  line-height: normal;
}
.header-socialicons {
  display: flex;
  align-items: center;
  gap: 5px;
}

.header-socialicons a {
  font-size: 24px;
  height: 30px;
  line-height: 30px;
}

.header-socialicons a.member-button {
  width: unset;
  padding: 0px 40px;
  border-radius: 30px;
  color: #fff;
  font-size: 16px;
}

.sitenav {
  display: block;
  text-align: center;
}

.sitenav ul li a,
.sitenav ul.menu li.menu-parent a.parent {
  color: #fff;
  padding: 4px 15px;
  font-size: 18px;
}

.sitenav ul.sub-menu {
  background: #f0f0f0;
}

.pagefeaturecolumn {
  margin-left: 10%;
  margin-right: 10%;
}

.header-navigation {
  border-bottom: 6px solid #efaa22;
}

/* Features page Section CSS*/
.pagefeaturecolumn {
  position: relative;
  background-color: #fff;
  border-radius: 20px;
  box-shadow: 0 5px 10px #ccc;
  margin: -100px auto 0 auto;
  z-index: 9999;
}
.features_column {
  width: 33.333%;
  margin: 0;
  float: left;
  text-align: center;
  padding: 25px;
}
.features_column .imagebox {
  width: 100px;
  height: auto;
  overflow: hidden;
  margin: 0 auto 20px auto;
  transform: scale(1);
  transition: all 0.35s ease-in-out 0s;
}
.features_column .imagebox img {
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  min-height: 50px;
}
.features_column h3 {
  font-size: 18px;
  margin-bottom: 0px;
  font-weight: 800;
}
.features_column h3 a {
  color: #353535;
}
.features_column p {
  margin-bottom: 0;
}
.features_column:hover {
  background-color: #7abf17;
  color: #fff;
}
.features_column:hover h3 a {
  color: #fff;
}
.features_column.rdbx1:hover {
  -webkit-border-top-left-radius: 20px;
  -webkit-border-bottom-left-radius: 20px;
  -moz-border-radius-topleft: 20px;
  -moz-border-radius-bottomleft: 20px;
  border-top-left-radius: 20px;
  border-bottom-left-radius: 20px;
}

.features_column.two_column {
  width: 50%;
}
.features_column.one_column {
  width: 100%;
  display: inline-block;
  float: none;
}

.features_column.one_column.rdbx1:hover,
.features_column.two_column.rdbx2:hover,
.features_column.rdbx3:hover {
  -webkit-border-top-right-radius: 20px;
  -webkit-border-bottom-right-radius: 20px;
  -moz-border-radius-topright: 20px;
  -moz-border-radius-bottomright: 20px;
  border-top-right-radius: 20px;
  border-bottom-right-radius: 20px;
}

.features_column p,
.features_column h3,
.features_column div {
  color: #0f0f0f;
}

.features_column:hover p,
.features_column:hover h3,
.features_column:hover div {
  color: #fff;
}

.nivoSlider img {
  max-height: 400px;
  min-height: 400px;
  object-fit: cover;
}

.slide_more {
  margin-bottom: 20px !important;
}
/* Header end */

/* Page sidebar start */
/* Sidebar container */
.page-sidebar {
  min-width: 300px;
}

.page-sidebar-menu {
  background: #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Drop shadow */
  margin: 20px;
}

.page-sidebar-menu li {
  margin: 0;
}

/* Menu list */
.page-sidebar .menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Menu links */
.page-sidebar .menu-list li a {
  display: block;
  padding: 16px;
  color: #000;
  text-decoration: none;
  font-weight: 500;
  transition: background 0.3s, color 0.3s;
}

/* Current item with gradient */
.page-sidebar .menu-list li.current-menu-item > a {
  background: linear-gradient(to bottom, #781a7d, #4a154b);
  color: #fff;
}

/* Hover state */
.page-sidebar .menu-list li a:hover {
  background-color: #f8e7fd; /* lighter than #4A154B */
}
/* Page sidebar end*/

#wprmenu_menu_ul {
  padding-bottom: 120px;
}

.wprm_after_menu_content .header-socialicons a {
  color: #fff;
}

.wprm_after_menu_content .header-socialicons a:hover {
  color: #efaa22;
}

.wprm_after_menu_content .member-button {
  background: #f8e7fd;
}

.wprm_after_menu_content .header-socialicons a.member-button {
  color: #0f0f0f;
}

/* Search Page Styling */
.page-header {
  text-align: center;
  margin-bottom: 2rem;
  margin-top: 2rem;
}

.page-header .page-title {
  color: #68246d;
  font-size: 1.8rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* Search form */
.site-main {
  flex: 1;
  margin-bottom: 2rem;
}

.search-form-wrapper {
  max-width: 500px;
  margin: 0 auto;
}

.search-form input[type="search"] {
  width: 75%;
  padding: 0.6rem;
  border: 2px solid #68246d;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
}

.search-form input[type="submit"] {
  background-color: #68246d;
  color: #fff;
  padding: 0.65rem 1rem;
  border: none;
  border-radius: 0 4px 4px 0;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s ease;
}

.search-form input[type="submit"]:hover {
  background-color: #541c58;
}

/* Results list */
.search-results-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 800px;
  margin: 0 auto;
}

/* Result item */
.search-result-item {
  display: flex;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 1rem;
  gap: 1rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.search-result-thumb-wrapper img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid #eee;
}

/* Content */
.search-result-title {
  margin: 0;
  font-size: 1.25rem;
  color: #68246d;
}

.search-result-excerpt {
  font-size: 0.95rem;
  color: #444;
  margin: 0.5rem 0;
}

/* Tap for more button */
.search-result-button {
  display: inline-block;
  background: #68246d;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.3s ease;
}

.search-result-button:hover {
  background: #541c58;
}

/* Pagination */
.pagination-wrapper {
  text-align: center;
  margin-top: 2rem;
}

.pagination-wrapper ul {
  list-style: none;
  padding: 0;
  display: inline-flex;
  gap: 0.5rem;
}

.pagination-wrapper li {
  display: inline;
}

.pagination-wrapper a,
.pagination-wrapper span {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  border: 1px solid #68246d;
  color: #68246d;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.pagination-wrapper a:hover {
  background-color: #68246d;
  color: #fff;
}

.pagination-wrapper .current {
  background-color: #68246d;
  color: #fff;
  font-weight: bold;
}

.structure-grid {
  background: #f1f1f2;
  color: #404041;
  padding: 10px 15px;
  font-size: 18px;
}

.structure-grid h3 {
  font-size: 22px;
  margin: 0 0 5px;
}

.member-container {
  display: inline-block;
}

.grey-grid {
  padding: 10px 15px;
}

.grey-grid a {
  color: #98389f;
}

.footer-copyright,
.footer-copyright a {
  color: white !important;
}
