/* ============================================================
   changeui.css — Custom UI overrides & new component styles
   All new CSS goes here. Do NOT add inline <style> in views.
   ============================================================ */

/* ══════════════════════════════════════════════════════════
   INNER PAGE SIDEBAR NAV (#leftSidecssmenu .items)
   ══════════════════════════════════════════════════════════ */

/* Base list reset */
#leftSidecssmenu ul.items {
    list-style: none;
    padding: 0; margin: 0;
}
#leftSidecssmenu ul.items li {
    position: relative;
}
#leftSidecssmenu ul.items li:last-child { border-bottom: none; }

/* First-level links */
#leftSidecssmenu ul.items > li > a {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 15px;
    font-size: 15px; font-weight: 500; color: #374151;
    text-decoration: none;
    transition: background .15s, color .15s, padding-left .15s;
    line-height: 1.4;
	color: #0d2b4e;
}
#leftSidecssmenu ul.items > li > a::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%; flex-shrink: 0;
    background: #d1d5db;
    transition: background .15s;
}
#leftSidecssmenu ul.items > li > a:hover {
    background: #f8fafc; color: #0d2b4e; padding-left: 20px;
}
#leftSidecssmenu ul.items > li > a:hover::before { background: #f26522; }

/* Active first-level */
#leftSidecssmenu ul.items > li.active > a {
    background: #fff5ef; color: #f26522; font-weight: 600;
    border-left: 3px solid #f26522; padding-left: 13px;
}
#leftSidecssmenu ul.items > li.active > a::before { background: #f26522; }

/* has-sub chevron via .holder span (appended by leftsidmenuScript.js) */
#leftSidecssmenu ul.items li.has-sub > a .holder {
    margin-left: auto; flex-shrink: 0;
    display: inline-block;
    width: 0; height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #94a3b8;
    transition: transform .25s ease, border-top-color .15s;
    position: relative; top: 1px;
}
#leftSidecssmenu ul.items li.has-sub.open > a .holder {
    transform: rotate(180deg); border-top-color: #f26522;
}
#leftSidecssmenu > ul > li.open > a { color: #fff; }

/* Nested sub-items */
#leftSidecssmenu ul.items ul.items {
    background: #fff;
    border-top: 0px solid #f1f5f9;
}
#leftSidecssmenu ul.items ul.items li a {
    display: flex; align-items: center; gap: 8px;
    padding: 9px 16px 9px 28px;
    color: #64748b;
    text-decoration: none;
    transition: background .15s, color .15s, padding-left .15s;
	border-radius: 10px;
}
#leftSidecssmenu ul.items ul.items li a::before {
    content: '';
    width: 6px; height: 6px;
    border-radius: 50%; flex-shrink: 0;
    background: #a4aebc; transition: background .15s;
}
#leftSidecssmenu ul.items ul.items li a:hover {
    background: #f1f5f9; color: #0d2b4e; padding-left: 32px;
}
#leftSidecssmenu ul.items ul.items li a:hover::before { background: #f26522; }
#leftSidecssmenu ul.items ul.items li.active > a {
    color: #f26522; font-weight: 600; border-left:none;
    border-bottom: 1px solid #f26522; padding-left: 26px;
}
#leftSidecssmenu > ul > li.open > a:hover { color: #0d2b4e; }

/* ── Desktop: always visible, sticky ── */
@media (min-width: 992px) {
    #sidebar { position: sticky; top: 140px; }
    .sb-mobile-chev { display: none !important; }
    #leftSidecssmenu { max-height: none !important; overflow: visible !important; }
}

/* ── Mobile: collapsible sidebar ── */
@media (max-width: 991px) {
    #sidebar { order: -1; }
    .sb-header { cursor: pointer; user-select: none; }
    .sb-mobile-chev {
        margin-left: auto; flex-shrink: 0;
        font-size: 20px; color: rgba(255,255,255,.7);
        transition: transform .3s ease;
    }
    #sidebar.sb-open .sb-mobile-chev { transform: rotate(180deg); color: #fff; }
    #leftSidecssmenu {
        max-height: 0;
        overflow: hidden;
        transition: max-height .28s ease-in, padding .30s ease-in;
        padding: 0px;
    }
    #sidebar.sb-open #leftSidecssmenu {
        max-height: 1500px;
        padding: 15px;
        transition: max-height .42s ease-out, padding .44s ease-out;
    }
}

