/* ============================================================
   Office of the Registrar
   Page-specific styles only.
   Built to sit on top of the existing css-2026/style.css file.
   ============================================================ */

:root {
    --registrar-maroon: #7f1519;
    --registrar-maroon-dark: #651014;
    --registrar-charcoal: #262425;
    --registrar-navy: #272a3b;
    --registrar-light: #f5f6f7;
    --registrar-border: #d7d7d7;
}

body#page-registrar-office {
    color: #262425;
}

/* Keep the page flush with the existing site header, similar to the
   dedicated page patterns already present in style.css. */
body#page-registrar-office #header {
    margin-bottom: 0;
}

#page-registrar-office .registrar-section {
    overflow: hidden;
    padding: 50px 0;
}

#page-registrar-office .registrar-bordered-top {
    border-top: 20px solid #7f1519;
}

#page-registrar-office h2,
#page-registrar-office h3,
#page-registrar-office h1 {
    font-family: "Poppins", sans-serif;
}

/* ========================= HERO ========================= */
#registrar-hero {
    overflow: hidden;
    margin-bottom: 0;
    padding-bottom: 38px;
    border-bottom: 6px solid var(--registrar-maroon);
}

.registrar-hero-image {
    position: relative;
    overflow: hidden;
}

.registrar-hero-image > img {
    display: block;
    width: 100%;
    object-fit: cover;
}

.registrar-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.28) 50%, rgba(0,0,0,.06) 100%);
}

.registrar-hero-content {
    position: absolute;
    left: 50%;
    bottom: 42px;
    transform: translateX(-50%);
    z-index: 1;
    color: #fff;
}

.registrar-hero-content h1 {
    margin: 0 0 7px;
    font-size: clamp(28px, 3.6vw, 52px);
    line-height: 1.05;
    font-weight: 700;
}

.registrar-hero-content p {
    margin: 0;
    font-size: clamp(13px, 1.25vw, 18px);
    font-weight: 500;
}

.registrar-about-box {
    position: relative;
    z-index: 2;
    width: 78%;
    max-width: 900px;
    margin: -28px auto 0;
    padding: 22px 40px;
    background-color: var(--registrar-maroon);
    color: #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,.15); 
}

/* ========================= HELP / SEARCH ========================= */
#registrar-help {
    text-align: center;
}

#registrar-help h2 {
    margin: 0 0 5px;
    color: var(--registrar-maroon);
    font-size: clamp(25px, 3.6vw, 46px);
    line-height: 1.1;
    font-weight: 700;
}

.section-intro {
    margin-bottom: 0;
    color: #454546;
}

.registrar-search {
    max-width: 720px;
    margin-top: 24px;
}

.registrar-search .form-control {
    min-height: 40px;
    border: 1px solid #666;
    border-radius: 0;
    box-shadow: none;
    font-size: 13px;
}

.registrar-search .form-control:focus {
    border-color: var(--registrar-maroon);
    box-shadow: 0 0 0 .15rem rgba(127,21,25,.12);
}

.registrar-search .btn {
    border-radius: 0;
    font-size: 13px;
    font-weight: 600;
}

.btn-registrar,
.btn-registrar:hover,
.btn-registrar:focus,
.btn-registrar-clear,
.btn-registrar-clear:hover,
.btn-registrar-clear:focus {
    background-color: var(--registrar-maroon);
    border-color: var(--registrar-maroon);
    color: #fff;
}

.btn-registrar:hover,
.btn-registrar-clear:hover {
    background-color: var(--registrar-charcoal);
    border-color: var(--registrar-charcoal);
}

.btn-registrar-clear {
    margin-left: 8px !important;
}

/* ========================= NEWS / NOTICES ========================= */
#registrar-news {
    padding-top: 35px;
    padding-bottom: 38px;
}

.section-title-left {
    margin: 0 0 24px;
    color: var(--registrar-maroon);
    font-size: clamp(22px, 2.5vw, 34px);
    font-weight: 700;
}

.notice-card {
    display: flex;
    min-height: 76px;
    align-items: stretch;
    overflow: hidden;
    background-color: var(--registrar-charcoal);
    color: #fff;
    border: 1px solid #3f3d3e;
    transition: all .3s;
}

.notice-card:hover {
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0,0,0,.15);
}

.notice-label {
    display: flex;
    min-width: 72px;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    background-color: var(--registrar-maroon);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.notice-card strong {
    display: flex;
    flex: 1;
    align-items: center;
    padding: 10px 14px;
    font-size: 11px;
    line-height: 1.3;
    letter-spacing: .01em;
}

/* ========================= QUICK SERVICES ========================= */
.registrar-dark-section {
    background: radial-gradient(ellipse at center, rgb(20,20,75) 0%, rgb(17,17,63) 35%, rgb(10,10,35) 65%, rgb(0,0,0) 100%);
}

#registrar-quick-services {
    padding: 36px 0;
}

