* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #2C2C2C; /* Charcoal Black */
    background: #F8F7F4 !important; /* Ivory Mist */
    min-height: 100vh;
}

/* Members Section */
.members-section {
    max-width: 100%;
    margin: 0 auto;
}
.members-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 1.3rem;
}
.section-title {
    text-align: center;
    font-size: 2.5rem;
    color: #2C2C2C;
    position: relative;
    flex: 1 1 auto;
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: #C41E3A;
    border-radius: 2px;
}

/* Center title and keep top pagination on right */
.members-header {
    display: flex;
    flex-direction: column; /* stack title and pagination */
    align-items: center;    /* center the title */
}

.bni-pagination.top {
    align-self: flex-end;   /* push pagination to the right */
    margin-top: 10px;       /* small gap below title */
}

/* Responsive for smaller screens */
@media (max-width: 768px) {
    .bni-pagination.top {
        align-self: center; /* center pagination on mobile */
        margin-top: 10px;
    }
    
    .bni-pagination.bottom {
        text-align: center;
    }
}

/* Top Pagination */
.bni-pagination.top {
    text-align: right;
    flex: 0 0 auto;
    margin-left: 20px;
}
.bni-pagination a, .bni-pagination span {
    display: inline-block;
    font-weight: 400;
    padding: 3px 10px;
    border: 1.5px solid #f0d6c0; /* light cream/coral border */
    color: #ED9C84; /* soft dark gray text */
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
}
.bni-pagination a:hover {
    background: #fff2ed; /* very light coral hover */
    color: #000000;
}
.bni-pagination .current {
    background: #ED9C84; /* soft coral active */
    color: #ffffff;
    pointer-events: none;
}
.bni-pagination .dots {
    padding: 3px 10px;
    color: #cfa18a;
    pointer-events: none;
}

/* Member card layout — 3 parts: profile / details / logo */
.member-card {
    background: #FFFFFF;
    border-radius: 14px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    display: grid;
    grid-template-columns: 19% 1fr 20%;
    gap: 2rem;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}
.member-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 20px 40px rgba(0,0,0,0.12); 
    border-left: 4px solid rgb(228, 5, 5);
}

/* Profile Image */
.profile-image {
    width: 200px !important;
    height: 280px !important;
    border-radius: 10px !important;
    object-fit: cover;
    border: 2px solid #6D9DC5 !important;
    transition: transform 0.3s ease;
}
.member-card:hover .profile-image { transform: scale(1.05); }

/* Member Details */
.member-details h3 {
    font-size: 1.8rem;
    color: #C41E3A;
    margin-bottom: 0.5rem;
}
.member-details .title {
    font-size: 1.1rem;
    color: #6F6F6F;
    margin-bottom: 1rem;
}

.contact-info {
    display: flex !important;
    flex-direction: column !important; /* each item in new row */
    gap: 0.50rem !important; /* spacing between rows */
    align-items: flex-start; /* left align all */
}

