/* Membership Page - Company Directory Section */

.membership-section {
    background-color: #ffffff;
}

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

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-family: 'Cairo', sans-serif !important;
    font-size: 48px !important;
    font-weight: 900 !important;
    color: #000000 !important;
    margin-bottom: 15px;
    line-height: 1.2;
}

.section-subtitle {
    font-family: 'Cairo', sans-serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #000000 !important;
    margin: 0;
}

/* Search Bar */
.search-container {
    margin-bottom: 50px;
    display: flex;
    justify-content: center;
}

.search-box {
    position: relative;
    width: 100%;
    max-width: 900px;
}

.search-input {
    width: 100%;
    padding: 15px 50px 15px 20px;
    font-family: 'Cairo', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #000000;
    background: #ffffff;
    border: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-radius: 0;
    outline: none;
    transition: box-shadow 0.3s ease;
}

.search-input:focus {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.search-input::placeholder {
    color: #666666;
    font-weight: 400;
}

.search-btn {
    position: absolute;
    right: 0;
    top: 0;
    height: 100%;
    width: 50px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    font-size: 18px;
    transition: color 0.3s ease;
}

.search-btn:hover {
    color: #333333;
}

/* Company Grid */
.company-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 50px;
}

/* Company Card Styles (from your other theme) */
.bwbg-company-card {
    background: #ffffff;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
    aspect-ratio: 1 / 1;
    border: 2px solid #000;
}

.bwbg-company-card:hover {
    transform: translateY(-5px);
}

.bwbg-card-logo-container {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.bwbg-card-logo-image {
    width: 90%;
    height: 90%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.bwbg-company-card:hover .bwbg-card-logo-image {
    transform: scale(1.05);
    border: none;
}

.bwbg-card-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 160px;
    background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.7) 50%, rgba(0,0,0,0) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bwbg-company-card:hover .bwbg-card-overlay {
    opacity: 1;
}

.bwbg-card-name-overlay {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    color: #ffffff;
    font-family: 'Cairo', sans-serif;
    font-size: 20px;
    font-weight: 900;
    transform: translateY(20px);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.bwbg-company-card:hover .bwbg-card-name-overlay {
    transform: translateY(0);
    opacity: 1;
}

.no-companies {
    text-align: center;
    font-family: 'Cairo', sans-serif;
    font-size: 18px;
    color: #666666;
    grid-column: 1 / -1;
    padding: 50px 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .company-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .section-title {
        font-size: 42px !important;
    }
    
    .section-subtitle {
        font-size: 20px !important;
    }
}

@media (max-width: 768px) {
    .company-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-title {
        font-size: 52px !important;
    }
    
    .section-subtitle {
        font-size: 18px !important;
    }
    
    .search-box {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 52px !important;
    }
    
    .section-subtitle {
        font-size: 16px !important;
    }
    
    .search-input {
        padding: 12px 45px 12px 15px;
        font-size: 14px;
    }
    
    .search-btn {
        width: 45px;
        font-size: 16px;
    }
    
    .bwbg-company-card {
        aspect-ratio: 1 / 1;
    }
    
    .bwbg-card-logo-image {
        width: 85%;
        height: 85%;
    }
    
    .bwbg-card-name-overlay {
        font-size: 16px;
        bottom: 15px;
        left: 15px;
        right: 15px;
    }
}
