/* =====================================================================
   Batch Profile - MPPLG Class of 2027
   Used by: home.php (marquee + brochure/CV popups) and students_class_2027.php (View all)
   ===================================================================== */

.bp-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--rt-primary);
}

/* ---------- Home: section head ---------- */
.bp-section {
    padding: 8px 0 60px;
    background: #fff;
}

.bp-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.bp-title {
    margin: 0 0 6px;
    font-size: var(--fs-title);
    font-weight: 600;
    color: var(--rt-heading);
}

.bp-title span {
    color: var(--rt-primary);
}

.bp-section .bp-sub {
    margin: 0;
    font-size: var(--fs-body);
    text-align: left;
    color: var(--rt-body);
}

.bp-viewall {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    height: var(--btn-h);
    padding: 0 var(--btn-px);
    border: 1.5px solid var(--rt-primary);
    border-radius: var(--btn-radius);
    font-size: var(--btn-fs);
    font-weight: 600;
    color: var(--rt-primary);
    text-decoration: none;
    transition: all 0.25s ease;
}

.bp-viewall:hover {
    gap: 12px;
    color: #fff;
    background: var(--rt-primary);
}

/* Phone-only link under the strip (the header button is hidden there) */
.bp-viewall-bottom {
    display: none;
}

.bp-viewall-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--btn-fs);
    font-weight: 600;
    color: var(--rt-primary);
    text-decoration: none;
}

.bp-viewall-link:hover {
    gap: 9px;
    color: var(--rt-hover);
}

/* ---------- Home: marquee ---------- */
.bp-marquee {
    overflow: hidden;
    padding: 6px 0 14px;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.bp-track {
    display: flex;
    width: max-content;
    animation: bp-marquee 70s linear infinite;
}

.bp-marquee:hover .bp-track,
.bp-marquee:focus-within .bp-track {
    animation-play-state: paused;
}

.bp-list {
    display: flex;
    gap: 20px;
    margin: 0;
    padding: 0 20px 0 0;
    list-style: none;
}

@keyframes bp-marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* ---------- Home: compact card ---------- */
.bp-card {
    display: flex;
    flex-direction: column;
    width: 236px;
    height: 100%;
    overflow: hidden;
    border: 1px solid #ECE4E6;
    border-radius: 16px;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bp-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(17, 12, 45, 0.09);
}

.bp-photo {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #EEF0F3;
}

.bp-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.bp-intern {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    overflow: hidden;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    text-overflow: ellipsis;
    color: #fff;
    background: rgba(137, 12, 37, 0.92);
}

.bp-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 13px 14px 14px;
}

.bp-name {
    margin: 0;
    font-size: 15.5px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--rt-heading);
}

.bp-section .bp-edu {
    display: -webkit-box;
    min-height: calc(12.5px * 1.45 * 2);
    margin: 4px 0 10px;
    overflow: hidden;
    font-size: 12.5px;
    line-height: 1.45;
    text-align: left;
    color: var(--rt-body);
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.bp-tags {
    position: relative;
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}

.bp-tag,
.bp-more {
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 500;
    white-space: nowrap;
}

.bp-tag {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--rt-primary);
    background: #F8ECEE;
}

.bp-more {
    flex-shrink: 0;
    color: var(--rt-body);
    background: #F2F2F3;
    cursor: default;
    outline: none;
}

.bp-more:hover,
.bp-more:focus-visible {
    color: #fff;
    background: var(--rt-heading);
}

/* "+N" tooltip: sits above the tag row, inside the card */
.bp-tip {
    position: absolute;
    z-index: 5;
    left: 0;
    right: 0;
    bottom: calc(100% + 8px);
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 12px;
    line-height: 1.4;
    white-space: normal;
    color: #fff;
    background: var(--rt-heading);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: all 0.2s ease;
    pointer-events: none;
}

.bp-tip strong {
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #E9B9C3;
}

.bp-tip span::before {
    content: "•";
    margin-right: 6px;
    color: #E9B9C3;
}

.bp-more:hover .bp-tip,
.bp-more:focus-visible .bp-tip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.bp-cv {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: var(--btn-sm-h);
    margin-top: auto;
    padding: 0 var(--btn-sm-px);
    border: 1.5px solid var(--rt-primary);
    border-radius: var(--btn-sm-radius);
    font-size: var(--btn-sm-fs);
    font-weight: 600;
    color: var(--rt-primary);
    background: #fff;
    cursor: pointer;
    transition: all 0.25s ease;
}

