/*
 * Additions to the polytech2k23 stylesheets for the parts this CMS renders itself
 * (breadcrumb, tables, pagination, ticker, cards, forms). The original stylesheets
 * (../style.css and ../assets/css/style.css) are used unchanged.
 */

/* Room for the fixed "Latest Updates" strip at the bottom of the window */
body { padding-bottom: 30px; }

/* Header: site name when no logo has been uploaded yet */
.site-brand { display: flex; align-items: center; gap: 16px; padding: 10px 0; }
.head-left-logo.is-emblem { float: none; width: auto; max-width: none; height: 96px; }
.site-title { display: block; }
.site-title-text { display: block; font-size: 26px; font-weight: 700; line-height: 1.2; color: #132a52; }
.site-title-line { display: block; font-size: 13px; line-height: 1.45; color: #3d3d3d; }
@media (max-width: 767px) { .head-left-logo.is-emblem { height: 64px; } .site-title-text { font-size: 19px; } .site-title-line { font-size: 11px; } }
.home-principal-text { text-align: left; }
.status-left { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 3px; font-size: 12px; font-weight: 600; color: #fff; background: #95103e; }
.main-header-left a:hover { text-decoration: none; }

/*
 * Header bands follow the screen width (instead of Bootstrap's fixed 1140px container).
 *  - 992px and wider: the main menu is a single row whose text and spacing scale with
 *    the screen, and the corner triangles are drawn at the bar's full height.
 *  - below 992px eleven top-level items cannot fit legibly, so the theme's collapsed
 *    "Menu" button is used (the theme itself only switched at 768px).
 */
@media (min-width: 769px) {
    .header-top > .container,
    .header > .container,
    .menu-main-div > .container {
        width: auto;
        max-width: none;
        padding-left: 52px;  /* room for the 44px triangles outside the bars */
        padding-right: 52px;
    }
}

@media (min-width: 992px) {
    /* top strip: one row */
    .header-top .bdha-info-top { margin: 0 clamp(4px, 0.55vw, 10px); }
    .header-top .bdha-info-top a,
    .header-top .bdha-info-top span { font-size: clamp(11px, 0.4vw + 7px, 13px); white-space: nowrap; }
    .header-top .bdha-info-top i { font-size: clamp(13px, 0.4vw + 9px, 17px); margin-right: clamp(4px, 0.5vw, 10px); }

    #cssmenu { position: relative; --menu-x: clamp(3px, 0.55vw, 12px); }
    #cssmenu #menu-button { display: none; }
    #cssmenu > ul {
        display: flex !important; /* the menu script calls .show(); keep it a row */
        flex-wrap: nowrap;
        justify-content: space-between;
        align-items: stretch;
        margin: 0;
        padding: 0;
    }
    #cssmenu > ul:after { display: none; }
    #cssmenu > ul > li { float: none; flex: 0 1 auto; position: relative; }
    #cssmenu > ul > li > a {
        display: block;
        height: 100%;
        padding: 13px var(--menu-x);
        font-size: clamp(9px, 0.62vw + 2.5px, 14px);
        letter-spacing: clamp(0px, 0.08vw - 0.8px, 0.7px);
        white-space: nowrap;
    }
    /* the "+" of items with a sub-menu moves with the scaled padding */
    #cssmenu > ul > li.has-sub > a { padding-right: calc(var(--menu-x) + 14px); }
    #cssmenu > ul > li.has-sub > a:after { right: calc(var(--menu-x) + 2px); top: calc(50% - 1px); }
    #cssmenu > ul > li.has-sub > a:before { right: calc(var(--menu-x) + 5px); top: calc(50% - 4px); }
    /* the last items open their sub-menu towards the left, inside the screen */
    #cssmenu > ul > li:nth-last-child(-n+2):hover > ul { left: auto; right: 0; }

    /* corner triangles: as tall as the bar, whatever its height */
    #cssmenu:before,
    #cssmenu:after {
        width: 44px;
        height: auto;
        top: 0;
        bottom: 0;
        border: 0;
        background: #6665ce;
        transform: none;
    }
    #cssmenu:before { left: -44px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
    #cssmenu:after { left: auto; right: -44px; clip-path: polygon(0 0, 0 100%, 100% 100%); }
}

