/*
 * Hepatologist Directory Styles
 * Fluent Design system for Hepatologist Cards
 */

.nxh-home-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.nxh-home-wrap .nxh-header {
    text-align: center;
    margin-bottom: 40px;
}

.nxh-home-wrap .nxh-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.nxh-home-wrap .nxh-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.nxh-search-form {
    display: flex;
    justify-content: center;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    overflow: hidden;
}

.nxh-search-form input[type="text"] {
    padding: 16px 20px;
    width: 100%;
    border: 1px solid #e0e4e8;
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
    background: #fff;
    color: #333;
}

.nxh-search-form input[type="text"]:focus {
    border-color: #0d5c8c;
}

.nxh-search-form button {
    padding: 16px 32px;
    border-radius: 0 8px 8px 0;
    background: #0d5c8c;
    color: white;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.nxh-search-form button:hover {
    background: #0a4a70;
}

/* Archive Grid */
.nxh-archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

@media (min-width: 1024px) {
    .nxh-archive-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Pagination */
.nxh-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s;
}

.nxh-pagination .page-numbers:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.nxh-pagination .page-numbers.current {
    background: #0d5c8c;
    color: #fff;
    border-color: #0d5c8c;
}

/* Slider Layout */
.nxh-slider-container {
    padding-bottom: 30px;
}

.nxh-hepatologist-swiper .swiper-slide {
    height: auto;
    /* Force cards to stretch to equal height */
}

/* Card Styling - Fluent Design */
.nxh-card {
    border: 1px solid #e0e4e8;
    background: #fff;
    padding: 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}

.nxh-hepatologist-swiper .swiper-pagination-bullet {
    background: #0d5c8c;
    opacity: 0.5;
}

.nxh-hepatologist-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

.nxh-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.nxh-card-img-wrap {
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    aspect-ratio: 1/1;
    background: #f0f3f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nxh-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.nxh-card:hover .nxh-card-img-wrap img {
    transform: scale(1.03);
}

.nxh-card-img-wrap .nxh-no-img {
    color: #a0aec0;
    font-size: 0.9rem;
}

.nxh-card-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.nxh-card-title {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #e53e3e;
    line-height: 1.3;
}

.nxh-card-degrees {
    margin: 0 0 6px;
    font-size: 0.85rem;
    color: #4a5568;
    font-weight: 600;
}

.nxh-card-designation {
    margin: 0 0 12px;
    font-size: 0.9rem;
    color: #0d5c8c;
    font-weight: 500;
}

.nxh-card-details {
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: #718096;
    line-height: 1.5;
    flex-grow: 1;
}

.nxh-card-detail-item {
    margin-bottom: 6px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 6px;
}

.nxh-card-detail-item svg {
    width: 14px;
    height: 14px;
    margin-top: 2px;
    flex-shrink: 0;
    color: #a0aec0;
}

.nxh-card-detail-item span {
    text-align: left;
}

.nxh-card-cta {
    display: inline-block;
    width: 100%;
    text-align: center;
    background: #fff;
    border: 1px solid #0d5c8c;
    padding: 10px 16px;
    border-radius: 6px;
    color: #0d5c8c;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.nxh-card-cta:hover {
    background: #0d5c8c;
    color: #fff;
}

.nxh-no-results {
    grid-column: 1/-1;
    text-align: center;
    padding: 40px;
    color: #718096;
    font-size: 1.1rem;
    border: 1px dashed #e2e8f0;
    border-radius: 8px;
}