/**
 * WOCM Organization Cards - V2 Styles
 * Equal height cards with scrollable content
 */

/* Card Container */
.wocm-organization-card {
    background: #ffffff;
    border: 1px solid #d4d4d4;
    border-radius: 3px;
    padding: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    height: 350px; /* Fixed height for all cards */
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    cursor: pointer;
    overflow: hidden;
}

/* Hover Effect */
.wocm-organization-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.25);
    border-color: #0052a3;
}

/* Card Header (Organization Name) - Always Visible */
.wocm-card-header {
    flex-shrink: 0;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

/* Organization Name - strong + a tag like main website */
.wocm-card-header strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.wocm-card-header strong a {
    color: #333;
    text-decoration: underline;
}

.wocm-card-header strong a:hover {
    color: #0052a3;
}

/* Card Content - Scrollable Area */
.wocm-card-content {
    flex: 1;
    overflow-y: auto;
    padding-right: 5px; /* Space for scrollbar */
}

/* Custom Scrollbar */
.wocm-card-content::-webkit-scrollbar {
    width: 6px;
}

.wocm-card-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.wocm-card-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.wocm-card-content::-webkit-scrollbar-thumb:hover {
    background: #0052a3;
}

/* Content Paragraphs */
.wocm-card-content p {
    margin: 0 0 8px 0;
    line-height: 1.5;
    color: #333;
    font-size: 13px;
}

.wocm-card-content p:last-child {
    margin-bottom: 0;
}

.wocm-card-content strong {
    color: #333;
}

.wocm-card-content a {
    color: #333;
    text-decoration: none;
}

.wocm-card-content a:hover {
    color: #0052a3;
    text-decoration: underline;
}

/* Responsive - Mobile */
@media (max-width: 767px) {
    .wocm-organization-card {
        height: auto;
        min-height: 250px;
        max-height: 400px;
    }
}

