/* =====================================================================
   Pavanatma College - Home Banner Slider
   File : public/css/pava-slider.css
   Pair : public/js/pava-slider.js  +  pages/banner.php
   Goal : show the FULL banner image (no cropping) on every screen size.
   Note : self contained. Does not depend on bootstrap / revolution slider.
   ===================================================================== */

.pava-slider {
	--pava-accent: #8c1c1c;
	--pava-max-h: 78vh;
	position: relative;
	width: 100%;
	margin: 0;
	padding: 0;
	background: #10100f;
	overflow: hidden;
	line-height: 0;
	/* keeps the slider above the page background but below sticky menus */
	z-index: 1;
}

/* ------------------------------------------------------------------ */
/* viewport : height is set by JS from the active image aspect ratio   */
/* ------------------------------------------------------------------ */
.pava-slider__viewport {
	position: relative;
	width: 100%;
	height: 420px;               /* fallback before JS measures */
	max-height: var(--pava-max-h);
	transition: height .35s ease;
	touch-action: pan-y;
}

.pava-slider__slide {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	opacity: 0;
	visibility: hidden;
	z-index: 1;
	transition: opacity .7s ease;
	will-change: opacity;
}

.pava-slider__slide.is-active {
	opacity: 1;
	visibility: visible;
	z-index: 2;
}

/* blurred copy of the same image fills any letterbox area */
.pava-slider__fill {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-position: center center;
	background-size: cover;
	background-repeat: no-repeat;
	filter: blur(24px) brightness(.5);
	transform: scale(1.15);
	pointer-events: none;
}

/* the real image : always fully visible, never cropped */
.pava-slider__img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: 100%;
	margin: 0 auto;
	object-fit: contain;
	object-position: center center;
}

/* ------------------------------------------------------------------ */
/* caption (only rendered when the record has text)                    */
/* ------------------------------------------------------------------ */
.pava-slider__caption {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 3;
	padding: 40px 18px 34px;
	text-align: center;
	line-height: 1.35;
	background: linear-gradient(to top, rgba(0, 0, 0, .78), rgba(0, 0, 0, 0));
	pointer-events: none;
}

.pava-slider__title {
	margin: 0 0 6px;
	color: #fff;
	font-size: 26px;
	font-weight: 700;
	text-shadow: 0 2px 6px rgba(0, 0, 0, .6);
}

.pava-slider__text {
	margin: 0;
	color: #f2f2f2;
	font-size: 15px;
	font-weight: 400;
	text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}

/* ------------------------------------------------------------------ */
/* arrows                                                              */
/* ------------------------------------------------------------------ */
.pava-slider__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	z-index: 5;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .45);
	color: #fff;
	font-size: 22px;
	line-height: 44px;
	text-align: center;
	cursor: pointer;
	opacity: .85;
	transition: background .25s ease, opacity .25s ease;
	-webkit-tap-highlight-color: transparent;
}

.pava-slider__nav:hover,
.pava-slider__nav:focus {
	background: var(--pava-accent);
	opacity: 1;
	outline: none;
}

.pava-slider__nav:focus-visible {
	box-shadow: 0 0 0 3px rgba(255, 255, 255, .7);
}

.pava-slider__nav--prev { left: 12px; }
.pava-slider__nav--next { right: 12px; }

/* ------------------------------------------------------------------ */
/* dots                                                                */
/* ------------------------------------------------------------------ */
.pava-slider__dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 12px;
	z-index: 5;
	margin: 0;
	padding: 0;
	list-style: none;
	text-align: center;
	line-height: 1;
}

.pava-slider__dots li {
	display: inline-block;
	margin: 0 4px;
}

.pava-slider__dot {
	display: block;
	width: 11px;
	height: 11px;
	padding: 0;
	border: 2px solid #fff;
	border-radius: 50%;
	background: transparent;
	cursor: pointer;
	opacity: .8;
	transition: background .25s ease, transform .25s ease;
	-webkit-tap-highlight-color: transparent;
}

.pava-slider__dot.is-active,
.pava-slider__dot:hover {
	background: #fff;
	opacity: 1;
	transform: scale(1.15);
}

.pava-slider__dot:focus-visible {
	outline: 2px solid #fff;
	outline-offset: 2px;
}

/* hide controls when there is a single slide */
.pava-slider--single .pava-slider__nav,
.pava-slider--single .pava-slider__dots {
	display: none;
}

/* ------------------------------------------------------------------ */
/* tablet                                                             */
/* ------------------------------------------------------------------ */
@media only screen and (max-width: 991px) {
	.pava-slider { --pava-max-h: 70vh; }

	.pava-slider__title { font-size: 21px; }
	.pava-slider__text  { font-size: 14px; }
	.pava-slider__caption { padding: 30px 14px 30px; }
}

