/* ==========================================================================
   Duncan Staff Plugin Styles
   NOTE: No width constraints — widths are controlled by the theme/shortcode container.
   ========================================================================== */

/* ---------- Carousel ---------- */

.duncan-carousel-wrap {
    position: relative;
    overflow: hidden;
}

.duncan-carousel {
    display: flex;
    transition: transform 0.4s ease;
}

.duncan-carousel-slide {
   /* flex: 0 0 33.333%;*/
    box-sizing: border-box;
    padding: 0 15px;
}


.duncan-carousel-card {
    display: block;
    text-decoration: none;
    color: inherit;
    text-align: center;
    background: #fff;
    overflow: hidden;
}

.duncan-carousel-card:hover {
    color: inherit;
}

.duncan-carousel-photo img {
    display: block;
}

.duncan-carousel-info {
    padding: 16px 8px;
}

.duncan-carousel-name {
    margin: 0 0 4px;
    font-size: 1.1em;
    color: #359AD4;
}

.duncan-carousel-title {
    margin: 0;
    font-size: 0.9em;
    opacity: 0.8;
}

.duncan-carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    border: none;
    font-size: 1.6em;
    line-height: 1;
    padding: 10px 14px;
    cursor: pointer;
    z-index: 2;
    border-radius: 4px;
}

.duncan-carousel-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

.duncan-carousel-prev {
    left: 4px;
}

.duncan-carousel-next {
    right: 4px;
}

/* ---------- Team Grid ---------- */

.duncan-team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
}

.duncan-team-card {
    text-align: center;
    background: #fff;
    overflow: hidden;
}

.duncan-team-photo img {
    display: block;
    max-width: 100%;
}

.duncan-team-info {
    padding: 20px 16px;
}

.duncan-team-name {
    margin: 0 0 4px;
    font-size: 1.3em;
    color: #359AD4;
}

.duncan-team-title {
    margin: 0 0 12px;
    font-size: 0.95em;
    opacity: 0.8;
}

.duncan-team-bio {
    font-size: 0.9em;
    line-height: 1.6;
    margin: 0 0 14px;
    text-align: left;
}

.duncan-team-phone {
    font-size: 0.9em;
    margin: 0 0 14px;
}

/* ---------- Shared Button ---------- */

.duncan-btn {
    display: inline-block;
    padding: 10px 28px;
    background: #359AD4;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
    transition: background 0.2s ease;
}

.duncan-btn:hover {
    background: #2a7eb3;
    color: #fff;
}

/* ---------- Single Staff Page ---------- */

.duncan-staff-header {
    display: flex;
    align-items: center;
    gap: 0;
    overflow: hidden;
    margin-top:20px;
}

.duncan-staff-header-info {
    flex: 1;
    padding: 40px;
    order: 1;
    text-align: center;
}

.duncan-staff-header-photo {
    flex: 1;
    order: 2;
}

.duncan-staff-header-photo img {
    display: block;
}

.duncan-staff-header-name {
    margin: 0 0 8px;
    font-size: 3.3em;
    font-weight: bold;
    color: #359AD4;
}

.duncan-staff-header-title {
    margin: 0 0 16px;
    font-size: 2em;
    font-weight:bold;
    color: #555;
}

.duncan-staff-header-contact {
    margin: 6px 0;
    font-size: 2em;
    font-weight:bold;
}

.duncan-staff-header-contact a {
    color: #359AD4;
    text-decoration: none;
}

.duncan-staff-header-contact a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .duncan-staff-header {
        flex-direction: column;
    }

    .duncan-staff-header-info {
        order: 2;
        padding: 24px;
    }

    .duncan-staff-header-photo {
        order: 1;
    }
}

/* About */

.duncan-staff-about {
    padding: 40px 0;
}

.duncan-staff-about h2 {
    text-align: center;
    color: #359AD4;
    font-size: 3em;
    font-weight:bold;
    margin-bottom: 20px;
}

.duncan-staff-about-content {
    line-height: 1.7;
    font-size: 0.95em;
    color: #555;
}

/* Areas of Practice on single staff page */

.duncan-staff-areas {
    padding: 40px 0;
}

.duncan-staff-areas h2 {
    text-align: center;
    color: #359AD4;
    font-size: 3em;
    font-weight:bold;
    margin-bottom: 20px;
}

.duncan-areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.duncan-area-card {
    background: #f7f7f7;
    padding: 24px;
    border-radius: 6px;
}

.duncan-area-card-title {
    margin: 0 0 10px;
    font-size: 1.1em;
}

.duncan-area-card-desc {
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0 0 16px;
}

/* Bottom content area on staff pages */

.duncan-staff-bottom-content {
    padding: 40px 0;
}