/* ── Department page: HoD title row with Programmes button ── */
.hod-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 5px;
}
.dept-prog-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 20px;
    background: #0d2b4e;
    color: #fff;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .3px;
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    transition: background .2s, transform .15s;
}
.dept-prog-btn:hover { background: #f26522; color: #fff; transform: translateY(-2px); }
.dept-prog-btn i { font-size: 15px; }

/* ══════════════════════════════════════════════════════════
   DEPT PROGRAMMES — PAGE LISTING LAYOUT (.pg-*)
   ══════════════════════════════════════════════════════════ */
.pg-group { margin-bottom: 10px; border: 1px solid #e9eef5; border-radius: 12px; overflow: hidden; }
.pg-group-header {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #0d2b4e 0%, #1a4a7a 100%);
    cursor: pointer; user-select: none;
}
.pg-header-left { display: flex; align-items: center; gap: 10px; }
.pg-group-badge {
    display: inline-block; font-size: 11px; font-weight: 700;
    letter-spacing: 1px; text-transform: uppercase;
    padding: 4px 14px; border-radius: 20px;
    background: rgba(255,255,255,.15); color: #fff;
    border: 1px solid rgba(255,255,255,.2);
}
.pg-count { font-size: 12px; color: rgba(255,255,255,.7); font-weight: 500; }
.pg-chev { font-size: 16px; color: rgba(255,255,255,.6); transition: transform .25s ease; }
.pg-group.open .pg-chev { transform: rotate(180deg); color: #fff; }
.pg-list {
    display: flex; flex-direction: column; overflow: hidden;
    max-height: 0; transition: max-height .28s ease-in;
}
.pg-group.open .pg-list { max-height: 800px; transition: max-height .42s ease-out; }
.pg-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 14px; transition: background .15s;
}
.pg-row:hover { background: #f8fafc; }
.pg-row:not(:last-child) { border-bottom: 1px solid #f1f5f9; }
.pg-sn { font-size: 11px; font-weight: 700; color: #cbd5e1; width: 24px; flex-shrink: 0; text-align: center; }
.pg-row-body { flex: 1; min-width: 0; }
.pg-name { font-size: 14px; font-weight: 600; color: #1e3a5f; display: block; line-height: 1.35; }
.pg-alt  { font-size: 12px; color: #94a3b8; }
.pg-meta { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.pg-chip {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 600;
    padding: 3px 9px; border-radius: 20px;
    background: #eff6ff; color: #185fa5;
    border: 1px solid #bfdbfe; white-space: nowrap;
}
.pg-chip i { font-size: 12px; }

/* ══════════════════════════════════════════════════════════
   DEPT PROGRAMMES MODAL
   ══════════════════════════════════════════════════════════ */
.dp-overlay {
    position: fixed; inset: 0; z-index: 9990;
    background: rgba(8,20,40,.62);
    backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px; opacity: 0; visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
}
.dp-overlay.dp-open { opacity: 1; visibility: visible; }
.dp-modal {
    background: #fff; border-radius: 18px;
    width: 100%; max-width: 900px; max-height: 88vh;
    display: flex; flex-direction: column;
    box-shadow: 0 32px 80px rgba(0,0,0,.28), 0 0 0 1px rgba(255,255,255,.06);
    transform: translateY(24px) scale(.97);
    transition: transform .28s cubic-bezier(.34,1.3,.64,1);
    overflow: hidden;
}
.dp-overlay.dp-open .dp-modal { transform: translateY(0) scale(1); }
.dp-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px; padding: 12px 30px;
    border-bottom: 1.5px solid #e9eef5; flex-shrink: 0;
    background: linear-gradient(135deg, #f8fafd 0%, #fff 100%);
}
.dp-modal-eyebrow {
    font-size: 10px; font-weight: 700; letter-spacing: 2.5px;
    text-transform: uppercase; color: #f26522; margin: 0 0 5px;
}
.dp-modal-title { font-size: 17px; font-weight: 700; color: #0d2b4e; margin: 0; line-height: 1.35; }
.dp-close {
    width: 36px; height: 36px; border-radius: 50%;
    border: 1.5px solid #e2e8f0; background: #fff; color: #64748b;
    font-size: 22px; line-height: 1; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; transition: background .18s, color .18s, border-color .18s; padding: 0;
}
.dp-close:hover { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }
.dp-modal-body {
    overflow-y: auto; padding: 15px 15px;
    flex: 1; overscroll-behavior: contain;
}
.dp-prog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px; margin-top: 4px;
}
.dp-empty { text-align: center; color: #94a3b8; font-size: 14px; padding: 48px 0; margin: 0; }

/* Modal listing rows (.dp-pg-*) */
.dp-pg-group { margin-bottom: 5px; border: 1px solid #e9eef5; border-radius: 10px; overflow: hidden; }
.dp-pg-group:last-child { margin-bottom: 0; }
.dp-pg-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 8px 10px;
    background: linear-gradient(135deg, #0d2b4e 0%, #1a4a7a 100%);
    cursor: pointer; user-select: none;
}
.dp-pg-title { display: flex; align-items: center; gap: 10px; }
.dp-pg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); flex-shrink: 0; }
.dp-pg-name { font-size: 12px; font-weight: 700; color: #fff; letter-spacing: 1px; text-transform: uppercase; }
.dp-pg-right { display: flex; align-items: center; gap: 10px; }
.dp-pg-badge {
    font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 20px;
    background: rgba(255,255,255,.15); color: rgba(255,255,255,.9);
    border: 1px solid rgba(255,255,255,.2); white-space: nowrap;
}
.dp-pg-chev { font-size: 16px; color: rgba(255,255,255,.6); transition: transform .25s ease; }
.dp-pg-group.open .dp-pg-chev { transform: rotate(180deg); color: #fff; }
.dp-pg-list {
    display: flex; flex-direction: column; overflow: hidden;
    max-height: 0; transition: max-height .28s ease-in;
    border-top: 1px solid transparent;
}
.dp-pg-group.open .dp-pg-list {
    max-height: 800px; transition: max-height .42s ease-out;
    border-top-color: #e9eef5;
}
.dp-pg-row {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px; background: #fff; transition: background .15s;
}
.dp-pg-row:hover { background: #f8fafd; }
.dp-pg-row:not(:last-child) { border-bottom: 1px solid #f1f5f9; }
.dp-pg-sn { font-size: 12px; font-weight: 700; color: var(--muted); width: 22px; flex-shrink: 0; text-align: center; }
.dp-pg-row-body { flex: 1; min-width: 0; }
.dp-pg-bname { font-size: 14px; font-weight: 600; color: #1e3a5f; display: block; line-height: 1.3; }
a.dp-pg-blink { text-decoration: none; color: #1e3a5f; transition: color .15s; }
a.dp-pg-blink:hover { color: var(--orange); }
.dp-pg-balt  { font-size: 12px; color: var(--muted); }
.dp-pg-chips { display: flex; gap: 6px; flex-shrink: 0; align-items: center; }
.dp-chip {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 20px;
    background: #eff6ff; color: #185fa5;
    border: 1px solid #bfdbfe; white-space: nowrap;
}
.dp-chip i { font-size: 12px; }

@media (max-width: 640px) {
    .dp-overlay { align-items: flex-end; padding: 0; }
    .dp-modal { border-radius: 18px 18px 0 0; max-height: 92vh; transform: translateY(100%); }
    .dp-overlay.dp-open .dp-modal { transform: translateY(0); }
    .dp-modal-head { padding: 20px 18px 16px; }
    .dp-modal-title { font-size: 17px; }
    .dp-modal-body { padding: 18px 18px 28px; }
    .dp-pg-row { flex-wrap: wrap; gap: 8px; }
    .dp-pg-chips { width: 100%; padding-left: 34px; }
    .pg-row { flex-wrap: wrap; gap: 8px; }
    .pg-meta { width: 100%; padding-left: 36px; }
}
@media (min-width: 1367px) {
    .dp-pg-name  { font-size: 14px; }
    .dp-pg-badge { font-size: 13px; }
    .dp-chip     { font-size: 13px; }
    .dp-modal-title { font-size: 18px; }
}

/* ══════════════════════════════════════════════════════════
   HERO SLIDER — MOBILE RESPONSIVE (content below image)
   ══════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    /* Hero: auto height — image on top, content flows below */
    #hero { height: auto; min-height: 0; max-height: none; overflow: visible; }
    /* Only active slide shown; no opacity fade on mobile */
    .h-slide { position: relative; inset: unset; opacity: 1; display: none; transition: none; }
    .h-slide.active { display: block; opacity: 1; }

    /* Image portion: fixed viewport height */
    .h-bg { position: relative; inset: unset; height: 30vh; min-height: 220px; background-position: center 20%; }

    /* Overlay covers image area only (not the content below) */
    .h-overlay {
        position: absolute; top: 0; left: 0; right: 0; bottom: auto;
        z-index: 1;
        background: linear-gradient(to bottom, transparent 40%, rgba(0,22,40,.7) 100%);
		height: 100%; 
    }

    /* Content section below image */
    .h-content {
        position: relative; inset: unset;
        display: block;
        background: #ffffff;
        padding: 0px;
    }
    .h-glass {
        max-width: 100%;
        background: transparent;
        backdrop-filter: none; -webkit-backdrop-filter: none;
        border: none; border-left: 3px solid var(--orange);
        padding: 8px 14px; border-radius: 0; box-shadow: none;
    }
    .slide-h1 { font-size: clamp(16px, 4.8vw, 20px); line-height: 1.25; margin-bottom: 5px; }
    .slide-p  { font-size: 13px; line-height: 1.45; display: block; }
	.dept-slide .slide-h1 {margin-bottom: 15px;}
    /* Dots: near bottom of image */
    .h-dots {
        position: absolute;
        top: calc(50vh - 28px); bottom: auto;
        left: 50%; right: auto;
        transform: translateX(-50%);
        gap: 8px; z-index: 10;
		display:none;
    }
    .h-dot {
        width: 10px; height: 10px; padding: 5px;
        box-sizing: content-box; background-clip: content-box;
        background-color: rgba(255,255,255,.45); border-radius: 50%; transform: none;
    }
    .h-dot.active { width: 28px; border-radius: 6px; background-color: var(--orange); transform: none; }
    .h-ctr { display: none; }
	
	.h-arrows {
	  top: 38%;
	}
	
	.h-arr {
	  width: 30px;
	  height: 30px;
	  font-size: 12px;
	}
	.dept_hero .h-arrows {
		top: 50%;
	}
}
@media (max-width: 479px) {
    .h-bg     { height: 20vh; min-height: 100px; }
    .h-dots   { top: calc(44vh - 28px); display:none; }
    .slide-h1 { font-size: 15px; }
    .h-glass  { padding: 5px 10px; }
	.slide-p {
        font-size: 12px;
        line-height: 1.2;
        display: block;
    }
}

/* ══════════════════════════════════════════════════════════
   TICKER — NOTICE LABEL + DYNAMIC / RESPONSIVE
   ══════════════════════════════════════════════════════════ */
.tk-lbl {
    border: 0px solid rgba(255,255,255,.28);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 2px;
    letter-spacing: 1px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    margin-right: 8px;
    line-height: 1.8;
    align-self: center;
	z-index:1000;
}

.tk-link          { color: #fff; text-decoration: none; }
.tk-link:hover    { color: #ffef00; }

/* 768 px and below — mobile: ticker fills full bar width */
@media (max-width: 767px) {
    .tk-lbl   { font-size: 9px; padding: 2px 6px; margin-right: 5px; }
    .tk-item  { font-size: 12px; gap: 5px; }
    .tk-badge { font-size: 8px; }
}

/* 479 px and below — small phones: hide label, keep items readable */
@media (max-width: 479px) {
    .tk-lbl   { display: none; }
    .tk-item  { font-size: 11.5px; }
    .tk-badge { font-size: 7.5px; padding: 1px 4px; }
}
