/* CCS Faculty Accordion widget — matches the reference screenshot design.
   Color/spacing values here are sensible defaults; the widget's Style tab
   controls override these via higher-specificity inline rules Elementor
   generates for each setting. */

.ccs-fa { display: flex; flex-direction: column; gap: 12px; }

.ccs-fa-item {
    background: #FFFFFF;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* div[role=button] (not <button>) so Elementor/theme global button styles can't apply.
   Specificity is deliberately raised (.ccs-fa .ccs-fa-header) and the state resets use
   !important, because themes/Elementor kits often paint [role=button], :hover and :focus
   with their own brand color. Hover color remains controllable from the widget's Style tab. */
.ccs-fa-header {
    width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    text-align: left;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.2s ease;
}
.ccs-fa .ccs-fa-header,
.ccs-fa .ccs-fa-header:focus,
.ccs-fa .ccs-fa-header:active {
    background: transparent !important;
    background-image: none !important;
    border: none !important;
    box-shadow: none !important;
    color: inherit;
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
}
.ccs-fa .ccs-fa-header:hover { background: #f5f8fc !important; }
.ccs-fa .ccs-fa-header:focus-visible { outline: 2px solid #b4cbe7; outline-offset: -2px; }

.ccs-fa-avatar {
    width: 80px;
    height: 80px;
    min-width: 80px;
    --ccs-fa-focus-x: 50%;
    --ccs-fa-focus-y: 10%; /* keep the top of the photo in view so heads aren't cut off */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}
/* Photo avatars: the circle is a plain box and the photo is forced to FILL it exactly.
   Elementor's global `img { height:auto; max-width:100% }` used to win here, which made the photo taller than
   the circle and got it clipped from the middle (heads cut off, and the focus setting had no effect).
   The extra .ccs-fa in the selector makes this rule win. */
.ccs-fa .ccs-fa-avatar--photo { display: block; }
.ccs-fa .ccs-fa-avatar img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    object-fit: cover;
    /* the focus point decides which part of a tall photo stays visible inside the circle */
    object-position: var(--ccs-fa-focus-x, 50%) var(--ccs-fa-focus-y, 10%);
}
.ccs-fa-avatar-initials {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #FFFFFF;
}

.ccs-fa-info { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; text-align: left; }
.ccs-fa-name {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 16px;
    font-weight: 600;
    color: #152a46;
}
.ccs-fa-title {
    font-family: 'Inter', -apple-system, sans-serif;
    font-size: 13px;
    color: #6B7280;
}

/* Toggle icon: plus when closed, close (X) when open.
   Both icons are absolutely centered on top of each other and cross-faded, so they
   can never stack/wrap even if a theme overrides svg display rules. */
.ccs-fa-toggle {
    position: relative;
    display: block;
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 50%;
    background-color: #f5f8fc;
    color: #7a9ec4;
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.ccs-fa-toggle svg {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.25s ease;
}
.ccs-fa-toggle .ccs-fa-icon-plus  { opacity: 1; transform: translate(-50%, -50%) rotate(0deg); }
.ccs-fa-toggle .ccs-fa-icon-close { opacity: 0; transform: translate(-50%, -50%) rotate(-90deg); }
.ccs-fa-item.ccs-fa-open .ccs-fa-toggle .ccs-fa-icon-plus  { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
.ccs-fa-item.ccs-fa-open .ccs-fa-toggle .ccs-fa-icon-close { opacity: 1; transform: translate(-50%, -50%) rotate(0deg); }
.ccs-fa-item.ccs-fa-open .ccs-fa-toggle { color: #152a46; background-color: #e8eef5; }

.ccs-fa-content { display: none; }
.ccs-fa-item.ccs-fa-open .ccs-fa-content { display: block; }

.ccs-fa-content-inner {
    display: flex;
    gap: 24px;
    padding: 8px 24px 28px;
    align-items: flex-start;
}

.ccs-fa-photo { width: 220px; min-width: 220px; }
.ccs-fa-photo img { width: 100%; height: auto; border-radius: 16px; display: block; object-fit: cover; }

.ccs-fa-text { flex: 1 1 auto; min-width: 0; }

.ccs-fa-bio {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 16px;
    color: #4B5563;
    line-height: 1.7;
}
.ccs-fa-bio p { margin: 0 0 14px; }
.ccs-fa-bio p:last-child { margin-bottom: 0; }
.ccs-fa-bio a { color: #7a9ec4; text-decoration: underline; transition: color 0.2s ease; }
.ccs-fa-bio a:hover { color: #152a46; }

.ccs-fa-quote {
    margin: 20px 0 0;
    background: #f5f8fc;
    border-left: 4px solid #b4cbe7;
    border-radius: 0 8px 8px 0;
    padding: 20px 24px;
}
.ccs-fa-quote-text {
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-size: 16px;
    color: #152a46;
    margin: 0 0 8px;
    line-height: 1.6;
}
.ccs-fa-quote-cite {
    font-family: 'Inter', -apple-system, sans-serif;
    font-style: normal;
    font-size: 13px;
    font-weight: 600;
    color: #7a9ec4;
}

@media (max-width: 640px) {
    .ccs-fa-content-inner { flex-direction: column; }
    .ccs-fa-photo { width: 100%; min-width: 0; max-width: 220px; }
}