.bp-cv:hover {
    color: #fff;
    background: var(--rt-primary);
}

/* ---------- Popups (brochure + CV) ---------- */
.pbr-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 14px;
}

.pbr-modal .modal-header {
    gap: 16px;
    padding: 12px 18px;
    border-bottom: 0;
    background: var(--rt-primary);
}

.pbr-modal .modal-title {
    font-size: 16px;
    font-weight: 600;
    color: #fff;
}

.pbr-modal-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
}

.pbr-modal-tools a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.15);
}

.pbr-modal-tools a:hover {
    color: var(--rt-primary);
    background: #fff;
}

.pbr-modal .btn-close {
    margin: 0 0 0 4px;
    filter: invert(1) grayscale(1) brightness(2);
}

.pbr-modal .modal-body {
    padding: 0;
    background: #525659;
}

.pbr-frame {
    display: block;
    width: 100%;
    height: 80vh;
    border: 0;
}

.pbr-frame[hidden],
.pbr-modal-tools a[hidden],
.cv-missing[hidden] {
    display: none;
}

.cv-missing {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 40px 24px;
    text-align: center;
    background: #fff;
}

.cv-missing > .ico {
    width: 64px;
    height: 64px;
    margin-bottom: 18px;
    padding: 16px;
    border-radius: 50%;
    color: var(--rt-primary);
    background: #F8ECEE;
}

.cv-missing h6 {
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 700;
    color: var(--rt-heading);
}

.cv-missing p {
    max-width: 420px;
    margin: 0;
    font-size: 14px;
    text-align: center;
    color: var(--rt-body);
}

.cv-missing a {
    color: var(--rt-primary);
}

/* ---------- View all page ---------- */
.bpp-page {
    padding: 60px 0 90px;
    background: #FAF8F7;
}

.bpp-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 32px;
}

.bpp-title {
    margin: 0 0 10px;
    font-size: var(--fs-title);
    font-weight: 600;
    line-height: 1;
    color: var(--rt-heading);
}

.bpp-title span {
    color: var(--rt-primary);
}

.bpp-page .bpp-lede {
    max-width: 640px;
    margin: 0;
    font-size: var(--fs-lede);
    line-height: 1.65;
    text-align: left;
    color: var(--rt-body);
}

.bpp-tools {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}

.bpp-search {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 340px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid #E5DADD;
    border-radius: 12px;
    color: #9A9A9D;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bpp-search:focus-within {
    border-color: var(--rt-primary);
    box-shadow: 0 0 0 3px rgba(137, 12, 37, 0.1);
}

.bpp-search input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0;
    border: 0;
    font-size: 14px;
    color: var(--rt-heading);
    background: transparent;
    outline: none;
}

.bpp-count {
    font-size: 13px;
    color: #9A9A9D;
}

.bpp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.bpp-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    grid-template-areas:
        "photo id"
        "photo body";
    grid-template-rows: auto 1fr;
    column-gap: 22px;
    padding: 22px;
    border: 1px solid #ECE4E6;
    border-radius: 18px;
    background: #fff;
    transition: box-shadow 0.3s ease;
}

.bpp-card:hover {
    box-shadow: 0 16px 36px rgba(17, 12, 45, 0.07);
}

.bpp-card[hidden] {
    display: none;
}

.bpp-photo {
    grid-area: photo;
    align-self: start;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 12px;
    background: #EEF0F3;
}

.bpp-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.bpp-id {
    grid-area: id;
}

.bpp-name {
    margin: 0;
    font-size: var(--fs-heading);
    font-weight: 700;
    color: var(--rt-heading);
}

.bpp-roll {
    display: inline-block;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #A3A3A6;
}

.bpp-page .bpp-edu {
    display: flex;
    gap: 8px;
    margin: 10px 0 12px;
    font-size: 13.5px;
    line-height: 1.5;
    text-align: left;
    color: var(--rt-body);
}

.bpp-edu .ico,
.bpp-rows dt .ico {
    margin-top: 3px;
    color: var(--rt-primary);
}

.bpp-body {
    grid-area: body;
    display: flex;
    flex-direction: column;
}

.bpp-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
    padding: 0;
    list-style: none;
}

.bpp-chips li {
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    color: var(--rt-primary);
    background: #F8ECEE;
}

