/* Club Members Directory */

:root {
    --font-base: 1rem;
    --font-medium: 1.125rem;
    --font-small: 0.875rem;
    --font-smaller: 0.8125rem;
    --font-tiny: 0.75rem;
    --font-heading: 1.125rem;
}

/* Base Layout */
.dac-row {
    display: flex;
    flex-wrap: wrap;
    margin-left: -1rem;
    margin-right: -1rem;
    clear: both;
}

.member-card__club-name {
    font-size: var(--font-base);
    font-weight: 500;
    text-decoration: none;
}

.member-card__business-classification {
    font-size: var(--font-smaller);
    font-weight: 400;
    font-style: normal;
    display: block;
    margin-top: 0.25rem;
}

/* Member Directory Layout */
.member-directory {
    width: 100%;
}

/* Item Containers */
/* Item Containers */
.member-directory__item {
    padding: 0.75rem;
    padding: 0.75rem;
    margin-bottom: 1.5rem;
    box-sizing: border-box;
    display: flex;
}

/* Equal height rows */
.member-directory__item > table {
    width: 100%;
    height: 100%;
    table-layout: fixed;
    box-sizing: border-box;
    display: flex;
}

/* Equal height rows */
.member-directory__item > table {
    width: 100%;
    height: 100%;
    table-layout: fixed;
}

.member-directory__table {
    vertical-align: top;
    padding: 0;
    border: 0 !important;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

/* Image cell with fixed width */
/* Image cell with fixed width */
.member-directory__image-cell {
    border: 0 !important;
    vertical-align: top;
    padding: 0;
    width: 1px; /* This will be overridden by inline width */
}

/* Image container - maintains aspect ratio */
.member-directory__image-cell > div {
    position: relative;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

/* Image styling */
/* Image styling */
.member-directory__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.member-directory__spacer {
    border: 0 !important;
    width: 10px;
    width: 10px;
    padding: 0;
}

.member-directory__content {
    border: 0 !important;
    vertical-align: top;
    padding: 0;
    overflow: hidden;
    word-break: break-word;
    white-space: normal;
}

.member-directory__name {
    font-size: var(--font-heading);
    font-weight: 700;
    margin: 0;
    white-space: normal;
    overflow-wrap: break-word;
}

.member-directory__position {
    font-size: var(--font-base);
    font-weight: 400;
    margin: -0.25rem 0;
    display: block;
    white-space: normal;
    overflow-wrap: break-word;
}

.member-card__membership-info {
    font-size: var(--font-base);
    font-weight: 400;
    margin: 0.5rem 0;
    white-space: normal;
    overflow-wrap: break-word;
}

.member-card__business-info {
    font-size: var(--font-base);
    font-weight: 400;
    margin: 0.5rem 0;
    white-space: normal;
    overflow-wrap: break-word;
}

.member-card__business-info a,
.member-card__business-info span {
    font-size: var(--font-base);
    font-weight: 400;
}

.member-card__busposition {
    font-size: var(--font-small);
    font-style: italic;
    display: block;
    margin-top: 0.25rem;
}

/* Responsive Grid Classes */
.member-directory__item--col-1 {
    width: 100%;
}

.member-directory__item--col-2 {
    width: 100%;
}
@media (min-width: 576px) {
    .member-directory__item--col-2 {
        width: 50%;
    }
}

.member-directory__item--col-3 {
    width: 100%;
}
@media (min-width: 768px) {
    .member-directory__item--col-3 {
        width: 33.333%;
    }
}

.member-directory__item--col-4 {
    width: 100%;
}
@media (min-width: 576px) {
    .member-directory__item--col-4 {
        width: 50%;
    }
}
@media (min-width: 992px) {
    .member-directory__item--col-4 {
        width: 25%;
    }
}

/* Satellite Club Indicator */
.member-directory__item--satellite {
    opacity: 0.9;
}

/* Contact button styling */
.member-directory__contact-btn {
    display: inline-block;
    padding: 0px 16px;
    background-color: var(--silver, #e6e6e6);
    color: var(--rotary-royal-blue, #0050a2);
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    margin-top: 0.5rem;
    font-size: var(--font-medium);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.member-directory__contact-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--rotary-royal-blue, #0050a2);
    transform: translateX(-100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.member-directory__contact-btn:hover::before {
    transform: translateX(0);
}

.member-directory__contact-btn:hover {
    background-color: var(--rotary-royal-blue, #0050a2);
    color: var(--rotary-gold, #f7a81b);
    background-color: var(--rotary-royal-blue, #0050a2);
    color: var(--rotary-gold, #f7a81b);
    text-decoration: none;
}

/* Pagination Styling */
.pagination-container {
    margin: 1.5rem 0;
    clear: both;
}

.pagination-center, 
.pagination-left, 
.pagination-right {
    text-align: center;
}

.pagination-right {
    text-align: right;
}

.pagination-left {
    text-align: left;
}

/* Page Content */
.page-content {
    width: 100%;
}