@media (min-width: 769px) and (max-width: 991px) {
    #cssmenu {
        width: 100%;
    }
    #cssmenu ul {
        width: 100%;
        display: none;
    }
    #cssmenu.align-center>ul {
        text-align: left;
    }
    #cssmenu ul li {
        width: 100%;
        border-top: 1px solid rgba(120, 120, 120, 0.2);
    }
    #cssmenu ul ul li,
    #cssmenu li:hover>ul>li {
        height: auto;
    }
    #cssmenu ul li a,
    #cssmenu ul ul li a {
        width: 100%;
        border-bottom: 0;
    }
    #cssmenu>ul>li {
        float: none;
    }
    #cssmenu ul ul li a {
        padding-left: 25px;
    }
    #cssmenu ul ul ul li a {
        padding-left: 35px;
    }
    #cssmenu ul ul li a {
        color: #fff;
        background: none;
    }
    #cssmenu ul ul li:hover>a,
    #cssmenu ul ul li.active>a {
        color: #fff;
    }
    #cssmenu ul ul,
    #cssmenu ul ul ul,
    #cssmenu.align-right ul ul {
        position: relative;
        left: 0;
        width: 100%;
        margin: 0;
        text-align: left;
    }
    #cssmenu>ul>li.has-sub>a:after,
    #cssmenu>ul>li.has-sub>a:before,
    #cssmenu ul ul>li.has-sub>a:after,
    #cssmenu ul ul>li.has-sub>a:before {
        display: none;
    }
    #cssmenu #menu-button {
        display: block;
        padding: 9px;
        color: #fff;
        cursor: pointer;
        font-size: 12px;
        text-transform: uppercase;
        font-weight: 700;
    }
    #cssmenu #menu-button:after {
        position: absolute;
        top: 15px;
        right: 17px;
        display: block;
        height: 8px;
        width: 20px;
        border-top: 2px solid #fff;
        border-bottom: 2px solid #fff;
        content: '';
    }
    #cssmenu #menu-button:before {
        position: absolute;
        top: 9px;
        right: 17px;
        display: block;
        height: 2px;
        width: 20px;
        background: #fff;
        content: '';
    }
    #cssmenu #menu-button.menu-opened:after {
        top: 23px;
        border: 0;
        height: 2px;
        width: 15px;
        background: #fff;
        -webkit-transform: rotate(45deg);
        -moz-transform: rotate(45deg);
        -ms-transform: rotate(45deg);
        -o-transform: rotate(45deg);
        transform: rotate(45deg);
    }
    #cssmenu #menu-button.menu-opened:before {
        top: 23px;
        background: #fff;
        width: 15px;
        -webkit-transform: rotate(-45deg);
        -moz-transform: rotate(-45deg);
        -ms-transform: rotate(-45deg);
        -o-transform: rotate(-45deg);
        transform: rotate(-45deg);
    }
    #cssmenu .submenu-button {
        position: absolute;
        z-index: 99;
        right: 0;
        top: 0;
        display: block;
        border-left: 1px solid rgba(120, 120, 120, 0.2);
        height: 39px;
        width: 46px;
        cursor: pointer;
		background:#6665ce;
    }
    #cssmenu .submenu-button.submenu-opened {
        background: #fff;
    }
    #cssmenu ul ul .submenu-button {
        height: 34px;
        width: 34px;
    }
    #cssmenu .submenu-button:after {
        position: absolute;
        top: 22px;
        right: 19px;
        width: 8px;
        height: 2px;
        display: block;
        background: #fff;
        content: '';
    }
    #cssmenu ul ul .submenu-button:after {
        top: 15px;
        right: 13px;
    }
    #cssmenu .submenu-button.submenu-opened:after {
        background: #4f4848;
    }
    #cssmenu .submenu-button:before {
        position: absolute;
        top: 19px;
        right: 22px;
        display: block;
        width: 2px;
        height: 8px;
        background: #fff;
        content: '';
    }
    #cssmenu ul ul .submenu-button:before {
        top: 12px;
        right: 16px;
    }
    #cssmenu .submenu-button.submenu-opened:before {
        display: none;
    }
}

