body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
}
header {
    color: #fff;
    background-color: #008080;
    padding: 10px 0;
    text-align: center;
	display: flex;
    
}

header h1 {
    margin: 0;
    padding: 10px 0 0 50px;
}

nav {
    overflow: hidden;
    padding:0 0 0 60%;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: Center;
}

nav ul li {
     margin: 0;
        }
nav ul li a {
    color: #fff;
    padding: 20px 20px;
    text-decoration: none;
    display: flex;
        }

nav ul li a:hover {
    background-color: #ff6347;
}
.header-banner {
    width: 100%;
    text-align: center;
}
.header-banner img {
    width: 100%; /* Makes the banner image responsive */
    max-height: 600px; /* Optional: Limit the banner height */
    object-fit: cover; /* Ensures the image covers the area properly */
}
.Categories {
		background-color: #f3ca00;
        color: #000;
        padding: 20px 100px;/*Use this to Center the categories*/ 
        text-align: center;
		display: flex;
}
.Categories ul {
	list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: Center;
}
.Categories ul li{
	margin:0;
}
.Categories ul li a {
	color: #666;
	padding: 14px 20px;
    text-decoration: none;
}
.Categories ul li a:hover {
	background-color:#fff;
}
.directory {
    padding: 20px;
    }
		
/* Center container and flex layout */
.container {
    display: flex;
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}
/* Sidebar styling */
.sidebar {
    width: 20%;
    background-color: #f4f4f4;
    padding: 10px;
    text-align: center;
    color: #666;
}
/* Main content styling */
.main-content {
    width: 60%;
    padding: 0 10px;
}
/* Search bar styling */
.search-bar {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    margin-top: 20px;
}
.search-bar input[type="text"] {
    width: 70%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    outline: none;
}
/* Business card styling */
.directory {
    display: flex;
    flex-direction: column;
}
.business-card {
	position: relative;
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.business-card-Boosted {
	position: relative;
    display: flex;
    align-items: center;
    background-color: #fff;
    border: 1px solid #ddd;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.business-card-Boosted button {
    text-decoration: none;
    position: absolute;
    bottom: 10%;
    left: 80%;
    padding: 10px 30px;
    background-color: #008080;
    border-style: none;
}
.business-card-Boosted button a {
    text-decoration: none;
    color: #fff;
}
.business-card-Boosted button:hover{
    background-color: #046b6b;
}
.boosted{
	position: absolute;
	top: 0;
	right: 0;
	padding: 0 20px 0 20px;
    font-size: 16px;
    color: #fff;
    background-color: #008080;
    border: none;
    border-radius: 0 0 0 10px;
	z-index: 1;
}
.contacts{
	Display: flex;
	flex-direction:column;
	padding:0;
}

.business-logo {
    width: 150px;
    height: 150px;
    margin-right: 15px;
    border-radius: 5px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.business-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
}
.business-info h2 {
    margin: 0 0 10px;
}
.business-info p {
    margin: 5px 0;
    color: #333;
}
.footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px;
    margin-top: 20px;
        }

h1 h2 {
  color: #fff;
}

ul {
  padding-left: 20px;
}
.about-section {
  padding: 20px;
}
.about-section h1 {
    text-align: center;
}