.quick-service-card {
    position: relative;
    display: flex;
    min-height: 210px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 26px 18px 20px;
    overflow: hidden;
    background: #fff;
    color: var(--registrar-charcoal);
    text-align: center;
    text-decoration: none;
    transition: all .3s;
}

.quick-service-card:hover {
    color: var(--registrar-charcoal);
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0,0,0,.24);
}

.quick-service-letter {
    position: absolute;
    top: 0;
    left: 10px;
    display: grid;
    width: 50px;
    height: 70px;
    place-items: center;
    background: var(--registrar-maroon);
    color: #fff;
    font-size: 50px;
    font-weight: 700;
}

.quick-service-card img {
    display: block;
    width: 100px;
    height: auto;
    margin: -50px 0 40px 0;
}

.quick-service-card h3 {
    margin: 0 0 6px;
    color: var(--registrar-maroon);
    font-size: 19px;
    font-weight: 700;
    text-transform: uppercase;
}

.quick-service-card p {
    margin: 0 0 10px;
    font-size: 20px;
    line-height: 1.35;
}

.quick-link {
    display: inline-block;
    padding: 4px 12px;
    background-color: var(--registrar-maroon);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: all .3s;
    border-radius: 5px;
}

.quick-service-card:hover .quick-link {
    background-color: var(--registrar-charcoal);
}

.registrar-feature-image {
    height: 100%;
    overflow: hidden;
    border-radius: 18px;
}

.registrar-feature-image img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 428px;
    object-fit: cover;
}

/* ========================= VISION / MISSION ========================= */
#registrar-vision-mission {
    position: relative;
    overflow: hidden;
    border-bottom: 20px solid #272a3b;
    padding-bottom: 100px;
    margin-bottom: 20px;
    background-image: url(../images-2026/bg-70years.png);
    background-size: 100%;
    background-position: 0 100%;
    background-repeat: no-repeat;
}

#registrar-vision-mission::before {
    content: '';
    position: absolute;
    inset: auto 0 0;
    height: 35%;
    background-color: #f5f6f7;
    z-index: 0;
}

#registrar-vision-mission .container {
    position: relative;
    z-index: 1;
}

.vision-card,
.mission-card {
    min-height: 190px;
    padding: 38px 42px;
}

.vision-card {
    background: #fff;
}

.mission-card {
    background-color: var(--registrar-maroon);
    color: #fff;
}

.vm-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.vm-heading i {
    font-size: 38px;
    line-height: 1;
}
.vm-heading i img{
    display: block;
    width: 60px;
    height:  auto;
}
.vm-heading h2 {
    margin: 0;
    color: var(--registrar-maroon);
    font-weight: 700;
}

.mission-card .vm-heading h2 {
    color: #fff;
}

.vision-card p,
.mission-card p {
    margin: 0;
    font-size: 17px;
    line-height: 1.6;
}

/* ========================= MEET OUR TEAM =========================
   This intentionally follows the existing leadership profile treatment
   from style.css: dark strip, overlaid titles, grayscale-to-color hover. */
#registrar-team {
    padding-bottom: 0;
}

.team-heading-band {
    background-color: var(--registrar-maroon);
    color: #fff;
    padding: 30px 0;
    border-bottom: 2px solid #fff;
}

.team-heading-band h2 {
    margin: 0 0 2px;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
}

.team-heading-band p {
    margin: 0;
    line-height: 1.4;
}

.team-grid-wrap {
    padding-top: 30px;
    padding-bottom: 0;
}

.registrar-team-grid {
    margin: 0 auto;
}

/* Same structural strategy as .block-board-of-governors in style.css */
.registrar-team-grid .registrar-team-member {
    position: relative;
    padding: 0;
    overflow: hidden;
    border-left: 1px solid var(--registrar-maroon);
}

.registrar-team-grid .registrar-team-member:first-child {
    border-left: 0;
}

.registrar-team-grid .registrar-team-member img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    filter: grayscale(100%);
    transition: all .3s;
}

.registrar-team-grid .registrar-team-member:hover img {
    filter: grayscale(0%);
    transform: scale(1.025);
}

.registrar-team-grid .registrar-team-title {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 150px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px 8px 26px;
    color: #fff;
    text-align: center;
    background: linear-gradient(to bottom, rgba(40,42,59,0) 0%, rgba(40,42,59,.92) 100%);
    transition: all .3s;
}