.bpp-intern {
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #FBF5F6;
}

.bpp-intern-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--rt-primary);
}

.bpp-intern strong {
    display: block;
    font-size: 15px;
    color: var(--rt-heading);
}

.bpp-intern em {
    display: block;
    margin-bottom: 6px;
    line-height: 1.45;
    font-size: 13px;
    font-style: normal;
    font-weight: 500;
    color: var(--rt-heading);
}

.bpp-page .bpp-intern p {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    text-align: left;
    color: var(--rt-body);
}

.bpp-rows {
    margin: 0 0 16px;
}

.bpp-rows > div {
    display: grid;
    grid-template-columns: 104px 1fr;
    gap: 10px;
    padding: 8px 0;
    border-top: 1px dashed #EEE6E8;
}

.bpp-rows dt {
    display: flex;
    gap: 7px;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--rt-heading);
}

.bpp-rows dd {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--rt-body);
}

.bpp-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: auto;
}

.bpp-actions .bp-cv {
    width: auto;
    margin: 0;
    color: #fff;
    background: var(--rt-primary);
}

.bpp-actions .bp-cv:hover {
    border-color: var(--rt-hover);
    background: var(--rt-hover);
}

.bpp-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--rt-heading);
    text-decoration: none;
}

.bpp-download .ico {
    color: var(--rt-primary);
}

.bpp-download:hover {
    color: var(--rt-primary);
}

/* Visitors page grid (cards styled by .expert-card in style.css) */
.vtp-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.vtp-item .expert-card {
    height: 100%;
}

[data-search][hidden] {
    display: none;
}

.bpp-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    color: var(--rt-body);
}

.bpp-empty[hidden] {
    display: none;
}

.bpp-empty .ico {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
    color: #C9B8BC;
}

.bpp-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 40px;
    padding: 26px 32px;
    border: 1px solid #ECE4E6;
    border-radius: 18px;
    background: #fff;
}

.bpp-cta h3 {
    margin: 0 0 4px;
    font-size: var(--fs-heading);
    font-weight: 700;
    color: var(--rt-heading);
}

.bpp-page .bpp-cta p {
    margin: 0;
    font-size: 14px;
    text-align: left;
    color: var(--rt-body);
}

.bpp-cta-btn {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    height: var(--btn-h);
    padding: 0 var(--btn-px);
    border-radius: var(--btn-radius);
    font-size: var(--btn-fs);
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    background: var(--rt-primary);
    transition: background 0.25s ease;
}

.bpp-cta-btn:hover {
    color: #fff;
    background: var(--rt-hover);
}

/* ---------- Responsive ---------- */
@media only screen and (max-width: 1199px) {
    .bpp-grid {
        grid-template-columns: 1fr;
    }
}

@media only screen and (max-width: 991px) {
    .vtp-grid {
        grid-template-columns: 1fr;
    }

    .bpp-head {
        flex-direction: column;
        align-items: stretch;
    }

    .bpp-tools {
        align-items: flex-start;
    }

    .bpp-search {
        width: 100%;
    }
}

@media only screen and (max-width: 767px) {
    .bp-section {
        padding-bottom: 44px;
    }

    .bp-head {
        margin-bottom: 20px;
    }

    .bp-head .bp-viewall {
        display: none;
    }

    .bp-viewall-bottom {
        display: block;
        margin-top: 6px;
        text-align: center;
    }


    .bp-card {
        width: 210px;
    }

    .bp-photo {
        height: 180px;
    }

    .pbr-modal .modal-title {
        font-size: 14px;
    }

    .pbr-modal-tools a span {
        display: none;
    }

    .bpp-page {
        padding: 40px 0 60px;
    }

    .vtp-grid {
        grid-template-columns: 1fr;
    }

    .bpp-title {
        line-height: 1;
    }

    .bpp-card {
        grid-template-columns: 92px 1fr;
        grid-template-areas:
            "photo id"
            "body body";
        column-gap: 16px;
        padding: 18px;
    }

    .bpp-rows > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .bpp-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 22px;
    }
}

/* No auto-scroll for visitors who ask for reduced motion: the strip becomes a normal horizontal scroller */
@media (prefers-reduced-motion: reduce) {
    .bp-track {
        animation: none;
    }

    .bp-marquee {
        overflow-x: auto;
    }

    .bp-list[aria-hidden="true"] {
        display: none;
    }
}