/* Section headings */
/* The rule is an inline SVG: as a block it no longer sits on a text line, so it touches the heading's underline. */
.sec-title-rule { display: block; max-width: 100%; height: auto; margin: -1px 0 0 -1px; }
.sec-title-rule path { fill: #132a52; }
.last-modified { margin: -6px 0 10px; font-size: 13px; text-align: right; color: #7d8386; }

/* Breadcrumb */
.breadcrumb { display: block; margin: 12px 0 14px; padding: 8px 14px; font-size: 14px; background: #f5f5f5; border-radius: 3px; }
.breadcrumb a { color: #132a52; }
.breadcrumb a.current-item { text-decoration: none; cursor: default; }
.breadcrumb .breadcrumb-sep { color: #7d8386; }

/* Tables */
.ispl-table { margin-bottom: 18px; border: 1px solid #d2d2d2; }
.ispl-table th, .ispl-table td { padding: 8px 10px; border: 1px solid #d2d2d2; vertical-align: middle; }
.ispl-table tbody tr:nth-of-type(odd) { background-color: #f5f5f5; }
.ispl-table td img { max-height: 30px; width: auto; }
.ispl-fields th { background: #f5f5f5; font-weight: 600; }
.field-thumb { max-width: 140px; max-height: none !important; }
.field-block { margin-top: 18px; }

/* Rich text written in the editor */
.page-content > .row { margin-left: 0; margin-right: 0; }
.page-content > .row > [class*="col-"] { padding-left: 0; padding-right: 0; }
.page-content h2 { font-size: 22px; margin: 18px 0 8px; }
.page-content img { max-width: 100%; height: auto; }
.page-content table { margin-bottom: 16px; }
.page-content table td, .page-content table th { padding: 6px 10px; border: 1px solid #d2d2d2; }
.page-content iframe { max-width: 100%; }

/* Pagination (app/Views/pager/numeric.php) */
.pagination { display: block; margin: 20px 0; text-align: center; }
.pagination .nav-links .page-numbers { display: inline-block; min-width: 36px; margin: 0 2px 6px; padding: 6px 10px; border: 1px solid #132a52; border-radius: 3px; color: #132a52; background: #fff; text-decoration: none; }
.pagination .nav-links .page-numbers.current,
.pagination .nav-links a.page-numbers:hover { color: #fff; background: #132a52; }

/* "Latest Updates" ticker */
.sticky-footer { overflow: hidden; }
.sticky-footer .sticky-footer-headline { height: 30px; padding: 3px 6px; overflow: hidden; white-space: nowrap; font-size: 14px; }
.sticky-footer .sticky-footer-updates { height: 30px; overflow: hidden; white-space: nowrap; line-height: 30px; }
.ticker-track { display: inline-block; padding-left: 100%; animation: ticker-scroll 60s linear -12s infinite; }
.sticky-footer-updates:hover .ticker-track, .sticky-footer-updates:focus-within .ticker-track { animation-play-state: paused; }
.ticker-track a { margin-right: 60px; color: #fff; font-size: 14px; }
.ticker-track a::before { content: "\2022"; margin-right: 10px; color: #eaa346; }
.ticker-track a:hover { color: #eaa346; }
@keyframes ticker-scroll { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
    .ticker-track { padding-left: 10px; animation: none; }
    .sticky-footer .sticky-footer-updates { overflow-x: auto; }
}
@media (max-width: 767px) {
    .sticky-footer .sticky-footer-headline { width: 38%; padding-left: 4px; font-size: 12px; }
    .sticky-footer .sticky-footer-updates { width: 62%; }
}

/* Sidebar boxes */
.quick-links { position: relative; }
/*
 * Box headings with slanted ends: the triangles belong to the heading (not to the box
 * corners) and are as tall as the heading, so they fit whatever the box padding, the
 * column width or the number of lines of the title.
 */
.quick-links h3 { position: relative; margin: -40px 11px 14px; line-height: 1.3; } /* box padding is 40px 20px: flush with the top, 32px in from each side */
.quick-links.sticky-quicklink h3 { margin: 0 0 14px; }                              /* box padding is 0 32px */
.quick-links h3::before,
.quick-links h3::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 32px;
    height: auto;
    border: 0;
    background: #132a52;
}
.quick-links h3::before { left: -32px; right: auto; clip-path: polygon(0 0, 100% 0, 100% 100%); }
.quick-links h3::after { right: -32px; left: auto; clip-path: polygon(0 0, 100% 0, 0 100%); }
.edit-this { margin: 8px 0 -4px; font-size: 13px; text-align: right; }
.walloffame-box .carousel { padding: 10px 0 14px; }
.walloffame-box .topperimage { max-height: 170px; width: auto; }
.quick-links + .quick-links { margin-top: 20px; }
.quick-links ul li a.selected { font-weight: 600; }

/* Home page */
.notice-body-text img, .nav-tabs .nav-link img { vertical-align: middle; }
.college-stats { padding: 30px 0; color: #fff; background: #132a52; }
.college-stat { margin: 10px 0; }
.college-stat-number { display: block; font-size: 38px; font-weight: 700; line-height: 1.1; color: #eaa346; }
.college-stat-label { display: block; margin-top: 4px; font-size: 15px; letter-spacing: .5px; text-transform: uppercase; }
.media-29101 { padding: 10px; }
/* Role model photos: owl.carousel.css forces width:30% on every image, which squashes them
   against the theme's fixed 200px height. Keep each photo's own proportions instead. */
.owl-carousel .owl-item img.topperimage { width: auto; max-width: 100%; height: 200px; object-fit: cover; }
.media-29101 h6 { margin: 10px 0 6px; font-weight: 700; color: #132a52; }
.carousel-caption p { margin-bottom: 0; }

/* Admission strip and buttons */
.admission-btn { padding: 10px 26px; border: 0; border-radius: 3px; font-weight: 600; color: #fff; background: #132a52; }
.admission-btn:hover, .admission-btn:focus { color: #132a52; background: #eaa346; }
.subscribe-area .admission-btn { color: #132a52; background: #eaa346; }
.subscribe-area .admission-btn:hover, .subscribe-area .admission-btn:focus { color: #132a52; background: #fff; }

/* People: faculty, staff, role models, toppers */
.deptfacultylist { margin-left: 0; margin-right: 0; }
.facultybox { padding: 12px; }
.person-photo { width: 100px; max-width: 100%; }
.facultybox .btnn { display: inline-block; margin-top: 8px; }
.ispl-faculties-profile-details td { padding: 3px 6px; vertical-align: top; }
.ispl-faculties-profile-details label { margin: 0; font-weight: 600; }
.faculty-group { margin-bottom: 30px; }
.faculty-group-title { margin: 22px 0 6px; padding-bottom: 6px; border-bottom: 2px solid #eaa346; font-size: 20px; font-weight: 700; color: #132a52; }
.faculty-group-title a { color: inherit; }
.card-grid > [class*="col-"] { margin-bottom: 24px; }
.person-card { height: 100%; padding: 14px; background: #fff; box-shadow: 0 1px 19px -3px #d2d2d2; }
.person-card h6 { margin: 12px 0 6px; font-weight: 700; color: #132a52; }
.person-card p { margin-bottom: 6px; font-size: 14px; }
.person-card-text { font-size: 14px; text-align: left; }
.single-photo img { max-width: 220px; }
.faculty-profile { margin-bottom: 18px; }
.faculty-about { margin-bottom: 18px; }

/* Department page */
.dept-panel { margin-bottom: 20px; }
.dept-panel .department-hod-all { margin-bottom: 14px; }
.deptoverview .innerList { padding-left: 20px; }
.deptoverview .innerList li { margin-bottom: 6px; }
.lessonplanbox { margin-bottom: 16px; }
.lessonplanbox .highlight { margin-bottom: 8px; }

/* Faculty accordion */
.faculty-accordion .card { border-radius: 0; }
.faculty-accordion .card-header { padding: 0; background: #132a52; }
.faculty-accordion .card-header .btn-link { padding: 10px 16px; font-weight: 600; color: #fff; text-decoration: none; }
.faculty-accordion .card-header .btn-link.collapsed { color: #132a52; background: #f5f5f5; }
.faculty-accordion .card-header .btn-link:hover, .faculty-accordion .card-header .btn-link:focus { text-decoration: underline; }

/* Projects, gallery and other card grids */
.ct_course_list_wrap { height: 100%; background: #fff; box-shadow: 0 1px 19px -3px #d2d2d2; }
.ct_course_list_wrap figure { margin: 0; }
.ct_course_list_wrap figure img { width: 100%; }
.popular_course_des { padding: 14px; }
.popular_course_des h5 a { color: #132a52; }
.album-photo figcaption { margin-top: 4px; font-size: 13px; text-align: center; }
.listing-item { margin-bottom: 16px; }
.listing-item h5 a { color: #132a52; }

/* Search, sitemap and "page not found" */
.search-page-form { display: flex; gap: 8px; max-width: 560px; margin: 0 auto 22px; }
.search-page-form .form-control { flex: 1; }
.search-results { padding: 0; list-style: none; }
.search-results li { margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid #d2d2d2; }
.search-results h5 a { color: #132a52; }
.search-term { color: #579d6f; text-decoration: underline; }
.sitemap { margin-bottom: 16px; }
.sitemap-list { padding-left: 20px; }
.sitemap-list li { margin: 4px 0; }

/* [pdf-embedder] replacement (app/Views/theme-core/partials/pdf_embed.php) */
.pdf-embedder { margin: 15px 0; }
.pdf-embedder-frame { display: block; width: 100%; height: 80vh; min-height: 480px; border: 1px solid #d2d2d2; }
.pdf-embedder-download { margin-top: 8px; }

/* Contact form: the honeypot field must stay invisible to people */
.contact-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-form label { font-weight: 600; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---- Campus sections (St. Xavier) ---- */
.campus-choose-card, .campus-section-card { transition: transform .15s ease, box-shadow .15s ease; height: 100%; }
.campus-choose-card:hover, .campus-section-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(19,42,82,.15); text-decoration: none; }
.campus-choose-card .fa, .campus-section-card .fa, .campus-choose-card .fa, .campus-contact-list .fa { color: #334878; }
.campus-choose-card .fa, .campus-section-card .fa { font-size: 38px; margin-bottom: 6px; }
.campus-choose-card h3, .campus-section-card h3 { margin: 8px 0; font-size: 18px; }
.campus-contact-list { margin-top: 10px; }
.campus-contact-list li { margin-bottom: 8px; }
.campus-contact-list .fa { width: 18px; text-align: center; margin-right: 4px; }
.campus-contact-box { text-align: left; padding: 18px; height: 100%; }
.campus-map, .campus-map iframe { width: 100%; border: 0; }
.campus-chooser .wel-btm-box { padding: 24px 16px; }

/* ---- Home campus chooser spacing ---- */
.campus-chooser { margin: 12px 0 45px; }
.campus-chooser > p { margin-bottom: 42px; }
.campus-chooser .campus-choose-card { margin-bottom: 28px; padding-top: 42px; }
.campus-chooser .row { margin-top: 10px; }

/* Home campus chooser thumbnail */
.campus-choose-card .campus-thumb { max-height: 130px; width: auto; margin: 0 auto 14px; border-radius: 8px; display: block; }

/* Campus box: full-width flush thumbnail, square corners, tighter title spacing */
.campus-chooser .campus-choose-card { padding: 0 0 22px; overflow: hidden; }
.campus-chooser .campus-choose-card .campus-thumb { width: 100%; height: auto; max-height: none; margin: 0 0 18px; border-radius: 0; display: block; }
.campus-chooser .campus-choose-card h3 { margin-top: 0; margin-bottom: 2px; }
.campus-chooser .campus-choose-card .isplreadmore { margin-top: 0; display: inline-block; }

/* Campus box: uniform cover image + compact, balanced spacing */
.campus-chooser .campus-choose-card { padding: 0 0 18px; overflow: hidden; }
.campus-chooser .campus-choose-card .campus-thumb { width: 100%; height: 200px; object-fit: cover; object-position: center; max-height: none; margin: 0 0 12px; border-radius: 0; display: block; }
.campus-chooser .campus-choose-card h3 { margin: 0 0 4px; line-height: 1.2; }
.campus-chooser .campus-choose-card .isplreadmore { margin-top: 0; display: inline-block; }

/* Campus box: no equal-height stretch (fit content), compact image */
.campus-chooser .row { align-items: flex-start; }
.campus-chooser .campus-choose-card { padding: 0 0 16px; }
.campus-chooser .campus-choose-card .campus-thumb { height: 180px; margin: 0 0 10px; }
.campus-chooser .campus-choose-card h3 { margin: 0 0 3px; }

/* Campus box hover: reveal "Enter ..." and dim the image on mouse over */
.campus-chooser .campus-choose-card .campus-thumb { transition: opacity .25s ease; }
.campus-chooser .campus-choose-card:hover .campus-thumb { opacity: .55; }
.campus-chooser .campus-choose-card .isplreadmore {
    display: block;
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    transition: opacity .25s ease, max-height .25s ease, margin-top .25s ease;
}
.campus-chooser .campus-choose-card:hover .isplreadmore {
    opacity: 1;
    max-height: 40px;
    margin-top: 6px;
}

/* Campus box: "Enter ..." overlays the image, shown on hover while the image fades */
.campus-chooser .campus-thumb-wrap { position: relative; display: block; margin-bottom: 10px; overflow: hidden; }
.campus-chooser .campus-thumb-wrap .campus-thumb { margin: 0; }
.campus-chooser .campus-thumb-placeholder { display: flex; align-items: center; justify-content: center; height: 180px; font-size: 48px; color: #eaa346; background: #0e2147; }
.campus-chooser .campus-enter {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 12px;
    margin: 0;
    max-height: none;
    opacity: 0;
    color: #fff;
    font-weight: 600;
    font-size: 18px;
    text-decoration: none;
    transition: opacity .25s ease;
}
.campus-chooser .campus-choose-card:hover .campus-enter { opacity: 1; }
.campus-chooser .campus-choose-card:hover .campus-thumb { opacity: .5; }

/* Campus box: compact white title band (yellow on hover) */
.campus-chooser .campus-choose-card { padding: 0 0 8px; }
.campus-chooser .campus-thumb-wrap { margin-bottom: 8px; }
.campus-chooser .campus-choose-card h3 { margin: 0; padding: 0 8px; color: #fff; font-size: 20px; line-height: 1.25; transition: color .2s ease; }
.campus-chooser .campus-choose-card h3 a { color: #fff; }
.campus-chooser .campus-choose-card:hover h3, .campus-chooser .campus-choose-card:hover h3 a { color: #ffd300; }

/* Campus box: floating icon badge at the top-right corner */
.campus-chooser .campus-choose-card { position: relative; overflow: visible; }
.campus-chooser .campus-icon-badge {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 64px;
    height: 64px;
    background: #fff;
    border: 1px solid #132a52;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #132a52;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
    z-index: 3;
}

/* Campus title: 16px */
.campus-chooser .campus-choose-card h3 { font-size: 16px; }

/* Campus landing: section cards grid */
.campus-sections .campus-section-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
    min-height: 130px;
    padding: 20px 12px;
    background: #132a52;
    border-radius: 10px;
    text-align: center;
    text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.campus-sections .campus-section-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(19,42,82,.28); background: #1b3e7a; }
.campus-sections .campus-section-icon { width: 58px; height: 58px; border-radius: 50%; background: rgba(234,163,70,.15); display: flex; align-items: center; justify-content: center; }
.campus-sections .campus-section-icon .fa { font-size: 26px; color: #eaa346; }
.campus-sections .campus-section-label { color: #fff; font-size: 15px; font-weight: 600; line-height: 1.25; }

/* Campus landing: explicit gaps between section-card rows (theme Bootstrap lacks g-* gutters) */
.campus-sections > [class*="col-"] { margin-bottom: 26px; }

/* Header logo width */
.head-left-logo { width: 50%; }

/* Campus page: photo gallery grid */
.campus-gallery-section { margin-top: 35px; }
.campus-gallery-intro { margin-bottom: 20px; color: #333; }
.campus-gallery-grid > [class*="col-"] { margin-bottom: 26px; }
.campus-gallery-card { position: relative; display: block; overflow: hidden; border-radius: 10px; box-shadow: 0 3px 14px rgba(0,0,0,.14); background: #132a52; }
.campus-gallery-img { width: 100%; height: 210px; object-fit: cover; display: block; transition: transform .4s ease; }
.campus-gallery-card:hover .campus-gallery-img { transform: scale(1.08); }
.campus-gallery-ph { display: flex; align-items: center; justify-content: center; color: #eaa346; font-size: 48px; background: #0e2147; }
.campus-gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 14px; background: linear-gradient(transparent, rgba(14,33,71,.92)); color: #fff; font-weight: 600; font-size: 16px; text-align: center; }

/* Campus contact: no arrow before links, value inline with its icon */
.campus-contact .campus-contact-list li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 14px; padding: 0; list-style: none; }
.campus-contact .campus-contact-list li .fa { flex: 0 0 auto; margin-top: 4px; width: auto; }
.campus-contact .campus-contact-list li a { display: inline; padding: 0 !important; margin: 0; background: none !important; }
.campus-contact .campus-contact-list li a::before,
.campus-contact .campus-contact-list li::before { content: none !important; display: none !important; background: none !important; }

/* Campus sidebar: video gallery carousel */
.campus-video-gallery { padding-bottom: 6px; }
.campus-video-thumb { position: relative; display: block; border-radius: 8px; overflow: hidden; }
.campus-video-thumb img { width: 100%; height: auto; display: block; }
.campus-video-play { position: absolute; top: 44%; left: 50%; transform: translate(-50%,-50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(234,163,70,.92); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 16px; padding-left: 3px; transition: background .2s ease, transform .2s ease; }
.campus-video-thumb:hover .campus-video-play { background: #eaa346; transform: translate(-50%,-50%) scale(1.1); }
.campus-video-title { position: absolute; left: 0; right: 0; bottom: 0; background: linear-gradient(transparent, rgba(14,33,71,.92)); color: #fff; padding: 22px 10px 8px; font-size: 13px; text-align: center; }
.campus-video-gallery .owl-video .owl-dots { text-align: center; margin-top: 8px; }
.campus-video-gallery .owl-video .owl-dot span { width: 8px; height: 8px; margin: 3px; background: #ccc; display: inline-block; border-radius: 50%; }
.campus-video-gallery .owl-video .owl-dot.active span { background: #eaa346; }

/* Video thumbnail: standard 16:9 HD ratio */
.campus-video-thumb { height: 0; padding-bottom: 56.25%; }
.campus-video-thumb img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }

/* Video thumbnail (16:9 wrapper) + video modal */
.owl-video .campus-video-item { width: 100%; }
.campus-video-thumb { position: relative; display: block; height: auto; padding-bottom: 0; border-radius: 8px; overflow: hidden; }
.campus-video-ratio { display: block; position: relative; width: 100%; height: 0; padding-bottom: 56.25%; background: #0e2147; }
.campus-video-ratio img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.video-modal { position: fixed; top: 0; left: 0; right: 0; bottom: 0; z-index: 3000; display: none; }
.video-modal.open { display: block; }
.video-modal-backdrop { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,.82); }
.video-modal-dialog { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 92vw; max-width: 900px; }
.video-modal-ratio { position: relative; height: 0; padding-bottom: 56.25%; background: #000; border-radius: 6px; overflow: hidden; }
.video-modal-ratio iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0; }
.video-modal-close { position: absolute; top: -44px; right: 0; background: none; border: 0; color: #fff; font-size: 34px; line-height: 1; cursor: pointer; }

/* Owl carousel images */
.owl-carousel .owl-item img {
    display: block;
    width: 100%;
    margin: 0 auto;
    border-radius: 20px;
}

/* Campus page: even spacing between description, boxes and photo gallery (match the 26px box gaps) */
.campus-description { margin-bottom: 26px; }
.campus-gallery-section { margin-top: 0; }

/* Standards page: clean standard cards */
.standard-list > [class*="col-"] { margin-bottom: 24px; }
.standard-card {
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
    gap: 12px; height: 100%; min-height: 160px; padding: 24px 14px;
    background: #132a52; border-radius: 10px; text-align: center; text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.standard-card:hover { transform: translateY(-4px); box-shadow: 0 8px 22px rgba(19,42,82,.28); background: #1b3e7a; text-decoration: none; }
.standard-card-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(234,163,70,.15); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.standard-card-icon .fa { font-size: 24px; color: #eaa346; }
.standard-card-title { color: #fff; font-size: 17px; font-weight: 700; line-height: 1.25; }
.standard-card-link { color: #eaa346; font-size: 12.5px; line-height: 1.3; }
.standard-card:hover .standard-card-link { text-decoration: underline; }

/* Single standard page: clean section headings */
.standard-section { margin-bottom: 30px; }
.standard-section-title { font-size: 18px; color: #132a52; font-weight: 700; border-left: 4px solid #eaa346; padding: 4px 0 4px 12px; margin: 0 0 14px; }
.standard-section-title .fa { color: #eaa346; margin-right: 6px; }

/* Shared campus filter boxes (question bank, galleries) */
.qb-campus-filter{display:flex;flex-wrap:wrap;gap:14px;margin-bottom:20px}
.qb-campus-btn{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:2px solid #e2e6ee;background:#fff;border-radius:10px;padding:10px 16px;min-width:140px;cursor:pointer;transition:border-color .15s,background .15s,box-shadow .15s}
.qb-campus-btn:hover{border-color:#eaa346}
.qb-campus-btn.active{border-color:#132a52;background:#eef3fb;box-shadow:0 3px 10px rgba(19,42,82,.12)}
.qb-campus-btn-thumb{width:120px;height:68px;object-fit:cover;border-radius:6px}
.qb-campus-btn-icon{width:120px;height:68px;display:flex;align-items:center;justify-content:center;background:#132a52;border-radius:6px;color:#eaa346;font-size:28px}
.qb-campus-btn-label{font-weight:700;color:#132a52;font-size:14px}
.campus-section-block{margin-bottom:24px}
.campus-section-block .qb-campus-title{font-size:22px;color:#132a52;font-weight:700;margin:26px 0 16px;padding-bottom:8px;border-bottom:2px solid #132a52}
.campus-section-block .qb-campus-title a{color:#132a52}
.campus-section-block .qb-campus-title .fa{color:#eaa346;margin-right:8px}
.campus-section-block:first-of-type .qb-campus-title{margin-top:0}

/* Contact page: campus cards (thumbnail + details + visit button) */
.campus-contacts .campus-card { background:#fff; border:1px solid #e2e6ee; border-radius:12px; overflow:hidden; box-shadow:0 3px 14px rgba(19,42,82,.08); height:100%; display:flex; flex-direction:column; transition:box-shadow .15s ease, transform .15s ease; }
.campus-contacts .campus-card:hover { box-shadow:0 10px 26px rgba(19,42,82,.16); transform:translateY(-3px); }
.campus-card-thumb { display:block; position:relative; height:0; padding-bottom:50%; background:#0e2147; overflow:hidden; }
.campus-card-thumb img { position:absolute; top:0; left:0; width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.campus-card:hover .campus-card-thumb img { transform:scale(1.05); }
.campus-card-ph { position:absolute; top:0; left:0; right:0; bottom:0; display:flex; align-items:center; justify-content:center; color:#eaa346; font-size:46px; }
.campus-card-body { padding:18px 20px 20px; display:flex; flex-direction:column; flex:1 1 auto; }
.campus-card-title { font-size:20px; color:#132a52; font-weight:700; margin:0 0 14px; }
.campus-card-contact { margin:0 0 18px; }
.campus-card-contact li { display:flex; align-items:flex-start; gap:10px; margin-bottom:10px; color:#333; line-height:1.5; }
.campus-card-contact li .fa { color:#eaa346; width:18px; text-align:center; margin-top:3px; flex:0 0 auto; }
.campus-card-contact a { color:#132a52; word-break:break-word; }
.campus-card-btn { margin-top:auto; align-self:flex-start; display:inline-block; background:#132a52; color:#fff; padding:9px 20px; border-radius:6px; font-weight:600; transition:background .15s ease; }
.campus-card-btn:hover { background:#eaa346; color:#fff; text-decoration:none; }
.campus-card-btn .fa { margin-left:6px; }
