/* === Base === */
html, body {
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  color: #222222; /* Dark Gray for text */
  background-color: #f7f9fc; /* Light Gray background */
}

.maincontainer {
  max-width: 100%;
  width: 100%;
  padding: 0px;
  box-sizing: border-box;
}

/* === Navbar === */
.navbar {
  background-color: #fff;
}

.navbar-brand,
.nav-link {
  color: #000 !important; /* Primary Blue */
  font-size: 16px;
}

.navbar-nav {
  padding-left: 10px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: #37B34A !important; /* Primary Green on hover */
}

/* === Sidebar === */
.sidebar {
  background-color: #ffffff;
  min-height: 100%;
  border-radius: 0 8px 8px 0;
  font-size: 15px;
  padding: 0px 5px;
}

/* Sidebar Heading */
.sidebar-heading {
  font-weight: 700;
  font-size: 1.15rem;
  color: #222222;
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Sidebar links */
.sidebar a {
  display: flex;
  align-items: center;
  color: #666666 !important; /* Medium Gray */
  font-weight: 500;
  text-decoration: none !important;
  transition: all 0.25s ease-in-out;
}

.sidebar a:hover {
  color: #0085FF !important; /* Primary Blue */
  transform: translateX(3px);
  text-decoration: none !important;
}

/* Icons */
.sidebar-icon {
  font-size: 1.3rem;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: filter 0.3s ease, opacity 0.3s ease, transform 0.2s ease;
}

.sidebar a:hover .sidebar-icon {
  filter: grayscale(0%);
  opacity: 1;
  transform: scale(1.1);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .sidebar {
    margin-top: 10px;
    border-left: none;
    border-radius: 8px;
  }
}

/* === Footer === */
.footer {
  background: #37B34A; /* Primary Green */
  color: white;
  padding: 10px;
  text-align: center;
}

img, table {
  max-width: 100%;
}

* {
  box-sizing: border-box;
}

/* Heading Styles */
h1 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: #222222;
}

h2 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.9rem;
  color: #222222;
}

h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.8rem;
  color: #222222;
}

h4 {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 0.7rem;
  color: #222222;
}

h5 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.6rem;
  color: #222222;
}

/* Primary Buttons */
.custom-green-button,
.btn-view-details {
  background-color: #37B34A; /* Primary Green */
  border-color: #37B34A;
  color: #fff;
  font-weight: 600;
}

.custom-green-button:hover,
.btn-view-details:hover {
  background-color: #7ED321; /* Bright Green Accent */
  border-color: #7ED321;
  color: #222;
  transition: background-color 0.3s ease;
}

/* Dropdown Arrow Indicator */
.custom-select-arrow {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url('data:image/svg+xml;charset=UTF-8,<svg viewBox="0 0 140 140" xmlns="http://www.w3.org/2000/svg"><polygon points="70,110 5,30 135,30" fill="%23888"/></svg>');
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1rem;
  padding-right: 2rem;
}

/* Icons Grayscale */
.grayscale-icon {
  filter: grayscale(100%);
  opacity: 0.8;
  transition: all 0.3s ease;
}

.grayscale-icon:hover {
  opacity: 1;
}

/* Gallery Thumbs */
.gallery-thumb {
  width: 155px;
  height: 100px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border 0.2s ease;
}

.gallery-thumb.active {
  border: 2px solid #0085FF; /* Primary Blue */
  transform: scale(1.05);
}

/* Main photo */
.main-photo {
  width: 100%;
  height: 500px;
  object-fit: cover;
  border-radius: 8px;
  transition: opacity 0.5s ease-in-out;
}

/* Banner styles (hero area) */
.banner-wrapper {
  position: relative;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  overflow: hidden;
}

.banner-wrapper img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.banner-content {
  position: absolute;
  top: 15%;
  left: 5%;
  right: 5%;
  text-align: center;
  color: white;
  text-shadow: 1px 1px 5px rgba(0,0,0,0.6);
}

.banner-content h1 {
  font-size: 2.8rem;
  margin-bottom: 0.3rem;
}

.banner-content p {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
}

.search-box {
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  gap: 0.5rem;
}

.search-box input[type="text"] {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: none;
  border-radius: 8px 0 0 8px;
  outline: none;
}

