@charset "utf-8";
/* CSS Document */
/* --- General Body Styles --- */
body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f9fa;
}

/* --- Navigation Bar --- */
.navbar-brand img {
    max-height: 60px;
}

.btn-post-ad {
    background-color: #f7941d; /* A warm orange for contrast */
    color: #fff;
    font-weight: 600;
    transition: background-color 0.3s ease;
}
.btn-post-ad:hover {
    background-color: #e6810c;
    color: #fff;
}

/* --- Hero Search Section --- */
.hero-section {
    background: linear-gradient(135deg, #00A651, #0072BC); /* Gradient from logo */
    padding: 6rem 0;
    color: #fff;
    text-align: center;
}

.hero-section h1 {
    font-weight: 700;
    font-size: 2.8rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.hero-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.search-form .form-control {
    border-radius: 0.25rem 0 0 0.25rem;
    border: none;
    height: 50px;
}
.search-form .btn-search {
    border-radius: 0 0.25rem 0.25rem 0;
    background-color: #f7941d;
    border: none;
    font-weight: 600;
    height: 50px;
    padding: 0 2rem;
}

/* --- Categories Section --- */
.section-title {
    margin-bottom: 2.5rem;
    font-weight: 700;
    color: #333;
}

.category-item {
    text-decoration: none;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    padding: 1.5rem 0.5rem;
    border-radius: 8px;
    background-color: #fff;
    border: 1px solid #e9ecef;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    color: #0072BC; /* Blue from logo */
}

.category-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    color: #0072BC; /* Blue from logo */
    width: 70px;
    height: 70px;
    line-height: 70px;
    border-radius: 50%;
    background-color: #e7f1f8;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.category-item:hover .category-icon {
    background-color: #0072BC;
    color: #fff;
}

.category-name {
    font-weight: 600;
    font-size: 0.9rem;
}

/* --- Ads Section (Placeholder) --- */
.ad-card {
    border: 1px solid #e9ecef;
    transition: box-shadow 0.3s ease;
}
.ad-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.ad-card .card-img-top {
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.ad-card .card-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ad-card .card-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: #00A651; /* Green from logo */
}

/* --- AdSense Placeholder --- */
.adsense-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    min-height: 90px;
    text-align: center;
    color: #6c757d;
    border: 2px dashed #ced4da;
    border-radius: 8px;
    margin: 2rem 0;
}

/* --- Footer --- */
.footer {
    background-color: #212529;
    color: #adb5bd;
}
.footer a {
    color: #f8f9fa;
    text-decoration: none;
}
.footer a:hover {
    color: #f7941d;
}

/* Responsive adjustments */
@media (max-width: 767px) {
    .hero-section h1 {
        font-size: 2rem;
    }
    .category-item {
        padding: 1rem 0.5rem;
    }
    .category-icon {
        font-size: 2rem;
        width: 60px;
        height: 60px;
        line-height: 60px;
    }
}

/* --- AdSense Vertical Placeholder --- */
.ads-vertical-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    width: 100%;
    min-height: 400px; /* Good starting height for a skyscraper ad */
    text-align: center;
    color: #6c757d;
    border: 2px dashed #ced4da;
    border-radius: 8px;
    position: sticky; /* Makes the ad stay in view as user scrolls */
    top: 100px; /* Adjust based on your sticky nav height */
}

/* --- Right Column Directory List --- */
.directory-list .list-group-item {
    border-left: 0;
    border-right: 0;
    border-top: 1px solid #eee;
    padding: 0.85rem 1rem;
    font-weight: 500;
	
}

.directory-list .list-group-item .fa-fw {
    margin-right: 0.5rem;
    color: #00A651;
	
}
.directory-list .list-group-item:first-child {
    border-top: 0;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}
.directory-list .list-group-item:last-child {
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
}

.directory-list .list-group-item-action:hover {
    background-color: #f8f9fa;
    color: #0072BC;
    transform: translateX(5px);
    transition: all 0.2s ease-in-out;
}

.right-column-title {
    font-weight: 700;
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #00A651; /* Green from logo */
}

/* Ensure columns have space on mobile */
@media (max-width: 991px) {
    .main-content-row > div {
        margin-bottom: 2rem;
    }
    .ads-vertical-placeholder {
        min-height: 250px; /* Adjust height for mobile */
        position: static; /* Disable sticky positioning on mobile */
    }
}



/* --- Category Page Specific Styles --- */
.page-header {
    font-weight: 700;
    color: #333;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 3px solid #00A651; /* Green from logo */
}

.
.listing-page-card:hover {
    box-shadow: 0 5px 20px rgba(0,0,0,0.12);
}





.listing-page-card .card-body {
    padding: 1.5rem;
}

.listing-page-card .card-title {
    font-weight: 700;
    color: #0072BC; /* Blue from logo */
}

.listing-page-card .card-description {
    font-size: 0.95rem;
    color: #6c757d;
    height: 60px; /* Limits description to ~3 lines */
    overflow: hidden;
}

