/* Base Styles */

body, html {
  background-color: #f5f5f5;
  margin: 0;
  padding: 0;
}

/* Colors */
:root {
  --primary-blue: #0C6DFD;
  --secondary-blue: #1D40AF;
  --accent-green: #21C55D;
  --text-dark: #333;
  --text-light: #fff;
  --border-color: #dee2e6;
}

/* Header and Navigation */
.webmenutabfull {
  background: #fff !important;
  width: 100%;
  display: flex;
  font-size: 11px;
  letter-spacing: .6px;
  line-height: 18px;
  border-bottom: 1px solid #fff;
  padding: 4px 5px 0px 5px;
}

.webmen-tab {
  position: relative;
  width: 14%;
  float: left;
}

.webtab {
  background: var(--secondary-blue) !important;
  color: var(--text-light);
  position: relative;
  margin: 0px 1% 0px 1%;
  overflow: hidden;
  font-weight: normal;
  display: block;
  cursor: pointer;
  text-decoration: none;
  border: 1px solid #fff;
  padding: 6px 10px 6px 35px;
  border-radius: 6px 6px 0px 0px;
  border-bottom: 0px;
  min-height: 30px;
  font-weight: bold;
}

.webtab:hover {
  opacity: 0.9;
  color: var(--text-light);
}

.web-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  position: absolute;
  top: 2px;
  left: 6px;
}

.greyhdrgwatch {
  background: var(--secondary-blue) !important;
  padding: 10px 0;
  color: var(--text-light);
}

.grantwhrticon a {
  color: var(--text-light);
  text-decoration: none;
  transition: opacity 0.2s;
}

.grantwhrticon a:hover {
  opacity: 0.8;
}

.grantwsocicround {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
  background: var(--text-light);
  color: var(--secondary-blue);
  border-radius: 50%;
  text-decoration: none;
  font-weight: bold;
  transition: all 0.2s;
}

.grantwsocicround:hover {
  background: var(--accent-green);
  color: var(--text-light);
}

.gwatcht3hd {
  background-color: #fff;
}

.gwatchlogohdr {
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
}

.logogwm img {
  max-height: 60px;
}

.gwatchhomenavbar {
  background: var(--primary-blue) !important;
  padding: 0;
}

.gwatchhomenavbar .nav-link {
  color: var(--text-light);
  padding: 15px;
  font-weight: 600;
  transition: background-color 0.2s;
}

.gwatchhomenavbar .nav-link:hover,
.gwatchhomenavbar .nav-item.active .nav-link {
  background-color: rgba(255, 255, 255, 0.1);
}

.gwatchhomenavbar .dropdown-menu {
  border-radius: 0;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  border: none;
}

/* Search Bar */
.gwhmsersec {
  padding: 20px 0;
  background-color: #f5f5f5;
}

.gwhsermainbar {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  padding: 15px;
}

.serfiltmbhorizon {
  display: none;
  background-color: #fff;
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.serfiltmbhorizon.show {
  display: block;
}

.advanced-search-toggle {
  color: var(--primary-blue);
  text-decoration: none;
}

/* Grant Cards */
.grnhomegbox {
  border-top: 5px solid var(--primary-blue);
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border-radius: 5px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.grnhomegbox h4 {
  padding: 15px;
  margin: 0;
  font-weight: 600;
}

.grnhomegbox .sub {
  background-color: #f9f9f9;
}

.ddlinedtgwhm {
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
}

.ddlinedtgwhm em {
  color: var(--primary-blue);
  font-style: normal;
  font-weight: 600;
}

.vgbtnfullgrn {
  background: var(--accent-green) !important;
  color: var(--text-light);
  transition: opacity 0.2s;
}

.vgbtnfullgrn:hover {
  opacity: 0.9;
  color: var(--text-light);
}

/* Sidebar */
.signuprtheading {
  background-color: var(--primary-blue);
  color: var(--text-light);
  padding: 10px 15px;
  margin: 0;
  border-radius: 5px 5px 0 0;
  font-size: 18px;
}

.grantscrolmlist {
  background-color: #fff;
  border: 1px solid var(--border-color);
  border-top: none;
  border-radius: 0 0 5px 5px;
}

.grantscrolmlist a {
  color: var(--text-dark);
  transition: background-color 0.2s;
}

.grantscrolmlist a:hover {
  background-color: #f5f5f5;
  color: var(--primary-blue);
}

.hvr-bounce-to-right {
  position: relative;
  transform: perspective(1px) translateZ(0);
}

.hvr-bounce-to-right:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary-blue);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition-property: transform;
  transition-duration: 0.3s;
}

.hvr-bounce-to-right:hover:before {
  transform: scaleX(1);
}

.hvr-bounce-to-right:hover {
  color: white !important;
}

.acminussignupp, .acplussignupp {
  cursor: pointer;
}

/* Footer */
.footer-bg {
  background: var(--secondary-blue);
}

.fh5 {
  color: var(--accent-green);
  font-size: 18px;
  margin: 1rem 0;
  font-weight: 600;
}

/* Page Content */
.h1img {
  position: relative;
}

.h1txt {
  position: absolute;
  color: var(--text-light);
  font-size: 52px;
  font-weight: 700;
  text-shadow: 1px 5px 5px #222;
  top: 45px;
  text-align: center;
  width: 100%;
}

.number-of-grants {
  margin: 1rem 0;
  font-size: 1.5rem;
}

/* Chat Button */
.bottomright {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 9999;
}

.btn-slide {
  background-color: var(--accent-green);
  color: var(--text-light);
  padding: 12px 20px;
  border-radius: 30px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: all 0.3s;
}

.btn-slide:hover {
  background-color: #19b352;
  transform: translateY(-3px);
  color: var(--text-light);
}

.title-hover {
  display: none;
}

.btn-slide:hover .title {
  display: none;
}

.btn-slide:hover .title-hover {
  display: inline;
}

/* Modal Styles */
.modal-backdrop.show {
  opacity: 0.5;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .webmen-tab {
    width: 33.33%;
  }
}

@media (max-width: 768px) {
  .webmen-tab {
    width: 50%;
  }
  
  .h1txt {
    font-size: 32px;
    top: 20px;
  }
}

@media (max-width: 576px) {
  .webmen-tab {
    width: 100%;
  }
  
  .h1txt {
    font-size: 24px;
    top: 10px;
  }
}