body {
    background: #f9f9f9;
    font-family: 'Segoe UI', Tahoma, sans-serif;
}

header {
    background: #fff;
    border-bottom: 1px solid #eee;
    padding: 20px;
    text-align: center;
}

header img {
    max-height: 50px;
}

/* Slider */
.carousel-inner {
    width: 100%;
    overflow: hidden;
    border-radius: 12px;
}

.carousel-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Desktop fixed height */
@media (min-width: 768px) {
    .carousel-inner {
        height: auto;
    }
}

/* Mobile responsive height */
@media (max-width: 767.98px) {
    .carousel-inner {
        height: auto;
    }
}

/* Search Bar */
.search-box {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #fff;
    padding: 20px;
    display: flex;
    justify-content: center;
}

.search-box form {
    width: 100%;
    max-width: 600px;
    display: flex;
}

.search-box input {
    border-radius: 50px 0 0 50px;
    box-shadow: none;
    border: 1px solid #ccc;
    padding: 10px 20px;
    flex: 1;
}

.search-box button {
    border-radius: 0 50px 50px 0;
    background: #30965B;
    color: #fff;
    border: none;
    padding: 10px 20px;
    transition: background 0.3s ease;
}

.search-box button:hover {
    background: #132E49;
}

/* Member Cards */
.member-card {
    border: none;
    border-radius: 16px;
    padding: 20px;
    background: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
}

.member-card:hover {
    transform: translateY(-5px);
    background: linear-gradient(135deg, #e6fff1, #e6fff1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

/* Member Images */
.member-images {
    display: flex;
    gap: 15px;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    width: 100%;
}

.member-photo, .company-logo {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    padding: 4px;
    background: #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease;
}

.member-photo {
    object-fit: cover;
    border: 2px solid #30965B;
}

.member-photo:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.company-logo {
    object-fit: contain;
    border: 2px solid #eee;
}

.company-logo:hover {
    filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.3));
    transform: scale(1.05);
}

/* Name + Company */
.member-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 5px;
}

.member-info h6 {
    margin: 0;
    font-weight: 600;
    font-size: 1.3rem;
    color: #132E49;
}

.member-info .company-name {
    color: #333333;
    font-weight: 500;
}

/* Category & Address */
.category, .address {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    text-align: center;
}

.category-label, .address-label {
    color: #333;
    font-weight: 600;
}

.category-value, .address-value {
    color: #6c757d;
}

/* Buttons */
.button-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.button-group a {
    flex: 1 1 auto;
    min-width: 120px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.btn-red {
    background-color: #132E49;
    color: #fff;
    border-radius: 50px;
    padding: 8px 18px;
    transition: all 0.25s ease;
}

.btn-red:hover {
    background-color: #30965B;
    transform: scale(1.05);
    color: #fff;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.btn-success {
    background-color: #30965B;
    color: #fff;
    border-radius: 50px;
    padding: 8px 18px;
    transition: all 0.25s ease;
}

.btn-success:hover {
    background-color: #132E49;
    transform: scale(1.05);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Desktop larger images */
@media (min-width: 768px) {
    .member-photo, .company-logo {
        width: 150px;
        height: 150px;
    }
}

/* Flyer card */
.flyer-card img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.flyer-card img:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Modern Pagination */
.modern-pagination .page-item {
    margin: 0 4px;
}

.modern-pagination .page-link {
    border-radius: 50px;
    color: #30965B;
    border: 1px solid #30965B;
    padding: 6px 14px;
    transition: all 0.3s ease;
}

.modern-pagination .page-link:hover {
    background-color: #30965B;
    color: #fff;
    transform: scale(1.1);
}

.modern-pagination .page-item.active .page-link {
    background-color: #30965B;
    color: #fff;
    border-color: #30965B;
}

footer {
    border-top: 3px solid #30965B;
    background: #132E49;
}

footer a {
    color: #30965B;
    text-decoration: none;
}

footer a:hover {
    color: #ffffff;
    transition: 0.3s ease;
}

@media (max-width: 767.98px) {
    footer p {
        font-size: 0.95rem;
    }
}
