/* Base Styles */
:root {
  --primary: #ff8305;
  --primary-light: #ff7d2e;
  --primary-dark: #571e00;
  --secondary: #000000;
  --text-primary: #000000;
  --text-secondary: #333333;
  --text-light: #777777;
  --background: #ffffff;
  --background-alt: #f7f8fa;
  --border: #e5e7eb;
  --border-light: #f0f1f4;
  --box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  --border-radius: 8px;
  --transition: all 0.3s ease;
  --white-text: #ffffff;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.breadcrumbs {
  list-style: none !important;
  display: flex;
  gap: 6px;
  font-size: 12px;
  padding: 0 !important;
  margin: 0 !important;
}

.breadcrumbs ul{
  list-style: none;
}
.breadcrumbs li a {
  text-decoration: none;
  color:rgb(0, 0, 0);
  text-transform:lowercase;
  font-style:italic;
  list-style: none;
}

/* Button Styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border: 1px solid var(--primary);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: white;
  border-color: var(--primary-dark);
}

.btn-outline {
  background-color: transparent;
  color: var(--primary);
  border: 1px solid var(--primary);
}

.btn-outline:hover {
  background-color: var(--primary-light);
  color: white;
  border-color: var(--primary-light);
}

/* Header Styles */
.header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: var(--background);
  box-shadow: var(--box-shadow);
  padding: 1rem 0;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary);
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.main-nav a {
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
}

.main-nav a:hover {
  color: var(--primary);
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary);
  transition: var(--transition);
}

.main-nav a:hover::after {
  width: 100%;
}

.search-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--background-alt);
  border: 1px solid var(--border);
  border-radius: var(--border-radius);
  padding: 0.5rem 1rem;
  cursor: pointer;
  transition: var(--transition);
}

.search-button:hover {
  background-color: var(--border-light);
}

.search-button svg {
  color: var(--text-light);
}

/* Hero Section */
.hero-section {
  padding: 4rem 0;
  /*background-color: var(--background-alt);*/
}

.hero-section .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
}