/* ------------------------------------------------------------------ */
/* mobile                                                            */
/* ------------------------------------------------------------------ */
@media only screen and (max-width: 767px) {
	.pava-slider { --pava-max-h: 64vh; }

	.pava-slider__viewport { height: 240px; }

	/* bigger tap targets, tucked to the edges so they don't cover art */
	.pava-slider__nav {
		width: 38px;
		height: 38px;
		font-size: 18px;
		line-height: 38px;
		background: rgba(0, 0, 0, .35);
	}

	.pava-slider__nav--prev { left: 6px; }
	.pava-slider__nav--next { right: 6px; }

	.pava-slider__caption { padding: 24px 12px 26px; }
	.pava-slider__title   { font-size: 17px; }
	.pava-slider__text    { font-size: 12px; }

	.pava-slider__dots { bottom: 8px; }

	.pava-slider__dot {
		width: 9px;
		height: 9px;
		border-width: 1px;
	}
}

@media only screen and (max-width: 480px) {
	.pava-slider__viewport { height: 190px; }
	.pava-slider__fill { filter: blur(16px) brightness(.5); }
}

/* ------------------------------------------------------------------ */
/* accessibility : honour reduced motion                              */
/* ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
	.pava-slider__viewport,
	.pava-slider__slide {
		transition: none;
	}
}

/* =====================================================================
   Quick link strip that sits directly under the slider
   (LATEST NEWS ticker / VIRTUAL CLASSROOM / CAMPUS LIFE)

   Loaded after banner-service.css, so these rules win.
   Two things are fixed here:
     1. the strip must come AFTER the banner image, never on top of it
     2. the three tiles stay in ONE row on phones and tablets
   ===================================================================== */

/* 1. no upward pull, no overlap, on any screen size */
.keo_banner_service_wrap {
	transform: none !important;
	-webkit-transform: none !important;
	-moz-transform: none !important;
	-ms-transform: none !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	position: relative;
	z-index: 2;
}

/* 2. always a single row of three equal tiles */
.keo_banner_service_wrap > div {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-ms-flex-wrap: nowrap;
	flex-wrap: nowrap;
	-webkit-box-align: stretch;
	-ms-flex-align: stretch;
	align-items: stretch;
	width: 100%;
}

.keo_banner_service_wrap > div > [class*="col-md-4"] {
	display: -webkit-box;
	display: -ms-flexbox;
	display: flex;
	-webkit-box-orient: vertical;
	-webkit-box-direction: normal;
	-ms-flex-direction: column;
	flex-direction: column;
	float: none;
	width: 33.3333%;
	max-width: 33.3333%;
	-ms-flex: 0 0 33.3333%;
	flex: 0 0 33.3333%;
}

.keo_banner_service_wrap .keo_banner_service {
	margin-bottom: 0 !important;
}

/* ------------------------------------------------------------------ */
/* tablet + mobile : keep the row, shrink the contents to fit          */
/* ------------------------------------------------------------------ */
@media only screen and (max-width: 991px) {
	.keo_banner_service_wrap { border-radius: 0; }

	.keo_banner_service_wrap > div > [class*="col-md-4"] {
		display: -webkit-box;
		display: -ms-flexbox;
		display: flex;
		width: 33.3333%;
	}

	.keo_banner_service {
		height: 46px;
		padding: 0 2px;
	}

	.keo_banner_service p > a {
		font-size: 11px;
		line-height: 1.15;
		letter-spacing: 0;
		white-space: normal;
	}

	.keo_banner_service i {
		font-size: 14px;
		margin-right: 4px;
	}

	.acme-news-ticker-box ul li,
	.acme-news-ticker-box ul li a {
		height: 46px;
		line-height: 46px;
	}
}

@media only screen and (max-width: 767px) {
	.keo_banner_service {
		height: 44px;
		padding: 0 1px;
	}

	.keo_banner_service p > a {
		font-size: 9px;
		font-weight: 700;
		letter-spacing: 0;
	}

	.keo_banner_service i {
		display: block;
		margin: 0 auto 1px;
		font-size: 13px;
	}

	/* the ticker tile is only a third wide now, so drop the arrows and
	   let the headline scroll / ellipsis inside the tile */
	.acme-news-ticker-controls {
		display: none !important;
	}

	.acme-news-ticker-box {
		padding-left: 6px !important;
		padding-right: 6px !important;
	}

	.acme-news-ticker-box ul li,
	.acme-news-ticker-box ul li a {
		height: 44px;
		line-height: 44px;
	}

	.acme-news-ticker-box ul li a {
		font-size: 9px !important;
		letter-spacing: 0;
	}
}

@media only screen and (max-width: 400px) {
	.keo_banner_service p > a  { font-size: 8px; }
	.keo_banner_service i      { font-size: 12px; }
	.acme-news-ticker-box ul li a { font-size: 8px !important; }
}