.registrar-team-grid .registrar-team-member:hover .registrar-team-title {
    bottom: -10px;
}

.registrar-team-grid .registrar-team-title strong {
    display: inline-block;
    color: #fff;
    font-weight: 700;
    text-shadow: 0 1px 2px #000;
}

.registrar-team-grid .registrar-team-title span {
    display: block;
    margin-top: 4px;
    color: #fff;
}

/* ========================= REGISTRAR SERVICES ========================= */
#registrar-services {
    padding-top: 45px;
    padding-bottom: 45px;
    background-color: #f5f6f7;
    border-bottom: 20px solid var(--registrar-charcoal);
}

#registrar-services > .container > h2,
#registrar-facilities > .container > h2 {
    margin: 0 0 4px;
    color: var(--registrar-maroon);
    font-size: clamp(22px, 2.7vw, 34px);
    line-height: 1.15;
    font-weight: 700;
    text-transform: uppercase;
}

.registrar-services-grid {
    margin-top: 30px;
}

.registrar-service-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    height: 100%;
    padding: 4px 0;
}

.service-number {
    display: inline-grid;
    width: 69px;
    height: 60px;
    flex: 0 0 60px;
    place-items: center;
    border: 4px solid var(--registrar-maroon);
    color: #272a3b;
    font-size: 25px;
    font-weight: 700;
}

.registrar-service-item h3 {
    margin: 0 0 5px;
    color: var(--registrar-maroon);
    font-size: 22px;
    line-height: 1.15;
    font-weight: 700;
}

.registrar-service-item p {
    margin: 0;
    color: #444;
}

/* ========================= FACILITIES ========================= */
#registrar-facilities {
    padding-top: 42px;
    padding-bottom: 48px;
}

.registrar-facility-grid {
    margin-top: 25px;
}

.facility-card {
    height: 100%;
    overflow: hidden;
    background-color: #fff;
    border: 1px solid #ddd;
    transition: all .3s;
}

.facility-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,.14);
    transform: translateY(-3px);
}

.facility-card > img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: all .3s;
}

.facility-card:hover > img {
    transform: scale(1.04);
}

.facility-content {
    position: relative;
    min-height: 150px;
    padding: 13px 12px 12px;
    background-color: var(--registrar-maroon);
    color: #fff;
}

.facility-content h3 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 20px;
    font-weight: 700;

}

.facility-content p {
    margin: 0 0 25px;
    font-size: 14px;
    line-height: 1.45;
}

.facility-content a {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: inline-block;
    padding: 4px 8px;
    background-color: #fff;
    color: var(--registrar-maroon);
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all .3s;
}

.facility-content a:hover {
    background-color: var(--registrar-charcoal);
    color: #fff;
}

/* ========================= FAQ ========================= */
#registrar-faq {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    border-top: 4px solid var(--registrar-charcoal);
    border-bottom: 20px solid #7f1519;
}

.faq-heading-band {
    background-color: var(--registrar-charcoal);
    padding: 30px 0;
    margin-bottom: 30px;
}

.faq-heading-band h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(22px, 2.8vw, 34px);
    font-weight: 700;
    text-transform: uppercase;
}

.faq-intro h3 {
    margin: 0 0 2px;
    color: var(--registrar-maroon);
    font-size: 40px;
    font-weight: 700;
}

.faq-intro p {
    max-width: 300px;
    margin-bottom: 10px;
    font-size: 16px;
    line-height: 1.4;
    font-weight: bold;
}

.faq-question-mark {
    color: var(--registrar-maroon);
    font-size: 115px;
    line-height: .9;
    font-weight: 700;
    text-align: center;
}

.registrar-accordion .accordion-item {
    border: 0;
    border-bottom: 1px solid #ddd;
    border-radius: 0;
}

.registrar-accordion .accordion-button {
    padding: 30px 15px;
    background-color: #fff;
    color: #262425;
    border-radius: 0 !important;
    box-shadow: none;
    font-size: 18px;
    font-weight: 600;
}

.registrar-accordion .accordion-button:not(.collapsed) {
    background-color: var(--registrar-maroon);
    color: #fff;
    border-radius: 10px !important;
}

.registrar-accordion .accordion-button:not(.collapsed)::after {
    filter: brightness(0) invert(1);
}

.registrar-accordion .accordion-button:focus {
    border-color: transparent;
    box-shadow: none;
}

.registrar-accordion .accordion-body {
    padding: 14px 15px 18px;
    background-color: #f7f7f7;
}

.registrar-search-hidden {
    display: none !important;
}