.contact-item { display:flex; align-items:center; gap:0.5rem; color:#2C2C2C; text-decoration:none; }
.contact-item:hover { color:#6D9DC5; }
.company-name { font-weight: bold; }

.about { margin-top: 1rem; display: none;}
.about h4 { font-size: 1.1rem; color:#C41E3A; margin-bottom: 0.5rem; }
.about p { font-size: 0.95rem; line-height:1.5; color:#444; }

.social-links { display:flex; gap:1rem; margin-top:1rem; }
.social-link {
    display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px;
    background:#E6BCCD; color:#2C2C2C; border-radius:50%; text-decoration:none; transition:all .3s;
}
.social-link:hover { background:#C41E3A; color:#fff; transform:translateY(-2px); }

/* Company logo wrapper for dynamic sizing inside fixed column */
.company-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 180px;
    max-height: 180px;
    padding: 5px;
}
.company-logo-wrapper .company-logo {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform .3s ease;
}
.member-card:hover .company-logo { transform: scale(1.1); }

/* Footer (if used) */
.footer { background:#1C1C2A; color:#F8F7F4; text-align:center; padding:3rem 2rem 2rem; margin-top:4rem; }
.footer-logo { font-size:3rem; color:#C41E3A; margin-bottom:1rem; }

/* Responsive */
@media (max-width: 1024px) {
    .member-card { grid-template-columns: 180px 1fr 160px; }
}
@media (max-width: 768px) {
    .member-card { grid-template-columns: 1fr; text-align:center; gap:1.5rem; }
    .profile-image { width:180px; height:180px; margin:0 auto; justify-self:center; }
    .company-logo-wrapper { justify-self:center; margin-left:0; }
    .contact-info { display:flex; flex-direction:column; gap:0.5rem; align-items:center; }
    .member-details { text-align:center; margin:0 auto; max-width:320px; }
    .social-links { justify-content:center; }
    .members-header { flex-direction: column; align-items: center; }
    .bni-pagination.top { text-align: center; margin-left: 0; margin-top: 10px; }
}

@media (max-width: 600px) {
    .profile-image { width:160px !important; height:180px !important; }
    .member-card { padding:1.5rem; margin: 1rem 2rem; }
}

/* ===== Hero & Footer ===== */
.bni-hero {
    background: linear-gradient(135deg, #6D9DC5 0%, #C41E3A 100%);
    color: #fff;
    text-align: center;
    width: 100%;
    /* margin-left: -6vw; */
    padding: 100px 20px;
    margin-bottom: 30px;
}

.bni-hero .hero-content h1 { font-size: 3rem; margin-bottom: 0.5rem; }
.bni-hero .hero-content p { font-size: 1.1rem; margin-bottom: 1rem; }
.bni-hero .hero-btn {
    background: #fff; color: #6D9DC5; padding: 10px 18px; border-radius: 8px; text-decoration:none; font-weight:600;
}
.bni-hero .hero-btn:hover { opacity: 0.95; }

.bni-footer {
    width: 100%;
    /* margin-left: -6vw !important; */
    background: #1C1C2A;
    color: #F8F7F4;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
}
/* @media (max-width: 1200px) {
     .bni-footer {margin-left: -1vw !important;}
     .bni-hero {margin-left: -1vw !important;}
}

@media (max-width: 975px) {
     .bni-footer {margin-left: -2vw !important;}
     .bni-hero {margin-left: -2vw !important;}
} */
.bni-footer .footer-inner { max-width:1200px; margin:0 auto; }
.bni-footer .footer-logo { font-size: 28px; font-weight:700; color:#C41E3A; margin-bottom:8px; }
.bni-footer p { margin: 0 0 8px; }
.bni-footer .footer-social a { color:#F8F7F4; margin:0 8px; font-size:1.2rem; text-decoration:none; }
.bni-footer .footer-social a:hover { color:#6D9DC5; }

/* Mobile alignment for contact info */
@media (max-width: 768px) {
    .contact-info {
        display: flex;
        flex-direction: column;
        align-items: flex-start; /* align all items to left */
        gap: 0.5rem;
    }

    .contact-item {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
    }

    /* Force icons/labels to have same width */
    .contact-item svg, /* if using icons */
    .contact-item .label { /* if using text labels */
        min-width: 24px; /* adjust width as needed */
        flex-shrink: 0;
    }
}

@media (min-width: 769px) {
    .contact-info {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem 1.5rem;
    }

    .contact-item {
        display: flex;
        align-items: baseline; /* align icon with text baseline */
        gap: 0.5rem;
    }

    .contact-item svg,
    .contact-item .label {
        flex-shrink: 0;
        width: 20px;   /* fixed width for all icons */
        height: 20px;
    }

    .contact-item p {
        margin: 0;
        line-height: 1.4;
        word-break: break-word;
        flex: 1;
    }

}