/*
Theme Name:     Kallyas Child Theme
Theme URI:      http://kallyas.net/
Description:    Child theme for the Kallyas theme
Author:         Hogash
Author URI:     http://themeforest.net/user/hogash
Template:       kallyas
Version:        1.0
Tags: dark, light, left-sidebar, right-sidebar, fluid-layout, custom-background, custom-colors, custom-header, custom-menu, editor-style, full-width-template, theme-options, translation-ready
Text Domain:  zn_framework
*/

/* Engineering Technology department navigation */
.fot-department-page #header.site-header,
.fot-department-page #header.header--sticky,
.fot-department-page #header.header--follow,
.fot-department-page #header.header--fixed,
.fot-department-page #header.header--is-sticked,
.fot-department-page #header.header--sticked,
.fot-department-page #header.fot-main-header-normal {
	position: relative !important;
	left: auto !important;
	right: auto !important;
	top: auto !important;
	transform: none !important;
	width: 100% !important;
}

.fot-department-page .site-header-placeholder,
.fot-department-page .header--sticky-placeholder {
	display: none !important;
	height: 0 !important;
}

.fot-department-nav {
	
	border-bottom: 3px solid #e2b727;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.16);
	color: #fff;
	position: sticky;
	top: 0;
	width: 100%;
	z-index: 1000;
}

.fot-ict-page .fot-department-nav {
	background: #080080;
}
.fot-et-page .fot-department-nav {
	background: #800000;
}
.fot-mds-page .fot-department-nav {
	background: #00B3B3;
}
.fot-bst-page .fot-department-nav {
	background: #808000;
}
.fot-department-nav__inner {
	align-items: center;
	display: flex;
	gap: 30px;
	justify-content: space-between;
	min-height: 64px;
}

.fot-department-nav__title {
	color: #fff;
	flex-shrink: 0;
	font-size: 18px;
	font-weight: 700;
	letter-spacing: .3px;
	line-height: 1.3;
	text-decoration: none;
	text-transform: uppercase;
}

.fot-department-nav__title:hover,
.fot-department-nav__title:focus {
	color: #ffd55a;
	text-decoration: none;
}

.fot-department-menu {
	align-items: center;
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	list-style: none;
	margin: 0;
	padding: 0;
}

.fot-department-menu > li {
	margin: 0;
	padding: 0;
	position: relative;
}

.fot-department-menu > li > a {
	color: #fff;
	display: block;
	font-size: 15px;
	font-weight: 600;
	padding: 22px 15px;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease;
}

.fot-department-menu > li > a:hover,
.fot-department-menu > li > a:focus,
.fot-department-menu > .current-menu-item > a,
.fot-department-menu > .current-menu-ancestor > a,
.fot-department-menu > .current_page_item > a {
	background: #700000;
	color: #ffd55a;
	text-decoration: none;
}

.fot-department-menu .sub-menu {
	background: #fff;
	box-shadow: 0 5px 18px rgba(0, 0, 0, .18);
	display: none;
	left: 0;
	list-style: none;
	margin: 0;
	min-width: 220px;
	padding: 8px 0;
	position: absolute;
	top: 100%;
	z-index: 100;
}

.fot-department-menu li:hover > .sub-menu,
.fot-department-menu li:focus-within > .sub-menu {
	display: block;
}

.fot-department-menu .sub-menu a {
	color: #333;
	display: block;
	font-size: 14px;
	padding: 10px 18px;
	text-decoration: none;
}

.fot-department-menu .sub-menu a:hover,
.fot-department-menu .sub-menu a:focus,
.fot-department-menu .sub-menu .current-menu-item > a {
	background: #f3f3f3;
	color: #8f0000;
}

.fot-department-nav__setup {
	border: 1px dashed rgba(255, 255, 255, .7);
	color: #fff;
	display: inline-block;
	padding: 8px 12px;
}

.fot-department-page {
	scroll-padding-top: 70px;
}

@media (max-width: 991px) {
	.fot-department-nav__inner {
		align-items: flex-start;
		flex-direction: column;
		gap: 0;
		padding-bottom: 12px;
		padding-top: 14px;
	}

	.fot-department-nav__menu {
		max-width: 100%;
		overflow-x: auto;
		width: 100%;
	}

	.fot-department-menu {
		flex-wrap: nowrap;
		justify-content: flex-start;
		min-width: max-content;
	}

	.fot-department-menu > li > a {
		padding: 13px 14px;
		white-space: nowrap;
	}
}

@media (max-width: 480px) {
	.fot-department-nav__title { font-size: 16px; }
	.fot-department-menu > li > a { font-size: 14px; }
}