/* The global footer already contains its own margin-top. On this page the
   FAQ visually leads straight into the footer, matching the supplied design. */
body#page-registrar-office #footer {
    margin-top: 0;
}
body#page-registrar-office #upcoming-events{ margin-bottom: 50px; border-top: none;}
body#page-registrar-office #upcoming-events h3 {
    color: #7f1519;
    font-size: clamp(16px, 3.6vw, 50px);
    margin: 0 0 50px;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
}
body#page-registrar-office #upcoming-events h3 span{ color: #262425; }
/************/
#registrar-services\ horizontal .registrar-service-item {display: flex;flex-direction: column;height: 100%;}
#registrar-services\ horizontal .service-header {display: grid;grid-template-columns: 50px 1fr;gap: 15px;align-items: start; margin-bottom: 12px;}
#registrar-services\ horizontal .service-number {
    display: flex;justify-content: center;align-items: center;width: 50px;height: 50px;border: 4px solid #800000;color: #000;
    font-weight: bold;font-size: 1.2rem;}
#registrar-services\ horizontal .service-header h3 {font-size: 1.1rem;font-weight: 700;color: #800000;line-height: 1.3;
    text-transform: uppercase;margin: 0;padding-top: 2px;}
#registrar-services\ horizontal .service-desc {color: #555;line-height: 1.5;margin: 0;}
/************/

/* ========================= RESPONSIVE ========================= */
@media (max-width: 1199px) {
    .registrar-about-box {
        width: 86%;
    }

    .registrar-feature-image img {
        min-height: 410px;
    }

 
}

@media (max-width: 991px) {
    .registrar-about-box {
        width: 90%;
    }

    .registrar-feature-image {
        margin-top: 15px;
    }

    .registrar-feature-image img {
        min-height: 320px;
        max-height: 390px;
    }

    .registrar-team-grid .registrar-team-member {
        width: 33.333%;
        flex: 0 0 33.333%;
    }

    .registrar-team-grid .registrar-team-member:nth-child(4) {
        border-left: 0;
    }
}

@media (max-width: 768px) {
    #page-registrar-office .registrar-section {
        padding: 35px 0;
    }

    .registrar-hero-image,
    .registrar-hero-image > img {
        min-height: 310px;
        height: 310px;
    }

    .registrar-hero-content {
        bottom: 32px;
    }

    .registrar-hero-content h1 {
        font-size: 30px;
    }

    .registrar-hero-content p {
        max-width: 90%;
        font-size: 13px;
    }

    .registrar-about-box {
        width: calc(100% - 30px);
        padding: 18px 20px;
        font-size: 12px;
    }

    #registrar-help h2,
    #registrar-services > .container > h2,
    #registrar-facilities > .container > h2,
    .faq-heading-band h2 {
        text-align: center;
    }

    .registrar-search .input-group {
        gap: 6px;
    }

    .registrar-search .form-control {
        flex: 1 1 100%;
    }

    .registrar-search .btn {
        flex: 1 1 auto;
    }

    .btn-registrar-clear {
        margin-left: 0 !important;
    }

    .vision-card,
    .mission-card {
        min-height: auto;
        padding: 28px 24px;
    }

    .team-heading-band {
        text-align: center;
    }

    .team-heading-band p {
        max-width: 90%;
        margin: 0 auto;
    }

    .registrar-team-grid .registrar-team-member {
        width: 33.333%;
        flex: 0 0 33.333%;
    }

    .faq-intro {
        text-align: center;
    }

    .faq-intro p {
        margin-left: auto;
        margin-right: auto;
    }
    .quick-service-card img{ margin-top: 0;}
    .registrar-search-item{ margin-bottom: 50px !important;}
}

@media (max-width: 575px) {
    #registrar-news .col-md-4 {
        margin-bottom: 0;
    }

    .notice-card {
        min-height: 70px;
    }

    .notice-label {
        min-width: 68px;
    }

    .quick-service-card {
        min-height: 190px;
    }

    .registrar-team-grid .registrar-team-member {
        width: 50%;
        flex: 0 0 50%;
        border-left: 1px solid var(--registrar-maroon);
    }

    .registrar-team-grid .registrar-team-member:nth-child(odd) {
        border-left: 0;
    }

    .registrar-team-grid .registrar-team-title {
        height: 125px;
        padding-bottom: 20px;
    }


    .registrar-service-item {
        padding: 8px 0;
    }

    .facility-content {
        min-height: 138px;
    }

    .faq-question-mark {
        font-size: 90px;
    }
    .registrar-facility-grid .col-6{ width: 100%; }
}