.hero-content h1 {
  font-size: 3rem;
  line-height: 1.2;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.gradient-text {
  background: linear-gradient(to right, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.hero-image img {
  width: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
}

/* Stats Section */
.stats-section {
  padding: 4rem 0;
  background-color: var(--background);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background-color: var(--primary);
  padding: 2rem;
  border-radius: var(--border-radius);
  text-align: center;
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Categories Section */
.categories-section {
  padding: 4rem 0;
  background-color: var(--background-alt);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  text-align: center;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.category-card {
  background: var(--primary);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--text-primary);
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.category-icon {
  background-color: rgba(231, 93, 5, 0.1);
  color: var(--primary);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.category-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.category-card p {
  color: var(--white-text);
  margin-bottom: 1rem;
  font-weight: 600;
}

/* Articles Section */
.articles-section {
  padding: 4rem 0;
  background-color: var(--background);
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.article-card {
  background-color: var(--background);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  padding: 10px;
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.article-image {
  /*height: 350px;*/
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.article-card:hover .article-image img {
  transform: scale(1.05);
}

.article-content {
  padding: 0.2rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.article-category {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.article-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.article-excerpt {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.article-link {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.view-all {
  text-align: center;
}

/* Topics Section */
.topics-section {
  padding: 4rem 0;
  background-color: var(--background-alt);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.topic-card {
  background-color: var(--background);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  color: var(--text-primary);
}

.topic-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.topic-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.topic-description {
  color: var(--text-secondary);
  margin-bottom: 1rem;
  flex-grow: 1;
}

.topic-link {
  font-weight: 600;
  color: var(--primary);
}

section#products {
  padding: 2rem 0;
  text-align: center;
  margin-bottom: 2rem;
}

.products-cta {
  padding: 1rem 0rem;
}

a.product-category {
  padding: 15px;
  border: 1px solid #ff8305;
  border-radius: 8px;
  margin: 10px auto;
  display: inline-block;
  max-width: 65%;
  text-align: center;
  color: black;
}

/* Rust Types Section */
.rust-types-section {
  padding: 4rem 0;
  background-color: var(--background);
}

.rust-types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.rust-type-card {
  background-color: var(--background);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
}

.rust-type-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.rust-type-image {
  height: 250px;
  overflow: hidden;
}

.rust-type-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.rust-type-card:hover .rust-type-image img {
  transform: scale(1.05);
}

.rust-type-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 1rem 1.5rem 0.5rem;
}

.rust-type-description {
  color: var(--text-secondary);
  padding: 0 1.5rem 1.5rem;
}

/* Newsletter Section */
.newsletter-section {
  padding: 4rem 0;
  background-color: var(--primary);
  color: white;
  margin-top: 5%;
}

.newsletter-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.newsletter-content p {
  margin-bottom: 2rem;
  opacity: 0.9;
}

.newsletter-form {
  display: flex;
  gap: 0.5rem;
}

.newsletter-form input {
  flex-grow: 1;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--border-radius);
  font-size: 1rem;
}

.newsletter-form .btn-primary {
  background-color: white;
  color: var(--primary);
  border: none;
}

.newsletter-form .btn-primary:hover {
  background-color: var(--background-alt);
}

/* Footer */
.footer {
  background-color: #1f2937;
  color: #e5e7eb;
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}

.footer-brand p {
  margin-bottom: 1.5rem;
  opacity: 0.8;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.social-links a:hover {
  background-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.footer-column h3 {
  color: white;
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-column ul {
  list-style: none;
}

.footer-column li {
  margin-bottom: 0.75rem;
}

.footer-column a {
  color: #e5e7eb;
  opacity: 0.8;
  transition: var(--transition);
}

.footer-column a:hover {
  opacity: 1;
  color: white;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  text-align: center;
  opacity: 0.6;
  font-size: 0.875rem;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .categories-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .rust-types-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.social-links,
	.social-links a {
		display: flex;
	}
	@media (max-width: 720px) {
		.social-links {
			display: none;
		}
	}

@media (max-width: 768px) {
  .hero-section .container {
    grid-template-columns: 1fr;
  }
  
  .hero-content {
    order: 1;
  }
  
  .hero-image {
    order: 0;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
  }
  
  .main-nav {
    display: none;
  }
  
  .topics-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: 1fr 1fr;
  }
  
  .newsletter-form {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .articles-grid {
    grid-template-columns: 1fr;
  }
  
  .rust-types-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-links {
    grid-template-columns: 1fr;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
}

/* Article Page Styles */
.article-page {
  padding: 3rem 0;
  background-color: var(--background);
}

.article-container {
  display: grid;
  grid-template-columns: 3fr 1fr;
  gap: 2rem;
}

/* Article Content Styles */
.article-content {
  background-color: var(--background);
  border-radius: var(--border-radius);
  overflow: hidden;
}

.article-header {
  margin-bottom: 0.5rem;
}

.article-header h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0rem;
  color: var(--text-primary);
  line-height: 1.3em;
}

.article-meta {
  display: inline-block;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0.5rem 0 2rem 0;
}

.article-category {
  color: var(--primary);
  font-weight: 500;
}

.article-separator {
  margin: 0 0.5rem;
}

.article-date {
  color: var(--text-secondary);
}

.article-toc {
  background-color: var(--background-alt);
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin-bottom: 2rem;
}

.article-toc h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  font-weight: 600;
}

.article-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-toc li {
  margin-bottom: 0.5rem;
}

.article-toc a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
}

.article-toc a:hover {
  color: var(--primary);
}

.lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.article-content h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin: 2.5rem 0 1.2rem;
  color: var(--text-primary);
}

.article-content h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0rem 0 1rem;
  color: var(--text-primary);
}

.article-content p {
  margin-bottom: 1.5rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.article-content ul, 
.article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  list-style: square outside none;
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.article-content ul li::marker {
  color: #e85e05;
}

.article-content li strong {
  margin-bottom: 1px !important;
  display: inline-block;
}

.article-image {
  margin: 2rem 0;
  border-radius: var(--border-radius);
  overflow: hidden;
}

.article-image img {
  width: 100%;
  height: auto;
  display: block;
}

.article-image figcaption {
  padding: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
  background-color: var(--background-alt);
  text-align: center;
  display: block;
  width: 100%;
}

.info-box, 
.warning-box {
  padding: 1.5rem;
  border-radius: var(--border-radius);
  margin: 2rem 0;
}

.info-box {
  background-color: rgba(0, 122, 255, 0.1);
  border-left: 4px solid rgba(0, 122, 255, 0.8);
}

.warning-box {
  background-color: rgba(255, 59, 48, 0.1);
  border-left: 4px solid rgba(255, 59, 48, 0.8);
}

.info-box h4, 
.warning-box h4 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.info-box p, 
.warning-box p {
  margin-bottom: 0;
}

.data-table {
  overflow-x: auto;
  margin: 2rem 0;
}

.data-table table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th, 
.data-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background-color: var(--background-alt);
  font-weight: 600;
}

.data-table tr:hover {
  background-color: var(--background-alt);
}

.references {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.references h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.references ol {
  padding-left: 1.5rem;
}

.references li {
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Sidebar Styles */
.article-sidebar {
  /*position: sticky;*/
  top: 4rem;
  align-self: start;
}

.sidebar-section {
  background-color: var(--background);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.sidebar-section h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-top: 0;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.related-articles ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.related-articles li {
  margin-bottom: 0.75rem;
}

.related-articles a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s;
  display: block;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border-light);
}

.related-articles a:hover {
  color: var(--primary);
}

.related-articles li:last-child a {
  border-bottom: none;
}

.stats-box {
  background-color: var(--primary);
}

.sidebar-stat {
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
}

.sidebar-stat:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--secondary);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white-text);
}

.cta-box {
  background-color: var(--primary);
  color: white;
  text-align: center;
}

.cta-box h3 {
  color: white;
}

.cta-box p {
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.cta-box .btn {
  background-color: white;
  color: var(--primary);
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius);
  font-weight: 600;
  display: inline-block;
  text-decoration: none;
  transition: background-color 0.2s, transform 0.2s;
}

.cta-box .btn:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .article-container {
    grid-template-columns: 1fr;
  }
  
  .article-sidebar {
    position: static;
    margin-top: 2rem;
  }
}

@media (max-width: 768px) {
  .article-header h1 {
    font-size: 2rem;
  }
  
  .article-content h2 {
    font-size: 1.6rem;
  }
  
  .article-content h3 {
    font-size: 1.3rem;
  }
  
  .lead {
    font-size: 1.1rem;
  }
  
  .data-table {
    margin: 1.5rem -1rem;
    width: calc(100% + 2rem);
  }
}

.directory-list {
  list-style: none;
  padding: 0;
  padding-left:0 !important
}

.directory-item {
  background: #fff;
  padding: 15px;
  margin: 10px 0;
  border-radius: 8px;
  box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.directory-card {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 15px;
}

.directory-card-content {
  flex: 1;
}

.directory-title {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 0;
}

.directory-phone a {
  text-decoration: none;
  color: #006206;
}

.directory-rating {
  font-weight: bold;
}

.directory-website a {
  display: inline-block;
  margin-top: 15px;
  padding: 10px;
  background: #ff8308;
  color: #000000;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.8rem;
}

p.directory-phone, p.directory-rating, p.directory-location, p.directory-hours, p.directory-category
{
  margin:0 !important;
}

p.directory-hours {
  margin-top: 15px !important;
}

p.directory-categories {
  margin: 1rem 0 !important;
}

.opening-hours {
  list-style-type: none !important;
  font-size: 14px;
  padding-left: 0px !important;
}

.opening-hours li {
  margin: 2px 0 !important;
}

/* Search & Filter UI */
.search-container {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 20px;
  padding: 15px;
  background: #f9f9f9;
  border-radius: 8px;
}

/* Search Input */
.search-input {
  flex: 1;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  outline: none;
  transition: all 0.2s ease-in-out;
}

.search-input:focus {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* Custom wrapper to position elements */
.custom-select-wrapper {
  position: relative;
  display: inline-block;
}

/* Style the dropdown */
.city-select {
  padding: 12px 40px 12px 15px; /* Left padding to avoid text overlap */
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 16px;
  background: #fff;
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* Custom Chevron */
.custom-chevron {
  position: absolute;
  top: 50%;
  right: 12px; /* Moves chevron left */
  transform: translateY(-50%);
  font-size: 14px;
  color: #666;
  pointer-events: none;
}


/* Optional: Hover effect */
.city-select:hover {
  border-color: #007bff;
}




/* Responsive adjustments */
@media (max-width: 768px) {
  .search-container {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input,
  .city-select,
  .filter-button {
    width: 100%;
  }
}

/* Pagination Container */
#pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  gap: 8px;
}

/* Pagination Buttons */
#pagination button {
  background: none;
  border: 1px solid #ddd;
  padding: 8px 12px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  border-radius: 4px;
}

#pagination button:hover {
  background: #f5f5f5;
}

/* Active Page */
#pagination button.active {
  background: #333;
  color: white;
  border-color: #333;
  font-weight: bold;
}

/* Previous & Next Buttons */
#pagination button:first-child,
#pagination button:last-child {
  font-weight: bold;
  padding: 8px 16px;
}

/* Pagination Numbers */
.pagination-numbers {
  display: flex;
  gap: 4px;
}
p.directory-categories {
  margin-top: -15px !important;
  line-height: 1.45;
}

.logo-section {
  display: flex;
  justify-content: center; /* Centers logos horizontally */
  align-items: center; /* Vertically aligns logos */
  gap: 20px; /* Adds space between logos */
  flex-wrap: wrap; /* Ensures logos wrap neatly on smaller screens */
  padding: 20px 0; /* Adds vertical spacing */
}

.logo-section a {
  display: inline-block;
  transition: transform 0.3s ease; /* Smooth hover effect */
}

.logo-section a:hover {
  transform: scale(1.05); /* Slight zoom effect on hover */
}

.logo-section img {
  max-height: 80px; /* Consistent logo height */
  width: auto;
  object-fit: contain;
}

img.product-img {
  max-width: 60%;
}

.product-rating {
  font-size: 1.5rem;
  color: #ccc; /* empty star color */
  display: flex;
  align-items: center;
}

.product-rating .stars {
  display: inline-flex;
  position: relative;
}

.product-rating .stars .full {
  color: #ff8305; /* primary (full star) color */
}

.product-rating .stars .half {
  position: relative;
  display: inline-block;
  color: #ccc; /* empty part color */
}

.product-rating .stars .half::before {
  content: '★';
  color: #ff8305; /* primary color for filled half */
  position: absolute;
  overflow: hidden;
  left: 0;
  top: 0;
  width: 50%; /* shows half star */
}

.product-rating .stars .empty {
  color: #ccc;
}

.product-rating .rating-text {
  font-size: 1rem;
  margin-left: 8px;
  color: #333;
}

.data-table .stars {
  font-size: 1.2rem; /* adjust size to match your table */
  color: #ccc; /* empty star color */
  display: inline-flex;
  position: relative;
}

.data-table .stars .full {
  color: #ff8305; /* primary star color */
}

.data-table .stars .half {
  position: relative;
  display: inline-block;
  color: #ccc;
}

.data-table .stars .half::before {
  content: '★';
  color: #ff8305;
  position: absolute;
  overflow: hidden;
  left: 0;
  top: 0;
  width: 50%; /* half star */
}

h3.advertisement {
  font-size: 14px;
}