/* Lawyer-inspired Staff listing (static grid, no carousel) */
.fot-staff-listing {
	--staff-accent: #008080;
	padding: 12px 0 45px;
}

.fot-staff-listing__grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 30px;
}

.fot-staff-list-card {
	display: grid;
	grid-template-columns: 42% minmax(0, 58%);
	min-height: 285px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 7px 24px rgba(30, 38, 48, .11);
	transition: box-shadow .25s ease, transform .25s ease;
}

.fot-staff-list-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 32px rgba(30, 38, 48, .16);
}

.fot-staff-list-card__photo {
	display: block;
	min-height: 285px;
	overflow: hidden;
	background: #ececec;
}

.fot-staff-list-card__photo img {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 285px;
	object-fit: cover;
	object-position: center top;
	transition: transform .4s ease;
}

.fot-staff-list-card:hover .fot-staff-list-card__photo img {
	transform: scale(1.025);
}

.fot-staff-list-card__placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 285px;
	background: linear-gradient(145deg, #ececec, #d7d7d7);
}

.fot-staff-list-card__content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	min-width: 0;
	padding: 27px 28px 28px;
}

.fot-staff-list-card__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin: 0 0 12px;
}

.fot-staff-list-card__badge {
	display: inline-flex;
	align-items: center;
	min-height: 24px;
	padding: 4px 8px;
	border-radius: 2px;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .045em;
	line-height: 1.2;
	text-transform: uppercase;
}

.fot-staff-list-card__badge--head {
	background: var(--staff-accent);
	color: #fff;
}

.fot-staff-list-card__badge--leave {
	border: 1px solid #d79a25;
	background: #fff7e6;
	color: #8a5a00;
}

.fot-staff-list-card__name {
	margin: 0 0 7px;
	font-size: 23px;
	font-weight: 600;
	line-height: 1.25;
}

.fot-staff-list-card__name a,
.fot-staff-list-card__name a:hover,
.fot-staff-list-card__name a:focus {
	color: #252525;
	text-decoration: none;
}

.fot-staff-list-card__designation {
	margin: 0 0 13px;
	color: var(--staff-accent);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.45;
}

.fot-staff-list-card__details {
	margin: 2px 0 20px;
}

.fot-staff-list-card__email {
	display: block;
	margin-bottom: 14px;
	color: #626262;
	font-size: 12px;
	line-height: 1.45;
	text-decoration: none;
	word-break: break-word;
}

.fot-staff-list-card__email span {
	display: block;
	margin-bottom: 2px;
	color: #333;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
}

.fot-staff-list-card__email:hover,
.fot-staff-list-card__email:focus {
	color: var(--staff-accent);
	text-decoration: none;
}

.fot-staff-list-card__research-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.fot-staff-list-card__research-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 35px;
	height: 35px;
	border: 1px solid #ddd;
	border-radius: 50%;
	background: #fff;
	transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.fot-staff-list-card__research-icon img {
	display: block;
	width: 23px;
	height: 23px;
	object-fit: contain;
}

.fot-staff-list-card__research-icon:hover,
.fot-staff-list-card__research-icon:focus {
	border-color: currentColor;
	box-shadow: 0 4px 10px rgba(0, 0, 0, .13);
	transform: translateY(-2px);
	text-decoration: none;
}

