@charset "UTF-8";
/* ============================================================
   feedmachinery.com — Directory Stylesheet
   Extends Bulma (used by your Bulkit template)
   ============================================================ */

/* ── VARIABLES ─────────────────────────────────────────────── */
:root {
    --dir-primary:      #a5392f;   /* deep green — feed/agri industry */
    --dir-primary-dark: #145530;
    --dir-accent:       #f5a623;   /* amber — matches Bulkit warning */
    --dir-dark:         #1f2b3a;   /* dark navy — navbar, headings */
    --dir-grey:         #f7f8fa;   /* light bg for alternating sections */
    --dir-border:       #e8ecf0;
    --dir-text:         #363636;
    --dir-text-light:   #6b7280;
    --dir-radius:       6px;
    --dir-shadow:       0 2px 12px rgba(0,0,0,0.08);
    --dir-shadow-hover: 0 6px 24px rgba(0,0,0,0.14);
}

/* ── BASE ───────────────────────────────────────────────────── */
body.directory-page {

    /**background: #fff;**/

}

a {

}
a:hover {

}

.subcats {
    color: #777 !important;
    font-size: 0.95rem;
}

.subcats:hover {
    color: #a5392f !important;
}

.content-list-title {
    color: #777 !important;
    font-size: 0.95rem;
}

.content-list-title:hover {
    color: #a5392f !important;
}

/* ── NAVBAR ─────────────────────────────────────────────────── */
.navbar.is-dark {
    background: var(--dir-dark) !important;
}

.navbar-item.is-active,
.navbar-item:hover {
    background: rgba(255,255,255,0.08) !important;
}

.navbar-dropdown .navbar-item:hover {
    background: var(--dir-grey) !important;
    color: var(--dir-primary) !important;
}

/* ── DIRECTORY PAGE HEADER (breadcrumb + title band) ───────── */
.dir-page-header {
    background: var(--dir-dark);
    padding: 2rem 0 1.5rem;
    margin-bottom: 2rem;
}

.dir-page-header h1 {
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
}

.dir-page-header .breadcrumb a {
    color: rgba(255,255,255,0.65);
}

.dir-page-header .breadcrumb li.is-active a {
    color: var(--dir-accent);
}

/* ── COMPANY CARDS (listing page) ───────────────────────────── */
.company-card {
    background: #fff;
    border: 1px solid var(--dir-border);
    border-radius: var(--dir-radius);
    padding: 1.25rem;
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    color: var(--dir-text);
    margin-bottom: 1rem;
}

.company-card:hover {
    box-shadow: var(--dir-shadow-hover);
    transform: translateY(-2px);
    color: var(--dir-text);
    border: 1px solid var(--dir-border);
}

.company-card__logo {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    object-fit: contain;
    border: 1px solid var(--dir-border);
    border-radius: 4px;
    background: #fff;
    padding: 4px;
}

.company-card__body {
    flex: 1;
    min-width: 0;
}

.company-card__name {
    color: #555;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: "Nexa Bold",sans-serif;
}

.title {
    color: #555;
}

.breadcrumb:not(:last-child) { margin-bottom:5rem; }