.listing-page-card .list-group-item {
    border: none;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.listing-page-card .list-group-item i.fa-fw {
    color: #00A651; /* Green from logo */
    margin-right: 0.5rem;
}

.alert-info {
    background-color: #e7f1f8;
    border-color: #bce8f1;
    color: #0072BC;
}

/* --- ADD THESE NEW STYLES for the Category Grid Page --- */

.listing-grid-card {
    border: 1px solid #e9ecef;
    text-align: center;
    transition: all 0.3s ease;
}
.listing-grid-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.listing-grid-card .card-img-top {
    /* Creates a uniform square image for all cards */
    aspect-ratio: 4/1;
    object-fit:fill;
}

.listing-grid-card .card-body {
    padding: 1rem 0.75rem;
}

.listing-grid-card .card-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Prevents long names from breaking layout */
}

.listing-grid-card .btn-view-more {
    width: 100%;
    background-color: #0072BC;
    border-color: #0072BC;
    color: #fff;
    font-weight: 600;
}

.listing-grid-card .btn-view-more:hover {
    background-color: #005a94;
    border-color: #005a94;
}

.adsense-vertical-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e9ecef;
    min-height: 600px; /* Standard vertical banner height */
    text-align: center;
    color: #6c757d;
    border: 2px dashed #ced4da;
    border-radius: 8px;
    position: sticky;
    top: 100px; /* Offset for sticky navbar */
}


/* --- ADD THESE NEW STYLES for the Subcategory List --- */

.breadcrumb-nav {
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.breadcrumb-nav a {
    text-decoration: none;
    color: #0072BC;
    font-weight: 600;
}
.breadcrumb-nav .breadcrumb-separator {
    margin: 0 0.5rem;
    color: #6c757d;
}
.breadcrumb-nav span {
    color: #343a40;
}

.subcategory-item {
    display: block;
    text-decoration: none;
    background-color: #fff;
    padding: 2rem 1rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    text-align: center;
    color: #343a40;
    transition: all 0.3s ease;
}

.subcategory-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
    color: #0072BC;
}

.subcategory-item .subcategory-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #00A651;
}

.subcategory-item .subcategory-name {
    font-weight: 600;
    font-size: 1.1rem;
}




/* --- ADD THESE NEW STYLES for the Top Subcategory List --- */

.top-subcategory-list {
    list-style: none;
    padding: 0;
    margin: -0.5rem 0 2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.top-subcategory-list a {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    padding: 0.3rem 0.8rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #495057;
    transition: all 0.2s ease-in-out;
}

.top-subcategory-list a:hover,
.top-subcategory-list a.active { /* 'active' class for the current subcategory */
    background-color: #0072BC;
    color: #fff;
    border-color: #0072BC;
}

.top-subcategory-list a i {
    font-size: 0.9rem;
    margin-right: 0.5rem;
    color: #00A651;
}

.top-subcategory-list a:hover i,
.top-subcategory-list a.active i {
    color: #fff;
}

#loadMoreBtn {
    background-color: #343a40;
    border-color: #343a40;
    font-weight: 600;
    padding: 0.75rem 2rem;
}
#loadMoreBtn:hover {
    background-color: #23272b;
}


/* --- ADD THESE STYLES for the Listing Detail Page --- */

.cover-section {
    height: 40vh;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
}
.cover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}
.cover-logo {
    max-width: 120px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 15px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
}
.cover-title {
    font-weight: 700;
    font-size: 3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}
.cover-tagline {
    font-size: 1.2rem;
    font-style: italic;
}

.detail-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
}
.card-title-section {
    font-weight: 700;
    color: #333;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #0072BC;
}

.product-service-item {
    padding-top: 1rem;
    padding-bottom: 1rem;
}
.price-tag {
    color: #00A651;
    font-size: 1.1rem;
}
.inquire-btn {
    font-weight: 600;
}

.contact-list li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
}
.contact-list i {
    color: #0072BC;
    margin-right: 1rem;
}

.map-container {
    overflow: hidden;
    position: relative;
    height: 300px;
}
.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}


/* --- ADD THESE STYLES for Product/Service Images on Detail Page --- */

.product-service-item {
    align-items: center; /* Vertically align items in the middle */
}

.product-service-image {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    margin-right: 1rem;
}


/* --- Responsive adjustments for the Inquire button --- */
@media (max-width: 575.98px) {
  .product-service-item .d-flex {
    /* Change from a side-by-side row to a vertical column */
    flex-direction: column;
    /* Align items to the start (left) */
    align-items: flex-start;
  }

  .product-service-item .inquire-btn,
  .product-service-item .price-tag {
    /* Add some space above the button/price when it stacks */
    margin-top: 0.5rem;
  }
}


/* --- ADD THESE STYLES for the Search Result Cards --- */

.search-result-card {
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    background-color: #fff;
}
.search-result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.search-result-card .card-img-top {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-bottom: 1px solid #e9ecef;
}

.search-result-card .card-title {
    font-weight: 600;
    font-size: 1rem;
}

.search-result-card .card-company-name {
    font-size: 0.85rem;
    font-style: italic;
    color: #6c757d;
}