/*
 * Template Five ("Campus"): white header with the menu on the right, three-column home page
 * (messages | slider | messages, then info | notice board | online services), corner tabs and a
 * dark footer. Colours of the header, menu, drop-down, sidebar, footer and section titles come from
 * Website → Theme Setup (site/theme/cp/layout/styles.blade.php); this file sets the layout.
 */
body.t5 { font-family: "SolaimanLipi", "Hind Siliguri", "Segoe UI", Arial, sans-serif; color: #263238; background: #f4f7f6; }
body.t5 a { text-decoration: none; }
.t5 .container-xl { max-width: 1280px; }

/* ---------- top bar ---------- */
.t5-top { font-size: 13px; padding: 5px 0; }
.t5-top-info, .t5-top-actions { display: flex; gap: 18px; align-items: center; }
.t5-top i { margin-right: 4px; opacity: .85; }
.t5-top a:hover { opacity: .85; }

/* ---------- header ---------- */
.t5-header { position: sticky; top: 0; z-index: 1030; border-bottom: 4px solid #004d40; box-shadow: 0 2px 10px rgba(0, 77, 64, .12); }
.t5-header .t5-header-row { display: flex; align-items: center; gap: 0 16px; flex-wrap: wrap !important; }
.t5-brand { display: flex; align-items: center; gap: 14px; flex: 1 1 auto; min-width: 0; padding: 10px 0; }
.t5-logo { width: 62px; height: 62px; object-fit: contain; flex: 0 0 auto; }
.t5-brand-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.t5-name { font-size: 26px; font-weight: 700; line-height: 1.2; color: #b71c1c; word-break: normal; overflow-wrap: normal; }
.t5 .t5-sub { font-size: 12px; color: #546e7a; margin-top: 2px; }
.t5-toggler { margin-left: auto; border: 1px solid #cfd8dc; border-radius: 8px; padding: 6px 12px; font-size: 18px; color: #004d40; }
.t5-toggler:focus { box-shadow: none; }
/* the menu has its own row under the name, so a long menu never squeezes the name */
#menu.t5-menu { flex: 0 0 100%; border-top: 1px solid #e6ecea; }
.t5-nav { gap: 0 2px; flex-wrap: wrap; }
.t5-nav > .nav-item { position: relative; }
.t5-nav > .nav-item > .nav-link { font-weight: 600; font-size: 15px; padding: 13px 12px !important; position: relative; white-space: nowrap; }
.t5-nav > .nav-item > .nav-link::after { content: ""; position: absolute; left: 12px; right: 12px; top: 0; height: 3px; background: currentColor; transform: scaleX(0); transition: transform .2s; }
.t5-nav > .nav-item:hover > .nav-link::after, .t5-nav > .nav-item > .nav-link.nav-link-active::after { transform: scaleX(1); }
.t5-caret { font-size: 12px; margin-left: 3px; }
.t5 .submenu { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; z-index: 1040; border-top: 3px solid #004d40; border-radius: 0 0 8px 8px; box-shadow: 0 12px 28px rgba(0, 0, 0, .14); overflow: hidden; }
.t5 .submenu ul { list-style: none; margin: 0; padding: 6px 0; }
.t5 .submenu li a { display: block; padding: 9px 16px; font-size: 14px; border-bottom: 1px solid rgba(0, 0, 0, .05); }
.t5 .submenu li:last-child a { border-bottom: 0; }
.t5 .submenu li a:hover { background: rgba(0, 77, 64, .06); padding-left: 20px; transition: padding .15s; }
@media (min-width: 1200px) {
    .t5-nav > .nav-item.t5-has-sub:hover > .submenu { display: block; }
}
@media (max-width: 1199.98px) {
    .t5-logo { width: 48px; height: 48px; }
    .t5-name { font-size: 19px; }
    .t5-nav { padding: 6px 0 12px; }
    .t5-nav > .nav-item > .nav-link { padding: 10px 6px !important; border-bottom: 1px solid #eceff1; }
    .t5-nav > .nav-item > .nav-link::after { display: none; }
    .t5 .submenu { position: static; display: block; box-shadow: none; border-top: 0; border-radius: 0; padding-left: 14px; }
}
@media (max-width: 575.98px) {
    .t5-name { font-size: 16px; }
    .t5-sub { display: none; }
}

/* ---------- page ---------- */
.t5-main { padding: 18px 0 30px; }
.t5-card { background: #fff; border-radius: 10px; box-shadow: 0 2px 10px rgba(38, 50, 56, .07); overflow: hidden; border: 1px solid #e3ebe9; }
.t5 .t5-card-head { margin: 0; display: flex; align-items: center; gap: 8px; font-weight: 700; line-height: 1.3; }
.t5 .t5-card-head i { opacity: .9; }

/* messages */
.t5-speech { height: 100%; display: flex; flex-direction: column; }
.t5-speech-body { padding: 16px; text-align: center; background: linear-gradient(180deg, #e3f2fd 0%, #ffffff 70%); flex: 1; display: flex; flex-direction: column; align-items: center; }
.t5-speech-alt .t5-speech-body { background: linear-gradient(180deg, #e8f5e9 0%, #ffffff 70%); }
.t5-speech-photo { width: 110px; height: 128px; object-fit: cover; border-radius: 8px; border: 4px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.t5-speech-name { font-weight: 700; margin-top: 10px; font-size: 14px; }
.t5-speech-text { font-size: 13px; color: #546e7a; margin: 8px 0 10px; line-height: 1.55; }
.t5-read { margin-top: auto; font-size: 13px; font-weight: 600; color: #00796b; }
.t5-read:hover { color: #b71c1c; }

/* slider */
.t5-slider { height: 100%; }
.t5-slider .carousel { margin: 0 !important; padding: 0 !important; border-radius: 10px; overflow: hidden; border: 0; box-shadow: 0 2px 10px rgba(38, 50, 56, .1); height: 100%; }
.t5-slider .carousel-inner, .t5-slider .carousel-item { height: 100%; }
.t5-slider .carousel-item img { height: 100%; min-height: 260px; max-height: 420px; object-fit: cover; }

/* ticker */
.t5-ticker { display: flex; align-items: stretch; margin-top: 16px; border-radius: 10px; overflow: hidden; background: linear-gradient(90deg, #dcedc8, #e0f2f1); border: 1px solid #c5e1a5; }
.t5-ticker-label { flex: 0 0 auto; background: #b71c1c; color: #fff; padding: 9px 14px; font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.t5-ticker-track { flex: 1; overflow: hidden; position: relative; }
.t5-ticker-move { display: inline-flex; gap: 48px; white-space: nowrap; padding: 9px 0; padding-left: 100%; animation: t5ticker 40s linear infinite; }
.t5-ticker:hover .t5-ticker-move { animation-play-state: paused; }
.t5-ticker-move a { color: #b71c1c; font-weight: 600; font-size: 15px; }
.t5-ticker-move a::before { content: "◆"; color: #00796b; margin-right: 10px; font-size: 10px; vertical-align: middle; }
@keyframes t5ticker { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .t5-ticker-move { animation: none; padding-left: 12px; } }

/* left info list */
.t5-info-list { list-style: none; margin: 0; padding: 6px 0; }
.t5-info-list li a { display: flex; align-items: center; gap: 10px; padding: 9px 16px; color: #37474f; font-size: 14px; border-bottom: 1px dashed #e0e7e5; transition: background .15s, color .15s; }
.t5-info-list li:last-child a { border-bottom: 0; }
.t5-info-list li a i { width: 18px; text-align: center; color: #00796b; }
.t5-info-list li a:hover { background: #e0f2f1; color: #004d40; }
.t5-visitors { width: 100%; font-size: 14px; }
.t5-visitors td { padding: 8px 16px; border-bottom: 1px solid #eef2f1; }
.t5-visitors td:last-child { text-align: right; font-weight: 700; color: #004d40; }
.t5-visitors td i { width: 18px; color: #90a4ae; }
.t5-visitors .t5-total td { background: #f1f8e9; border-bottom: 0; }

/* notice board */
.t5-notice-head { margin: 0; background: #004d40; color: #fff; text-align: center; font-size: 20px; font-weight: 800; letter-spacing: .5px; padding: 12px; }
.t5-notice-scroll { background: #f1f8e9; border-bottom: 1px solid #dcedc8; padding: 8px 14px; overflow: hidden; white-space: nowrap; }
.t5-notice-scroll a { display: inline-block; color: #b71c1c; font-weight: 700; padding-left: 100%; animation: t5ticker 18s linear infinite; }
.t5-notice-scroll:hover a { animation-play-state: paused; }
.t5-notice-table { width: 100%; border-collapse: collapse; }
.t5-notice-table td { padding: 10px 12px; border-bottom: 1px solid #eef2f1; vertical-align: middle; font-size: 14.5px; }
.t5-notice-table tr:hover td { background: #f7fbfa; }
.t5-notice-table a { color: #1a237e; font-weight: 500; }
.t5-notice-table a:hover { color: #b71c1c; }
.t5-date { width: 66px; text-align: center; }
.t5-day { display: block; font-size: 20px; font-weight: 800; color: #b71c1c; line-height: 1; }
.t5-mon { display: block; font-size: 11px; color: #78909c; margin-top: 2px; white-space: nowrap; }
.t5-new { display: inline-block; margin-left: 6px; background: #b71c1c; color: #fff; font-size: 10px; font-weight: 700; border-radius: 10px; padding: 1px 7px; animation: t5blink 1.4s ease-in-out infinite; }
@keyframes t5blink { 50% { opacity: .45; } }
.t5-clip { width: 30px; text-align: center; color: #78909c; }
.t5-see-all { display: block; text-align: center; padding: 10px; background: #c8e6c9; color: #1b5e20; font-weight: 700; font-size: 14px; }
.t5-see-all:hover { background: #a5d6a7; color: #1b5e20; }

/* online services */
.t5-actions { display: grid; gap: 8px; padding: 14px; }
.t5-btn { display: flex; align-items: center; justify-content: center; gap: 8px; color: #fff !important; font-weight: 600; font-size: 14px; padding: 10px 12px; border-radius: 8px; box-shadow: 0 2px 0 rgba(0, 0, 0, .12); transition: transform .15s, filter .15s; }
.t5-btn:hover { transform: translateY(-1px); filter: brightness(1.07); }
.t5-btn-red { background: #e53935; }
.t5-btn-blue { background: #1e88e5; }
.t5-btn-amber { background: #f9a825; }
.t5-btn-green { background: #43a047; }
.t5-side { padding: 0 0 8px; }
.t5-side .tray_title { margin: 0 0 8px; }
.t5-side > div > *:not(.tray_title) { margin-left: 10px; margin-right: 10px; }

/* corners */
.t5-corners { background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(38, 50, 56, .07); border: 1px solid #e3ebe9; }
.t5-corner-tabs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 2px; background: #e3ebe9; margin: 0; padding: 0; list-style: none; }
.t5-corner { width: 100%; border: 0; background: #9ccc65; color: #1b3a16; padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; transition: background .15s; }
.t5-corner img { width: 42px; height: 42px; object-fit: contain; }
.t5-corner i { font-size: 30px; color: #1b5e20; }
.t5-corner:hover { background: #aed581; }
.t5-corner.active { background: #f1f8e9; color: #b71c1c; box-shadow: inset 0 -3px 0 #b71c1c; }
.t5-corner-body { background: #f1f8e9; }
.t5-corner-list { list-style: none; margin: 0; padding: 8px 0; columns: 2; column-gap: 24px; }
.t5-corner-list li { break-inside: avoid; }
.t5-corner-list a { display: block; padding: 8px 18px; color: #263238; font-size: 14.5px; }
.t5-corner-list a i { color: #f9a825; margin-right: 8px; }
.t5-corner-list a:hover { color: #b71c1c; }
@media (max-width: 767.98px) { .t5-corner-list { columns: 1; } }

/* other home sections from the shared components */
.t5-section { margin-top: 24px; }
.t5-section:empty { display: none; }
.t5-map iframe { border-radius: 10px; display: block; }

/* inner pages: give the content a card look */
.t5-main > .container-xl > .row > [class*="col-"] > .card { border-radius: 10px; border: 1px solid #e3ebe9 !important; box-shadow: 0 2px 10px rgba(38, 50, 56, .06); }

/* ---------- footer ---------- */
.t5-footer { margin-top: 10px; padding: 34px 0 0; border-top: 5px solid #8bc34a; }
.t5-footer .tray_title { background: none !important; padding: 0 0 10px !important; margin: 0 0 12px; font-size: 18px !important; font-weight: 700; color: #9ccc65 !important; border-bottom: 1px solid rgba(255, 255, 255, .15); }
.t5-footer ul { list-style: none; margin: 0; padding: 0; }
.t5-footer li { padding: 5px 0; font-size: 14px; }
.t5-contact li { display: flex; gap: 10px; }
.t5-contact li i { width: 16px; margin-top: 4px; color: #9ccc65; }
.t5-flinks li a::before { content: "›"; margin-right: 8px; color: #9ccc65; font-weight: 700; }
.t5-copy { margin-top: 26px; padding: 12px 0; background: rgba(0, 0, 0, .18); font-size: 13px; }

/* ---------- lower home sections (t5lower) ---------- */
.t5-block { margin-top: 28px; background: #fff; border-radius: 12px; border: 1px solid #e3ebe9; box-shadow: 0 2px 10px rgba(38, 50, 56, .06); padding: 22px; }
.t5-block.t5-about, .t5-block.t5-map { padding: 0; overflow: hidden; }
.t5-block.t5-stats { background: transparent; border: 0; box-shadow: none; padding: 0; }
.t5-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.t5 .t5-h2 { font-size: 22px; font-weight: 800; color: #004d40; margin: 0; position: relative; padding-bottom: 8px; }
.t5 .t5-h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 48px; height: 3px; border-radius: 3px; background: #b71c1c; }
.t5-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: #b71c1c; margin-bottom: 6px; }
.t5-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: #00796b; }
.t5-more:hover { color: #b71c1c; }

.t5-about-img { height: 100%; min-height: 280px; background: #e0f2f1 center / cover no-repeat; }
.t5-about-body { padding: 28px 30px; }
.t5-about-body p { color: #455a64; line-height: 1.8; margin: 14px 0 16px; font-size: 15px; }

.t5-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.t5-stat { background: #fff; border-radius: 12px; border: 1px solid #e3ebe9; padding: 16px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; box-shadow: 0 2px 10px rgba(38, 50, 56, .06); }
.t5-stat i { grid-row: span 2; width: 46px; height: 46px; border-radius: 12px; background: #e0f2f1; color: #00796b; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.t5-stat:nth-child(2n) i { background: #fdecea; color: #b71c1c; }
.t5-stat b { font-size: 24px; line-height: 1.1; color: #263238; }
.t5-stat span { font-size: 13px; color: #78909c; }

.t5-pills { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.t5-pills button { border: 1px solid #cfe0dc; background: #fff; color: #37474f; border-radius: 30px; padding: 6px 16px; font-size: 14px; font-weight: 600; }
.t5-pills button.active { background: #004d40; border-color: #004d40; color: #fff; }
.t5-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.t5-person { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 10px; border-radius: 12px; border: 1px solid #edf2f1; background: linear-gradient(180deg, #f6fbfa, #fff); color: #263238; transition: transform .15s, box-shadow .15s; }
a.t5-person:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0, 77, 64, .12); color: #263238; }
.t5-person img, .t5-avatar { width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; box-shadow: 0 3px 12px rgba(0, 0, 0, .12); margin-bottom: 10px; }
.t5-avatar { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #00796b, #004d40); color: #fff; font-size: 28px; font-weight: 700; }
.t5-person b { font-size: 14px; line-height: 1.3; }
.t5-person span { font-size: 12.5px; color: #78909c; margin-top: 2px; }
.t5-person .t5-person-meta { color: #b71c1c; font-weight: 600; }

.t5-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.t5-photo { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #eceff1; }
.t5-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.t5-photo:hover img { transform: scale(1.06); }
@media (max-width: 767.98px) { .t5-gallery { grid-template-columns: repeat(2, 1fr); } .t5-about-body { padding: 20px; } }
.t5-video { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.t5-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.t5-person .t5-avatar { color: #fff; font-size: 28px; margin-top: 0; }
@media (min-width: 992px) { .t5-people { grid-template-columns: repeat(4, 1fr); } }
.t5-nav > .nav-item > .nav-link.t5-lang { font-size: 12px !important; border: 1px solid #cfd8dc; border-radius: 6px; padding: 3px 8px !important; margin: 10px 0 10px 6px; align-self: center; }
.t5-nav .t5-lang::after { display: none; }