.about-text{
    text-align: left;
}
.about-content {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.about-image img {
  max-width: 300px; /* Adjust as needed */
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.about-text {
  flex: 1;
}

@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
  }

  .about-image img {
    max-width: 100%;
  }
}
.ad-banner {
    background-color: #f8f9fa;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #ddd;
    border-radius: 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.ad-content {
    text-align: center;
}
.ad-content h2 {
    color: #333;
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}
.ad-content p {
    color: #333;
    font-size: 16px;
    margin-bottom: 20px;
}
.ad-button {
    background-color: #008080;
    color: #fff;
    padding: 12px 25px;
    font-size: 18px;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}
.ad-button:hover {
    background-color: #024646;
}
.ad-banner img{
	Width: 100%;
	height: auto;
	background-color:#f5f5f5;
	border-radius: 10px;
}
/*blog section*/
.blog-section {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    margin-top: 40px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.blog-section h2 {
    color: #343a40;
    font-size: 28px;
    font-weight: bold;
    text-align: center;
    margin-bottom: 30px;
}
.blog-posts {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 30px;
}
.blog-post {
    border: 1px solid #ddd;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}
.blog-post h3 {
    font-size: 20px;
    color: #007bff;
    margin-bottom: 10px;
}
.blog-post a {
    text-decoration: none;
    color: #007bff;
}
.blog-meta {
    font-size: 14px;
    color: #6c757d;
    margin-bottom: 15px;
}
.blog-excerpt {
    font-size: 16px;
    color: #495057;
    margin-bottom: 20px;
}
.read-more {
    font-size: 16px;
    color: #007bff;
    text-decoration: none;
}
.read-more:hover {
    text-decoration: underline;
}
.view-all-posts {
    display: block;
    text-align: center;
    margin-top: 30px;
    font-size: 18px;
    color: #007bff;
    text-decoration: none;
}
.view-all-posts:hover {
    text-decoration: underline;
}
.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Four equal columns */
    gap: 20px;
    padding: 20px;
    background-color: #f4f4f4;
  } 
  .category {
    text-align: center;
    padding: 15px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.category:hover {
    transform: scale(1.05);
}
.category img {
    width: 60px; /* Icon size */
    height: 60px;
    margin-bottom: 10px;
}
.category p {
    font-size: 16px;
    color: #333;
}
.category a {
    text-decoration: none;
}
  
  /* Responsive adjustments for smaller screens */
  @media (max-width: 1024px) {
    .categories-grid {
      grid-template-columns: repeat(2, 1fr); /* Two columns on medium screens */
    }
  }
  
  @media (max-width: 600px) {
    .categories-grid {
      grid-template-columns: 1fr; /* Single column on small screens */
    }
  }
  
  /* Ad Banner Styling */
.ad-banner-horizontal {
    width: 100%;
    background-color: #008080;
    color: #fff;
    padding: 20px 0 10px 0;
    text-align: center;
    margin: 20px 0;
    border: 1px solid #ddd;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.ad-content-horizontal h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.ad-content-horizontal p {
    font-size: 16px;
    margin-bottom: 15px;
}

.ad-button-horizontal {
    display: inline-block;
    padding:  20px;
    margin-bottom: 20px;
    background-color: #333;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    font-size: 16px;
    transition: background-color 0.3s;
}

.ad-button-horizontal:hover {
    background-color: #555;
}

/* Responsive Styling */
@media (max-width: 768px) {
    .ad-banner-horizontal {
        padding: 15px 0;
    }

    .ad-content-horizontal h2 {
        font-size: 20px;
    }

    .ad-content-horizontal p {
        font-size: 14px;
    }

    .ad-button-horizontal {
        font-size: 14px;
        padding: 8px 16px;
    }
}
.subcategories {
    list-style-type: none;
    padding-left: 0;
    margin-top: 10px;
}

.subcategories li {
    margin-bottom: 8px;
}

.subcategories a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: normal;
}

.subcategories a:hover {
    color: #007BFF;
}

@media (max-width: 1200px) {
    .container {
        flex-direction: row;
    }

    .sidebar {
        width: 20%;
    }

    .main-content {
        width: 60%;
    }

    .business-card-Boosted {
        flex-direction: row;
        align-items: center;

    }
    .ad-content p{
        font-size: 14px;
    }
    .ad-button{
        font-size: 14px;
    }
    .business-logo img {
        width: 150px;
        height: 150px;
        margin-right: 10px;
    }

    .search-bar input {
        width: 80%;
    }
    .business-card-Boosted button {
        text-decoration: none;
        position: relative;
        display: block;
        bottom: 5%;
        left: 25%;
        padding: 10px 30px;
        background-color: #008080;
        border-style: none;
        margin-top: 15px;
        
}
}

@media (max-width: 768px) {
    header {
        padding: 10px;
    }

    header nav ul {
        flex-direction: column;
        align-items: center;
    }

    .Categories ul {
        flex-direction: column;
        align-items: center;
    }

    .Categories ul li {
        margin-bottom: 10px;
    }

    .container {
        margin: 10px;
    }

    .sidebar, .main-content {
        width: 60%;
        padding: 10px;
        display: flex;
    }

.business-card-Boosted {
        flex-direction: column;
        align-items: center;
    }
.business-logo{
    width: 150px;
    height: 150px;
}
    .business-logo img {
        width: 100%;
        height: 100%;
        margin-bottom: 10px;
    }

    .search-bar input {
        width: 80%;
    }
    .business-card-Boosted button {
        text-decoration: none;
        position: relative;
        display: block;
        bottom: 5%;
        left: 25%;
        padding: 10px 50px;
        background-color: #008080;
        border-style: none;
        margin-top: 15px;
        font-size: medium;
        
}
    footer {
        padding: 10px;
    }
    .blog-posts{
        width: 100%;
        display: flex;
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    nav {
        padding:0 0 0 0;
        background-color: #008080;
    }
    
    nav ul {
        list-style-type: none;
        margin: 0;
        padding: 0;
        display: inline;
    }

    nav ul li{
        text-align: left;
    }
    
    .search-bar input {
        width: 100%;
        padding: 8px;
    }
    header{
        display: block;
        text-align: center;
        background-color: #fff;
    }

    header h1{
        display: inline;
        color: #008080;
        padding: 0;
    }
    .business-logo{
        width: 150px;
        height: 150px;
    }
    .business-logo img {
        width: 150px;
        height: 150px;
        box-sizing: content-box;
    }
    .business-info h2 {
        font-size: 22px;
        text-align: center;
        padding: 0;
    }

    .business-info p {
        text-align: left;
        padding: 0;
    }

    .contacts p {
        font-size: 14px;
        display: flex;
        text-align: left;
        line-height: 100%;
    }

    .business-card-Boosted{
        flex-direction: column;
        text-align: center;
        margin: 20px;
    }
    .business-card{
        flex-direction: column;
        text-align: left;
    }
    .boosted h4 {
        font-size: 14px;
    }
    .business-card-Boosted button {
        text-decoration: none;
        position: relative;
        display: block;
        bottom: 5%;
        left: 25%;
        padding: 10px 30px;
        background-color: #008080;
        border-style: none;
        margin-top: 15px;
        }
    .blog-posts{
        width: 100%;
        display: flex;
        flex-direction: column;
        }
}

@media (max-width: 320px) {
    .business-info h2 {
        font-size: 16px;
        text-align: left;
        padding: 0 0 0 5%;
    }
.main-content .sidebar{
    width: 100%;
    display: column;
    }
    .business-info p {
        text-align: left;
        padding: 0 5%;
        font-size: 12px;
    }

    .contacts p {
        font-size: 12px;
        display: block;
        text-align: left;
        margin-top: 2px;
    }
    .business-card-Boosted{
        display: flex;
        flex-direction: column;
        width: 100%;
        margin: 10px;
        align-items: center;
        text-align: left;
        padding: 10px;
    }
    .business-card{
        flex-direction: row;
        text-align: left;
    }
    .boosted{
        padding: 0 10px;
    }
    .boosted h4 {
        font-size: 12px;
    }
    .business-logo{
        width: 100px;
        height: 100px;
    }
    .business-logo img{
        width: 100%;
        height: 100%;
    }
    .business-card-Boosted button {
        text-decoration: none;
        position: relative;
        display: block;
        bottom: 5%;
        left: 13%;
        padding: 10px 30px;
        background-color: #008080;
        border-style: none;
        margin-top: 15px;
}
.search-bar {
    display: flex;
    justify-content: center;
    width: 100%;
}
.directory{
    display: hidden;
}
.blog-posts{
    width: 100%;
    display: flex;
    flex-direction: column;
}
}
