:root {
  --primary: #0D3B66;
  --secondary: #FAF0CA;
  --text: #222;
  --highlight-1: #F4D35E;
  --highlight-2: #EE964B;
  --alert: #F95738;
}

body {
  font-family: 'Red Hat Display', 'Open Sans', sans-serif;
  background-color: #f9f9f9;
}

h4 {
  font-size: 1.5rem;
}

.header {
  height: auto;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  padding: 15px 0;
}

.logo {
  height: 40px;
}

.hero-section {
  background-color: #f0f2f5;
  padding: 3rem 0;
  text-align: center;
}

.hero-title {
  color: var(--primary);
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

.hero-subtitle {
  color: #555;
  margin-bottom: 2rem;
  font-size: 1.2rem !important;
}

.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  padding: 12px 20px;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 16px;
}

.search-button {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  padding: 12px 20px;
  background-color: var(--primary);
  color: white;
  border: none;
  border-radius: 0 25px 25px 0;
  cursor: pointer;
}

.autocomplete-items {
  position: absolute;
  border: 1px solid #ddd;
  border-top: none;
  z-index: 99;
  top: 100%;
  left: 0;
  right: 0;
  border-radius: 0 0 25px 25px;
  background-color: white;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  max-height: 300px;
  overflow-y: auto;
  display: none;
}

.autocomplete-items div {
  padding: 10px;
  cursor: pointer;
  text-align: left;
}

.autocomplete-items div:hover {
  background-color: #f1f1f1;
}

.autocomplete-item {
    cursor: pointer;
    padding: 10px;
    border-bottom: 1px solid #d4edda;
}

.autocomplete-item:hover,
.autocomplete-item:focus,
.autocomplete-active {
    background-color: #d4edda;
}

.autocomplete-category {
    font-weight: bold;
    background-color: #f8f9fa;
    padding: 5px 10px;
}

.autocomplete-no-results {
    padding: 10px;
    color: #6c757d;
    font-style: italic;
}

.autocomplete-category {
  padding: 5px 10px;
  background-color: #f9f9f9;
  color: var(--primary);
  font-weight: bold;
  font-size: 0.85rem;
  border-top: 1px solid #ddd;
}

.section-title {
  color: var(--primary);
  font-size: 2rem;
  font-weight: bold;
  margin: 2rem 0 1.5rem 0;
}

.article-description {
  color: var(--text);
  font-size: 1.1rem;
}

.article-count {
  color: #777;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.article-view-link {
  color: var(--highlight-2);
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.article-view-link i {
  color: var(--highlight-2);
  margin-left: 5px;
}


.article-card {
  background-color: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.article-title {
  color: var(--primary);
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.article-date {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.article-popular-views {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

footer {
  background-color: var(--primary);
  color: white;
  padding: 40px 0;
  margin-top: 3rem;
  font-size: 0.8rem;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.container .row {
  row-gap: 15px;
}

.columns {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.column {
  flex: 1;
  min-width: 250px;
}

.column-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #F4D35E;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.list {
  list-style: none;
}

.list li {
  margin-bottom: 8px;
}

.list a {
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
  display: block;
  padding: 3px 0;
}

.list a:hover {
  color: #F4D35E;
  text-decoration: underline;
}

.list a[target="_blank"]::after {
  content: " ↗";
  font-size: 12px;
}

.see-properties-link {    
  background-color: var(--highlight-2);
  color: white;
  border: none;
  padding: 12px 20px;
  border-radius: 20px;
  font-size: 1.1rem;
}

.see-properties-link:hover {
  color: white;
  background-color:rgb(221 140 69);
}

.breadcrumb {
  width: fit-content;
  display: flex;
  list-style: none;
  padding: 2px 10px;
  margin-bottom: 20px;
}

.breadcrumb-item {
  color: #777;
}

.breadcrumb-item a {
  color: var(--primary);
  text-decoration: none;
}

.breadcrumb-item a:hover {
  text-decoration: underline;
}

.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  padding: 0 8px;
  color: #ccc;
}

.back-link {
  color: var(--primary);
  text-decoration: none;
  margin-right: 10px;
}

.back-link:hover {
  text-decoration: underline;
}

.border-start-custom {
  border-left: 2px solid #dee2e6;
  padding-left: 20px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 1.5rem;
  }
  
  .search-input {
    padding: 10px 15px;
  }
  
  .search-button {
    padding: 10px 15px;
  }
  .columns {
    flex-direction: column;
  }
  
  .column {
    width: 100%;
    margin-bottom: 20px;
  }
  
  .border-start-custom {
    border-left: none;
    padding-left: 0;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid #dee2e6;
  }
}