.fot-staff-list-card__research-icon--scholar { color: #4285f4; }
.fot-staff-list-card__research-icon--researchgate { color: #00a99d; }
.fot-staff-list-card__research-icon--orcid { color: #a6ce39; }

.fot-staff-list-card__button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	margin-top: auto;
	padding: 9px 16px;
	border: 1px solid var(--staff-accent);
	background: var(--staff-accent);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	line-height: 1;
	text-decoration: none;
	text-transform: uppercase;
	transition: background-color .2s ease, color .2s ease;
}

.fot-staff-list-card__button:hover,
.fot-staff-list-card__button:focus {
	background: transparent;
	color: var(--staff-accent);
	text-decoration: none;
}

.fot-staff-list-card.is-on-leave .fot-staff-list-card__photo img {
	filter: saturate(.82);
}

.fot-staff-list-empty,
.fot-staff-list-notice {
	padding: 18px 20px;
	border-left: 4px solid var(--staff-accent, #008080);
	background: #f5f5f5;
}

@media (max-width: 1199px) {
	.fot-staff-listing__grid { gap: 22px; }

	.fot-staff-list-card {
		grid-template-columns: 40% minmax(0, 60%);
		min-height: 270px;
	}

	.fot-staff-list-card__photo,
	.fot-staff-list-card__photo img,
	.fot-staff-list-card__placeholder {
		min-height: 270px;
	}

	.fot-staff-list-card__content { padding: 23px 22px; }
	.fot-staff-list-card__name { font-size: 20px; }
}

@media (max-width: 991px) {
	.fot-staff-listing__grid {
		grid-template-columns: 1fr;
		max-width: 760px;
		margin: 0 auto;
	}

	.fot-staff-list-card {
		grid-template-columns: 220px minmax(0, 1fr);
	}
}

@media (max-width: 575px) {
	.fot-staff-listing__grid { gap: 24px; }

	.fot-staff-list-card {
		display: block;
		min-height: 0;
	}

	.fot-staff-list-card__photo,
	.fot-staff-list-card__photo img,
	.fot-staff-list-card__placeholder {
		height: 360px;
		min-height: 360px;
	}

	.fot-staff-list-card__content {
		align-items: stretch;
		padding: 24px;
	}

	.fot-staff-list-card__button { align-self: flex-start; }
}

.fot-staff-list-card__button
{
    color: #ffffff !important;
}
.fot-staff-list-card__button:hover,
.fot-staff-list-card__button:target
{
	color:#008080 !important;
}

/* =====================================================
   ET DEGREE PROGRAMME – COURSE STRUCTURE
   Add "course-structure-tabs" as the Kallyas custom class
   ===================================================== */



/* Engineering Technology */
.fot-et-page .course-structure-tabs {
    --et-maroon: #800000;
    --et-maroon-dark: #5f0000;
    --et-maroon-light: #f8eeee;
    --et-border: #e5dada;
    --et-text: #333333;
}

/* Biosystems Technology */
.fot-bst-page .course-structure-tabs {
    --et-maroon: #808000;
    --et-maroon-dark: #5f6000;
    --et-maroon-light: #f7f7e9;
    --et-border: #ddddc5;
    --et-text: #333333;
}

/* Information and Communication Technology */
.fot-ict-page .course-structure-tabs {
    --et-maroon: #080080;
    --et-maroon-dark: #05055c;
    --et-maroon-light: #eeeeF8;
    --et-border: #dadae5;
    --et-text: #333333;
}

/* Multidisciplinary Studies */
.fot-mds-page .course-structure-tabs {
    --et-maroon: #00B3B3;
    --et-maroon-dark: #007f7f;
    --et-maroon-light: #eafafa;
    --et-border: #cce7e7;
    --et-text: #333333;
}
/* Main container */
.course-structure-tabs .vr-tabs-tbb {
    display: flex;
    align-items: stretch;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--et-border);
    border-radius: 8px;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.06);
}

/* -----------------------------
   LEVEL NAVIGATION
   ----------------------------- */

.course-structure-tabs .vr-tabs-nav {
    flex: 0 0 190px;
    width: 190px;
    margin: 0;
    padding: 0;
    background: #f7f7f7;
    border-right: 1px solid var(--et-border);
}

.course-structure-tabs .vr-tabs-nav-item {
    display: block;
    width: 100%;
    margin: 0;
    border-bottom: 1px solid #e8e8e8;
}

.course-structure-tabs .vr-tabs-nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 18px 20px;
    color: #333333 !important;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none !important;
    background: transparent;
    border: 0;
    transition:
        color 0.25s ease,
        background-color 0.25s ease;
}

.course-structure-tabs .vr-tabs-nav-link:hover {
    color: var(--et-maroon) !important;
    background: var(--et-maroon-light);
}

/* Active level */
.course-structure-tabs .vr-tabs-nav-item.active .vr-tabs-nav-link,
.course-structure-tabs .vr-tabs-nav-link.active {
    color: #ffffff !important;
    background: var(--et-maroon);
    box-shadow: inset 5px 0 0 var(--et-maroon-dark);
}

/* Hide the default tab icons */
.course-structure-tabs .vr-tabs-nav-icon {
    display: none;
}

/* -----------------------------
   TAB CONTENT
   ----------------------------- */

.course-structure-tabs .vr-tabs-content {
    flex: 1;
    min-width: 0;
    padding: 28px 30px;
    background: #ffffff;
}

.course-structure-tabs .vr-tabs-tabpane {
    margin: 0;
}

/* Level and semester headings */
.course-structure-tabs .zn_text_box-title {
    margin: 0 0 20px;
    padding-bottom: 10px;
    color: #252525 !important;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
    border-bottom: 3px solid var(--et-maroon);
}

