/* Cordial Team Member Plugin Styles - Version 1.0.4 */

/* Container & Breadcrumbs */
.cordial-archive-container, .cordial-single-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.cordial-breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.85rem;
}

.cordial-breadcrumb a {
    color: #2c6e9e;
    text-decoration: none;
    transition: color 0.2s;
}

.cordial-breadcrumb a:hover {
    color: #0f3b52;
    text-decoration: underline;
}

.cordial-breadcrumb span {
    color: #5b6f82;
}

/* Grid Layout */
.cordial-team-grid {
    display: grid;
    gap: 30px;
    max-width: 1300px;
    margin: 0 auto;
}

/* Card Styles */
.cordial-team-card {
    width: 100%;
    background: #ffffff;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 35px -12px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.cordial-card-wrapper:hover .cordial-team-card {
    transform: translateY(-5px);
}

.cordial-card-image-wrapper {
    position: relative;
    width: 100%;
    background: #f4f7fc;
    overflow: hidden;
}

.cordial-card-image {
    width: 100%;
    display: block;
    transition: transform 0.5s ease;
}

.cordial-card-wrapper:hover .cordial-card-image {
    transform: scale(1.1);
}

.cordial-card-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 4 / 3;
}

/* Badge Overlay */
.cordial-card-badge {
    position: absolute;
    bottom: 15px;
    right: 0;
    display: flex;
    align-items: center;
    color: white;
    padding: 0 15px 0 0;
    border-radius: 60px 0 0 60px;
    width: 60%;
    min-height: 52px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.cordial-badge-number {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 22px;
    color: white;
    flex-shrink: 0;
}

.cordial-badge-position {
    padding: 8px 0 8px 12px;
    flex-grow: 1;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.3;
    color: white;
}

/* Card Content */
.cordial-card-content {
    padding: 1.5rem 1.5rem 8px 1.5rem;
    flex-grow: 1;
}

.cordial-card-content h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0a2540;
    margin-bottom: 0.75rem;
    transition: color 0.3s ease;
}

.cordial-card-wrapper:hover .cordial-card-content h3 {
    color: #1e3a8a;
}

.cordial-card-content p {
    font-size: 0.88rem;
    line-height: 1.5;
    color: #2c3e4e;
    margin-top: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card Meta */
.cordial-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 7px 1.5rem 1.8rem 1.5rem;
    border-top: 1px solid #e9edf2;
    gap: 10px;
}

.cordial-leadership-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #f0f4fa;
    padding: 8px 12px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e3a8a;
    white-space: nowrap;
}

.cordial-leadership-pill img {
    width: 14px;
    height: 14px;
}

.cordial-knowmore-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: transparent;
    border: 1.5px solid #1e3a8a;
    padding: 7px 14px;
    border-radius: 40px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #1e3a8a;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
}

.cordial-knowmore-btn img {
    width: 12px;
    height: 12px;
}

.cordial-card-wrapper:hover .cordial-knowmore-btn {
    background-color: #1e3a8a;
    color: white;
}

/* Single Member Layout */
.cordial-single-card {
    background: #ffffff;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 25px 45px -12px rgba(0,0,0,0.2);
    transition: transform 0.2s ease, box-shadow 0.2s;
}

.cordial-single-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 32px 55px -14px rgba(0, 0, 0, 0.25);
}

.cordial-single-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0;
}

.cordial-single-media {
    background: #e9edf2;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cordial-single-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

.cordial-single-card:hover .cordial-single-media img {
    transform: scale(1.02);
}

.cordial-single-content {
    padding: 2rem 2.2rem;
    background: white;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.cordial-single-content h1 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    background: linear-gradient(135deg, #1a3b4e, #2c6285);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 0.25rem;
}

.cordial-single-position {
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: #4f7ea0;
    border-left: 4px solid #3c8dbc;
    padding-left: 0.85rem;
    margin-bottom: 0.5rem;
}

.cordial-single-bio {
    font-size: 1rem;
    line-height: 1.6;
    color: #2c3e44;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.25rem;
}

/* Single Member Sections: Social, Contact, Skills */
.cordial-single-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 0.75rem;
}

.cordial-single-section-header img {
    width: 22px;
    height: 22px;
}

.cordial-single-section-header span {
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: #4b6b84;
    letter-spacing: 0.5px;
}

.cordial-contact-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cordial-contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cordial-contact-item img {
    width: 18px;
    height: 18px;
}

.cordial-contact-item a {
    color: #2c6e9e;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.cordial-contact-item a:hover {
    color: #0f3b52;
}

.cordial-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.cordial-social-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f0f4fa;
    padding: 7px 16px;
    border-radius: 40px;
    font-size: 0.82rem;
    color: #1e577c;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cordial-social-link:hover {
    background: #1e577c;
    color: white;
    transform: translateY(-2px);
}

.cordial-social-link img {
    width: 16px;
    height: 16px;
    transition: filter 0.2s;
}

.cordial-social-link:hover img {
    filter: brightness(0) invert(1);
}

.cordial-skills-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cordial-skill-tag {
    background: #eef2f9;
    padding: 7px 18px;
    border-radius: 40px;
    font-size: 0.82rem;
    color: #1e577c;
    font-weight: 500;
    transition: background 0.2s;
}

.cordial-skill-tag:hover {
    background: #dfe7f5;
}

/* Carousel Styles */
.cordial-carousel-root {
    width: 100%;
    max-width: 1300px;
    position: relative;
    margin: 0 auto;
}

.cordial-carousel-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
    gap: 12px;
    padding: 0 10px;
}

.cordial-nav-btn {
    width: 44px;
    height: 44px;
    background: #ffffff;
    border: 1.5px solid #e9edf2;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    z-index: 10;
}

.cordial-nav-btn:hover {
    background: #1e3a8a;
    transform: translateY(-2px);
}

.cordial-nav-btn:hover img {
    filter: brightness(0) invert(1);
}

.cordial-viewport {
    overflow: hidden;
    width: 100%;
    padding: 10px 0 30px 0;
    touch-action: pan-y;
}

.cordial-track {
    display: flex;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    gap: 25px;
}

.cordial-card-wrapper {
    text-decoration: none;
    display: block;
    flex: 0 0 calc(25% - 19px);
    color: inherit;
}

.cordial-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.cordial-dot {
    width: 10px;
    height: 10px;
    border-radius: 5px;
    background: #cbd5e1;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cordial-dot.active {
    background: #1e3a8a;
    width: 30px;
}

/* Responsive */
@media (max-width: 1100px) {
    .cordial-card-wrapper { flex: 0 0 calc(33.333% - 17px); }
    .cordial-team-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 850px) {
    .cordial-card-wrapper { flex: 0 0 100%; }
    .cordial-track { gap: 20px; }
}

@media (max-width: 900px) {
    .cordial-single-grid {
        grid-template-columns: 1fr;
    }
    .cordial-single-media {
        min-height: 360px;
        height: 360px; /* Force height on mobile */
    }
    .cordial-single-content h1 {
        font-size: 22px;
    }
    .cordial-single-position {
        font-size: 0.9rem;
    }
}

@media (max-width: 640px) {
    .cordial-team-grid { grid-template-columns: 1fr !important; }
    .cordial-card-badge { width: 75%; }
    .cordial-card-content h3 { font-size: 22px; }
}

/* Animations */
@keyframes fadeSlideUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

.cordial-team-card {
    animation: fadeSlideUp 0.5s ease-out;
}