/* GhanaRoll Homepage Styles */
:root {
  --ghana-red: #EF3340;
  --ghana-yellow: #FFD100;
  --ghana-green: #009739;
  --black: #000000;
  --white: #FFFFFF;
}

/* Reset heading colors */
h1, h2, h3, h4, h5, h6 {
  color: var(--black);
}

/* Hero Section */
.hero {
  text-align: center;
  padding: 1rem 0;
  background-color: var(--ghana-yellow);
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.hero h1 {
  margin-bottom: 0.2rem;
  font-size: 2.5rem;
  font-weight: 700;
}

.hero-tagline {
  font-size: 1.1rem;
  color: var(--black);
  margin-bottom: 0.8rem;
  font-style: italic;
  padding: 0 1rem;
}

.search-form {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  max-width: 700px;
  margin: 0 auto;
}

.search-input {
  padding: 0.75rem 1rem;
  width: 100%;
  max-width: 500px;
  border: 2px solid var(--ghana-green);
  border-radius: 25px;
  font-size: 1rem;
  background-color: var(--white);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.search-input:focus {
  outline: none;
  border-color: var(--ghana-red);
  box-shadow: 0 0 8px rgba(239, 51, 64, 0.3);
}

.search-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  background-color: var(--ghana-red);
  color: var(--white);
  border-radius: 25px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s;
}

.search-btn:hover {
  background-color: var(--ghana-green);
}

/* Section Headings */
.section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
}

.heading-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(to right, var(--ghana-red), var(--ghana-green));
}

/* Earning Opportunity Section */
.earning-opportunity {
  margin: 2rem 0;
  background-color: var(--white);
  padding: 1.5rem;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(24, 23, 23, 0.5);
}

.earning-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 900px;
  margin: -15px auto;
  margin-top: -15px;
}

.earning-image {
  width: 200px;
  height: auto;
  border-radius: 5px;
}

.earning-text {
  flex: 1;
  text-align: center;
}

.earning-text p {
  font-size: 1.1rem;
  color: var(--black);
  margin-bottom: 1rem;
}

.learn-more-btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--ghana-red);
  color: var(--white);
  border-radius: 25px;
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  transition: background-color 0.3s;
}

.learn-more-btn:hover {
  background-color: var(--ghana-green);
}

/* Featured Listings and Community Reports */
.featured-listings, .community-reports {
  margin: 2rem 0;
}

/* Latest Updates */
.latest-updates {
  margin: 2rem 0;
}

.listing-grid, .news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.listing-item, .news-item {
  padding: 0.5rem;
  border: 1px solid var(--ghana-red);
  border-radius: 5px;
  background-color: var(--white);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.listing-item:hover, .news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.listing-item img, .news-item img {
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

/* Latest Updates Specific Styling */
.latest-updates .news-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 100px;
}

.latest-updates .news-thumb {
  flex: 0 0 auto;
}

.latest-updates .news-thumb img {
  width: 100px;
  height: 100px;
  object-fit: cover;
}

.latest-updates .news-item h3 {
  font-size: 1rem;
  margin: 0;
  flex: 1;
}

.latest-updates .news-time {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  font-size: 0.8rem;
  color: var(--ghana-green);
  background-color: rgba(255, 255, 255, 0.8);
  padding: 0.2rem 0.5rem;
  border-radius: 3px;
}

.latest-updates .news-item.read-more {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--ghana-red);
  border: none;
  text-align: center;
}

.latest-updates .read-more-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
}

.latest-updates .read-more-text {
  font-size: 1rem;
}

.latest-updates .read-more-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  font-size: 1.5rem;
  background-color: var(--ghana-green);
  border: 2px solid var(--white);
  border-radius: 50%;
  transition: background-color 0.3s, transform 0.3s;
}

.latest-updates .read-more-link:hover .read-more-arrow {
  background-color: var(--ghana-yellow);
  transform: translateX(5px);
}

.listing-item h3, .community-reports .news-item h3 {
  color: var(--black);
  font-size: 1.2rem;
  margin: 0.5rem 0;
}

.listing-item p, .community-reports .news-item p {
  color: var(--black);
  font-size: 0.9rem;
}

.news-author {
  font-size: 0.8rem;
  color: var(--ghana-green);
  margin-top: 0.5rem;
  font-style: italic;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .hero-tagline {
    font-size: 0.9rem;
    padding: 0 1.5rem;
  }

  .search-form {
    flex-direction: column;
    padding: 0 1rem;
  }

  .search-input {
    max-width: 100%;
  }

  .search-btn {
    width: 100%;
    max-width: 200px;
  }

  .section-heading h2 {
    font-size: 1.5rem;
  }

  .listing-grid, .news-grid {
    grid-template-columns: 1fr;
  }

  .latest-updates .news-item {
    min-height: 80px;
  }

  .latest-updates .news-thumb img {
    width: 80px;
    height: 80px;
  }

  .latest-updates .news-item h3 {
    font-size: 0.9rem;
  }

  .latest-updates .news-time {
    font-size: 0.7rem;
  }

  .latest-updates .read-more-arrow {
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
  }

  .earning-opportunity {
    padding: 1rem;
  }

  .earning-content {
    flex-direction: column;
    align-items: center;
  }

  .earning-image {
    width: 120px;
  }
}

@media (max-width: 480px) {
  .hero {
    padding: 0.8rem 0;
  }

  .hero h1 {
    font-size: 1.5rem;
  }

  .hero-tagline {
    font-size: 0.8rem;
    padding: 0 2rem;
  }

  .section-heading {
    gap: 0.5rem;
  }

  .section-heading h2 {
    font-size: 1.3rem;
  }

  .latest-updates .news-item {
    min-height: 70px;
  }

  .latest-updates .news-thumb img {
    width: 70px;
    height: 70px;
  }

  .latest-updates .news-item h3 {
    font-size: 0.8rem;
  }

  .latest-updates .news-time {
    font-size: 0.6rem;
  }

  .latest-updates .read-more-arrow {
    width: 25px;
    height: 25px;
    font-size: 1rem;
  }

  .earning-image {
    width: 100px;
  }
}