/* -----------------------------
   CURRICULUM TABLE
   ----------------------------- */

.course-structure-tabs table {
    width: 100%;
    margin: 0 0 28px;
    color: var(--et-text);
    font-size: 15px;
    background: #ffffff;
    border: 1px solid var(--et-border);
    border-collapse: collapse;
    table-layout: fixed;
}

.course-structure-tabs table th,
.course-structure-tabs table td {
    padding: 13px 16px;
    vertical-align: middle;
    line-height: 1.5;
    border: 1px solid var(--et-border);
}

/* Proper table header or first row used as header */
.course-structure-tabs table thead th,
.course-structure-tabs table tr:first-child > td {
    color: #ffffff;
    font-weight: 600;
    text-align: left;
    background: var(--et-maroon);
    border-color: var(--et-maroon-dark);
}

/* Module code */
.course-structure-tabs table th:first-child,
.course-structure-tabs table td:first-child {
    width: 22%;
    font-weight: 600;
}

/* Course module */
.course-structure-tabs table th:nth-child(2),
.course-structure-tabs table td:nth-child(2) {
    width: 63%;
}

/* Credits */
.course-structure-tabs table th:last-child,
.course-structure-tabs table td:last-child {
    width: 15%;
    text-align: center;
}

/* Alternating rows */
.course-structure-tabs table tbody tr:nth-child(even) {
    background: #fbf7f7;
}

/* Row hover */
.course-structure-tabs table tbody tr:hover {
    background: var(--et-maroon-light);
}

/* Preserve header colour if the first row is inside tbody */
.course-structure-tabs table tbody tr:first-child:hover > td {
    background: var(--et-maroon);
}

/* Long content handling */
.course-structure-tabs table th,
.course-structure-tabs table td {
    overflow-wrap: break-word;
    word-break: normal;
}

/* -----------------------------
   TABLET AND MOBILE
   ----------------------------- */

@media (max-width: 767px) {

    /* Stack tabs above the content */
    .course-structure-tabs .vr-tabs-tbb {
        display: block;
        overflow: hidden;
    }

    /* Horizontally scrollable level navigation */
    .course-structure-tabs .vr-tabs-nav {
        display: flex;
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: 0;
        border-bottom: 1px solid var(--et-border);
        -webkit-overflow-scrolling: touch;
    }

    .course-structure-tabs .vr-tabs-nav-item {
        flex: 0 0 auto;
        width: auto;
        border-right: 1px solid #e8e8e8;
        border-bottom: 0;
    }

    .course-structure-tabs .vr-tabs-nav-link {
        padding: 14px 18px;
        white-space: nowrap;
    }

    .course-structure-tabs .vr-tabs-content {
        width: 100%;
        padding: 20px 12px;
        overflow: visible;
    }

    .course-structure-tabs .zn_text_box-title {
        font-size: 20px;
    }

    /* Fit table within the mobile screen */
    .course-structure-tabs table {
        width: 100%;
        min-width: 0;
        margin-bottom: 22px;
        table-layout: fixed;
        font-size: 13px;
    }

    .course-structure-tabs table th,
    .course-structure-tabs table td {
        padding: 10px 7px;
        line-height: 1.4;
        overflow-wrap: anywhere;
    }

    .course-structure-tabs table th:first-child,
    .course-structure-tabs table td:first-child {
        width: 27%;
    }

    .course-structure-tabs table th:nth-child(2),
    .course-structure-tabs table td:nth-child(2) {
        width: 55%;
    }

    .course-structure-tabs table th:last-child,
    .course-structure-tabs table td:last-child {
        width: 18%;
        text-align: center;
    }
}

/* -----------------------------
   SMALL MOBILE SCREENS
   ----------------------------- */

@media (max-width: 420px) {

    .course-structure-tabs .vr-tabs-nav-link {
        padding: 12px 15px;
        font-size: 14px;
    }

    .course-structure-tabs .vr-tabs-content {
        padding: 16px 8px;
    }

    .course-structure-tabs .zn_text_box-title {
        font-size: 18px;
    }

    .course-structure-tabs table {
        font-size: 12px;
    }

    .course-structure-tabs table th,
    .course-structure-tabs table td {
        padding: 8px 5px;
    }

    .course-structure-tabs table th:first-child,
    .course-structure-tabs table td:first-child {
        width: 28%;
    }

    .course-structure-tabs table th:nth-child(2),
    .course-structure-tabs table td:nth-child(2) {
        width: 54%;
    }

    .course-structure-tabs table th:last-child,
    .course-structure-tabs table td:last-child {
        width: 18%;
    }
}