.search-box button {
  padding: 0.75rem 1.2rem;
  background-color: #37B34A; /* Primary Green */
  border: none;
  border-radius: 0 8px 8px 0;
  font-weight: bold;
  cursor: pointer;
  color: #fff;
}

.search-box button:hover {
  background-color: #7ED321; /* Bright Green */
  color: #222;
  transition: background-color 0.3s ease;
}

@media (max-width: 768px) {
  .banner-content h1 {
    font-size: 1.8rem;
  }

  .banner-content p {
    font-size: 1rem;
  }

  .search-box {
    flex-direction: column;
  }

  .search-box input[type="text"],
  .search-box button {
    border-radius: 8px;
    width: 100%;
  }
}

/* Hero Container */
.hero-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.hero-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Centered overlay headline */
.h1-overlay {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* background: rgba(26, 117, 24, 0.7); Removed for cleaner look */
  color: #fff;
  text-align: center;
  border-radius: 8px;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.3;
  max-width: 600px;
  width: 95%;
  white-space: nowrap;
  z-index: 10;
  box-sizing: border-box;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
}

@media (max-width: 576px) {
  .h1-overlay {
    font-size: 19px;
    max-width: 90vw;
    height: 48px;
  }
}

/* Search overlay container */
.search-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: row;
  width: 95%;
  max-width: 600px;
  background: #f7f9fc; /* Light Gray background */
  border-radius: 8px;
  overflow: hidden;
  z-index: 10;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.search-overlay input[type="text"] {
  flex: 1;
  padding: 0.75rem;
  font-size: 1rem;
  border: none;
  outline: none;
}

.search-overlay button {
  padding: 0 1rem;
  background-color: #37B34A; /* Primary Green */
  color: white;
  font-weight: bold;
  font-size: 1rem;
  border: none;
  cursor: pointer;
}

.search-overlay button:hover {
  background-color: #7ED321; /* Bright Green */
  color: #222;
  transition: background-color 0.3s ease;
}

@media (max-width: 768px) {
  .search-overlay {
    flex-direction: column;
  }

  .search-overlay input[type="text"],
  .search-overlay button {
    width: 100%;
    border-radius: 0;
  }

  .search-overlay button {
    padding: 0.8rem;
  }
}

/* Right Sidebar cards */
@media (max-width: 768px) {
  .right-sidebar .card {
    margin-top: 0 !important;
  }
}

.right-sidebar .card:first-child {
  margin-top: 0 !important;
  border-top: none !important;
  box-shadow: none;
}

/* Buttons with brand colors */
.btn-view-details {
  background-color: #37B34A; /* Primary Green */
  color: #fff;
  border: none;
  font-weight: 600;
  transition: background-color 0.3s ease;
}

.btn-view-details:hover {
  background-color: #7ED321; /* Bright Green */
  color: #222;
}

/* Pagination colors */
.pagination .page-link {
  color: #0085FF !important; /* Primary Blue */
  border-color: #0085FF;
}

.pagination .active .page-link {
  background-color: #0085FF !important;
  border-color: #0085FF !important;
  color: #fff !important;
}

.pagination .page-link:focus,
.pagination .page-link:hover {
  color: #fff !important;
  background-color: #0085FF !important;
  border-color: #0085FF !important;
}

/* Paragraph margin reset */
p {
  margin-bottom: 0 !important;
}

/* Background helpers */
.bg-lightgreen {
  background-color: #e8f9e6 !important; /* Very light green */
}

.bg-lightblue {
  background-color: #e6f3ff !important; /* Very light blue */
}

/* Black icon helper */
.black-icon {
  color: #222 !important;
  font-weight: 500;
  font-size: 0.95rem;
}

.black-icon i {
  margin-right: 4px;
}

/* Quick Match background container */
.quick-match-bg {
  background-color: #f7f9fc; /* Light Grayish Blue */
  padding: 2rem 1.5rem;
  border-radius: 0.5rem;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

  /* Gray background and text when disabled */
  select.form-select:disabled {
    background-color: #e9ecef !important; /* Bootstrap's light gray */
    color: #6c757d !important;            /* Bootstrap's gray text */
    cursor: not-allowed;
  }
