/* =========================================
   OUR TEAM PAGE
   ========================================= */

/* ---- Active link in the header ---- */
#umuri-header-root .umuri-nav-links > li > a.active {
    color: var(--accent-color) !important;
    box-shadow: 0 3px 0 var(--accent-color) !important;
}

/* ---- Masthead with slideshow ---- */
.ot-masthead {
    position: relative;
    margin-top: 170px; /* clears the desktop header */
    height: 460px;
    overflow: hidden;
    background: #2a0f0d;
    color: #fff;
}

.ot-slides {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.ot-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transform: translateX(100%);
    transition: none;
    z-index: 0;
    will-change: transform;
}

.ot-slide.active     { transform: translateX(0);     transition: transform 0.5s ease-in-out; z-index: 2; }
.ot-slide.exit       { transform: translateX(-100%); transition: transform 0.5s ease-in-out; z-index: 1; }
.ot-slide.pre-left   { transform: translateX(-100%); transition: none; }
.ot-slide.exit-right { transform: translateX(100%);  transition: transform 0.5s ease-in-out; z-index: 1; }

/* Maroon fade so the text stays readable */
.ot-masthead::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(to top, rgba(88, 27, 24, 0.92) 0%, rgba(88, 27, 24, 0.55) 38%, rgba(88, 27, 24, 0) 70%);
    pointer-events: none;
}

.ot-masthead-text {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    padding-bottom: 44px;
}

.ot-crumbs {
    margin-bottom: 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.ot-crumbs a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ot-crumbs a:hover { color: #fff; }

.ot-crumbs span {
    margin: 0 8px;
    color: rgba(255, 255, 255, 0.45);
}

.ot-masthead h1 {
    margin: 0 0 8px;
    font-size: 38px;
    line-height: 1.2;
    font-weight: 700;
    color: #fff;
}

.ot-masthead p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
}

/* Slideshow arrows */
.ot-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 7;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    background: rgba(88, 27, 24, 0.55);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.ot-arrow:hover { background: var(--accent-color); }

.ot-prev { left: 20px; }
.ot-next { right: 20px; }

/* ---- Sections ---- */
.ot-section { padding: 70px 0; }

.ot-tint {
    background: #f7f3f0;
    border-top: 1px solid #e6ddd8;
    border-bottom: 1px solid #e6ddd8;
}

.ot-intro {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 56px;
    align-items: start;
}

.ot-intro h2 {
    margin: 0;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
    color: var(--primary-color);
}

.ot-intro p {
    margin: 0;
    font-size: 17px;
    line-height: 1.85;
    color: #444;
}

.ot-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--primary-color);
}

.ot-head h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.ot-count {
    font-size: 13px;
    color: #777;
    white-space: nowrap;
}

.ot-empty {
    margin: 0;
    padding: 30px;
    text-align: center;
    border: 1px solid #e6ddd8;
    background: #fff;
    font-size: 15px;
    color: #777;
}

/* ---- Team grid ---- */
.ot-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 44px 28px;
}

.ot-photo {
    overflow: hidden;
    margin-bottom: 16px;
    background: #e8e0dc;
}

.ot-photo img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: center top;
    transition: transform 0.4s ease;
}

.ot-member:hover .ot-photo img { transform: scale(1.03); }

.ot-photo-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: #e8e0dc;
    color: #b9aaa5;
    font-size: 54px;
}

.ot-member h3 {
    margin: 0 0 4px;
    font-size: 17px;
    line-height: 1.35;
    font-weight: 700;
    color: var(--primary-color);
}

.ot-role {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #666;
}

.ot-linkedin {
    display: inline-block;
    margin-top: 10px;
    padding-bottom: 2px;
    border-bottom: 2px solid var(--accent-color);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.ot-linkedin:hover { color: var(--accent-color); }

.ot-linkedin i { margin-right: 4px; }

/* ---- Volunteer band ---- */
.ot-involve {
    padding: 60px 0;
    background: var(--primary-color);
    color: #fff;
}

.ot-involve-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
}

.ot-involve h2 {
    margin: 0 0 10px;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
}

.ot-involve p {
    margin: 0;
    max-width: 760px;
    font-size: 15px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.84);
}

.ot-btn {
    display: inline-block;
    padding: 14px 32px;
    background: var(--accent-color);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.ot-btn:hover { background: #fff; color: var(--primary-color); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .ot-masthead { margin-top: 70px; } /* mobile header is 70px tall */

    .ot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 992px) {
    .ot-intro { grid-template-columns: 1fr; gap: 24px; }
    .ot-involve-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 768px) {
    .ot-masthead { height: 360px; }
    .ot-masthead-text { padding-bottom: 30px; }
    .ot-masthead h1 { font-size: 28px; }

    .ot-arrow { width: 38px; height: 38px; font-size: 14px; }
    .ot-prev { left: 10px; }
    .ot-next { right: 10px; }

    .ot-section { padding: 48px 0; }
    .ot-intro h2 { font-size: 24px; }
    .ot-intro p { font-size: 16px; }

    .ot-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 32px 18px;
    }

    .ot-involve { padding: 44px 0; }
}

@media (max-width: 480px) {
    .ot-grid { grid-template-columns: 1fr; }
}