.company-card__meta {
    color: var(--dir-primary);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

.company-card__description {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.company-card__tags {
    margin-top: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}

.company-card.is-featured {
    border-left: 4px solid var(--dir-accent);
}

/* ── COMPANY PROFILE PAGE ───────────────────────────────────── */
.company-profile__header {
    background: var(--dir-dark);
    padding: 2.5rem 0;
    color: #fff;
}

.company-profile__logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    background: #fff;
    border-radius: var(--dir-radius);
    padding: 8px;
    border: 3px solid rgba(255,255,255,0.15);
}

.company-profile__name {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.company-profile__type {
    display: inline-block;
    background: var(--dir-accent);
    color: #1a1a1a;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.company-profile__contact-box {
    background: var(--dir-grey);
    border: 1px solid var(--dir-border);
    border-radius: var(--dir-radius);
    padding: 1.25rem;
}

.company-profile__contact-box p {
    font-size: 0.9rem;
    margin-bottom: 0.4rem;
}

.company-profile__contact-box .icon {
    color: var(--dir-primary);
    width: 1.4em;
}

/* ── PRODUCT CARDS ──────────────────────────────────────────── */
.product-card {
    border: 1px solid var(--dir-border);
    border-radius: var(--dir-radius);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    box-shadow: var(--dir-shadow-hover);
    transform: translateY(-3px);
}

.product-card__image {
    width: 100%;
    height: 180px;
    object-fit: contain;
    background: var(--dir-grey);
    padding: 1rem;
}

.product-card__body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card__title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--dir-text);
    margin-bottom: 0.3rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__company {
    font-size: 0.95rem;
    color: #a5392f !important;
    margin-bottom: 0.5rem;
}

.product-card__desc {
    font-size: 0.82rem;
    color: var(--dir-text-light);
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── CATEGORY GRID (directory home) ────────────────────────── */
.category-card {
    background: #fff;
    border: 1px solid var(--dir-border);
    border-radius: var(--dir-radius);
    padding: 1.25rem 1rem;
    text-align: center;
    text-decoration: none;
    color: var(--dir-text);
    display: block;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.category-card:hover {
    box-shadow: var(--dir-shadow-hover);
    border-color: var(--dir-primary);
    color: var(--dir-primary);
}

.category-card__icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 0 auto 0.75rem;
    display: block;
}

.category-card__name {
    font-weight: 600;
    font-size: 0.88rem;
    line-height: 1.4;
}

/* ── TAGS / BADGES ──────────────────────────────────────────── */
.dir-tag {
    display: inline-block;
    background: #eef2f7;
    color: var(--dir-text-light);
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 20px;
    text-decoration: none;
    border: 1px solid var(--dir-border);
}

.dir-tag:hover {
    background: var(--dir-primary);
    color: #fff;
    border-color: var(--dir-primary);
}

.dir-tag.is-primary {
    background: var(--dir-primary);
    color: #fff;
    border-color: var(--dir-primary);
}

/* ── SEARCH BAR ─────────────────────────────────────────────── */
.dir-search {
    background: var(--dir-primary);
    padding: 2rem 0;
}

.dir-search .input,
.dir-search .select select {
    border-radius: var(--dir-radius);
    border: none;
    height: 2.8em;
    font-size: 1rem;
}

.dir-search .button {
    height: 2.8em;
    font-weight: 700;
}

/* ── FILTER SIDEBAR ─────────────────────────────────────────── */
.dir-filter-box {
    background: var(--dir-grey);
    border: 1px solid var(--dir-border);
    border-radius: var(--dir-radius);
    padding: 1.25rem;
    margin-bottom: 1.25rem;
}

.dir-filter-box h3 {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--dir-text-light);
    margin-bottom: 0.75rem;
}

/* ── PAGINATION ─────────────────────────────────────────────── */
.dir-pagination {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.dir-pagination a,
.dir-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.75rem;
    border: 1px solid var(--dir-border);
    border-radius: var(--dir-radius);
    font-size: 0.9rem;
    text-decoration: none;
    color: var(--dir-text);
    background: #fff;
    transition: all 0.15s ease;
}

.dir-pagination a:hover {
    background: var(--dir-primary);
    color: #fff;
    border-color: var(--dir-primary);
}

.dir-pagination .is-current {
    background: var(--dir-primary);
    color: #fff;
    border-color: var(--dir-primary);
    font-weight: 700;
}

.dir-pagination .is-disabled {
    color: #ccc;
    cursor: default;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.dir-footer {
    background: var(--dir-dark);
    padding: 3rem 0 2rem;
}

.dir-footer,
.dir-footer p,
.dir-footer a {
    color: rgba(255,255,255,0.65);
}

.dir-footer a:hover {
    color: var(--dir-accent);
}

.dir-footer .footer-heading {
    color: #fff;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.dir-footer .footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
}

.dir-footer .footer-links li {
    margin-bottom: 0.4rem;
}

.dir-footer .footer-links a {
    font-size: 0.88rem;
}

.dir-footer-divider {
    border: none;
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 1.5rem 0;
}

/* ── UTILITY ────────────────────────────────────────────────── */
.section-title {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #555;
    padding-bottom: 0.3rem;
    margin-bottom: 2rem;
}


.section-subheading {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #555;
    padding-bottom: 0.3rem;
    margin-bottom: 2rem;
}

/**
.section-subheading {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #555;
    border-bottom: 1px solid #a5392f;
    padding-bottom: 0.3rem;
    margin-bottom: 0.8rem;
}
**/

.no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--dir-text-light);
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    color: var(--dir-border);
}

/* ── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 768px) {
    .company-card {
        flex-direction: column;
    }

    .company-card__logo {
        width: 60px;
        height: 60px;
    }

    .company-profile__name {
        font-size: 1.4rem;
    }

    .dir-search {
        padding: 1rem 0;
    }
}

#business-types {

    background-color: #990000;

}

.sidebar-block {
    margin-bottom: 4rem !important;
}

.sidebar-heading {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #555;
    border-bottom: 1px solid #a5392f;
    padding-bottom: 0.3rem;
    margin-bottom: 0.8rem;
}




.content-list-item {
    padding: 0.25rem 0;
    border-bottom: 1px solid #f0f0f0;
}

/* 1. Force remove native browser summary arrows across all browsers */
.category-accordion summary::-webkit-details-marker {
    display: none !important;
}
.category-accordion summary {
    list-style: none !important;
    display: flex !important;
}

/* 2. Setup smooth rotation properties for Font Awesome */
.accordion-icon-wrapper i {
    transition: transform 0.2s ease-in-out;
    transform: rotate(0deg);
}

/* Align accordion chevrons to the top line for wrapped text, and add a tiny top offset to match font height */
.accordion-summary {
    align-items: flex-start !important;
}

.accordion-summary .accordion-icon-wrapper {
    margin-top: 0.25rem; /* Adjusts the chevron up or down slightly to perfectly center with line 1 */
}

/* Align wrapped subcategory text nicely next to the arrow indicator */
.category-accordion ul li a {
    display: flex !important;
    align-items: flex-start;
    gap: 0.35rem; /* Space between the › and the text */
}
/* 3. When the parent details tag has the [open] attribute, rotate the icon 90 degrees */
.category-accordion[open] .accordion-icon-wrapper i {
    transform: rotate(90deg);
}

.content-cat-chip {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    margin: 0.2rem 0.2rem 0.2rem 0;
    border: 1px solid #d5d5d5;
    border-radius: 20px;
    font-size: 0.78rem;
    color: #555;
    background: #fafafa;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.content-cat-chip:hover {
    border-color: #a5392f;
    color: #a5392f;
    background: #fff5f4;
} 