/* ==========================================================================
   Metamorph Pre School — Branch pages (Kovur, Madurai, Selaiyur, Silchar,
   Siruseri, Sithalapakkam, Vandalur)
   Breakpoints: laptop <= 1366px, tablet <= 1024px, mobile <= 767px
   ========================================================================== */

/* ---------- Title banner (shared page-hero, branch layout) ---------- */
.branch-hero {
	padding: 100px 30px;
	background-color: #B1D27C;
}

.branch-hero .page-hero__overlay {
	background-color: var(--accent-5);
	opacity: .5;
}

.branch-hero .page-hero__col--text,
.branch-hero .page-hero__col--image {
	width: 50%;
}

.branch-hero--silchar-assam .page-hero__col--text {
	width: 45%;
}

.branch-hero--silchar-assam .page-hero__col--image {
	width: 55%;
}

.branch-hero .page-hero__title {
	font-weight: 800;
	text-transform: uppercase;
}

/* ---------- Section headings ---------- */
.branch-admit__title,
.branch-head__heading,
.branch-heading {
	margin: 0;
	color: #0a303a;
}

.branch-admit__title,
.branch-head__heading {
	font-family: var(--font-display);
}

.branch-heading {
	text-align: center;
}

/* ---------- Buttons ---------- */
.branch-btn-wrap {
	margin: 20px 0 0 3px;
}

.branch-btn-wrap--center {
	text-align: center;
}

.branch-btn {
	display: inline-block;
	padding: 15px 30px;
	border: 1px solid #e74c25;
	border-radius: 4px;
	background-color: rgba(231, 76, 37, 0);
	color: #e74c25;
	font-family: var(--font-button);
	font-size: 16px;
	line-height: 1;
	text-align: center;
}

.branch-btn--lg {
	padding: 20px 40px;
	font-size: 18px;
}

.branch-btn:hover,
.branch-btn:focus {
	border-color: #0a303a;
	background-color: #0a303a;
	color: #ffffff;
}

/* ---------- Admissions open (photo + card) ---------- */
.branch-admit {
	position: relative;
	overflow: hidden;
	padding: 30px 30px 102px;
	background-color: #FFFFFF;
}

.branch-admit__bg {
	position: absolute;
	top: 0;
	bottom: 0;
	left: 0;
	width: 100%;
	background-image: url("../images/snail.svg");
	background-position: bottom center;
	background-repeat: no-repeat;
	background-size: auto;
}

.branch-admit__row {
	display: flex;
	position: relative;
	max-width: 1260px;
	margin: 0 auto;
}

.branch-admit__col {
	display: flex;
	flex-direction: column;
	position: relative;
	width: 50%;
}

.branch-admit__photo-col {
	justify-content: center;
}

.branch-admit__photo {
	margin: 0 -40px -40px 0;
	text-align: center;
}

.branch-admit__photo img {
	display: inline-block;
	width: 100%;
	max-width: 72%;
	height: auto;
	border-radius: 7px;
	vertical-align: middle;
}

.branch-admit__card {
	z-index: 1;
	padding: 60px;
	border-radius: 8px;
	background-color: var(--accent-5);
}

.branch-admit__title {
	margin-bottom: 20px;
	letter-spacing: 3.4px;
}

.branch-admit__text {
	margin-bottom: 20px;
	font-family: var(--font-text);
	font-size: 17px;
	line-height: 1.7em;
	text-align: justify;
}

.branch-admit__text p {
	margin: 0;
}

/* ---------- Branch head ---------- */
.branch-head {
	padding: 50px 0 0;
}

.branch-head__inner {
	padding: 10px;
}

.branch-head__row {
	display: flex;
	max-width: 1000px;
	margin: 0 auto;
}

.branch-head__col {
	display: flex;
	flex-direction: column;
	width: 50%;
	padding: 10px;
}

.branch-head__col--info {
	justify-content: center;
}

.branch-head__heading {
	font-weight: 500;
	letter-spacing: 3.6px;
}

.branch-head__heading--desktop {
	margin-bottom: 20px;
}

.branch-head__heading--mobile {
	display: none;
}

.branch-head__photo {
	text-align: center;
}

.branch-head__photo img {
	display: inline-block;
	width: 70%;
	height: auto;
	border-radius: 20px;
	vertical-align: middle;
}

.branch-head__name {
	margin: 15.6px 0;
	color: #0a303a;
	font-size: 26px;
	font-weight: 900;
	line-height: 1.21em;
}

.branch-head__name + .branch-list {
	margin-top: 20px;
}

/* Icon lists (address / phone / email) */
.branch-list {
	width: 80%;
	max-width: 80%;
	padding: 0;
	list-style: none;
}

.branch-list--contact {
	margin-bottom: 20px;
}

.branch-list__item:not(:last-child) {
	padding-bottom: 8.5px;
}

.branch-list__item:not(:first-child) {
	margin-top: 8.5px;
}

.branch-list__item a {
	display: flex;
	align-items: flex-start;
	color: #E74C25;
}

.branch-list__icon {
	display: flex;
	justify-content: center;
	position: relative;
	top: 1px;
	flex: none;
	width: 31.25px;
}

.branch-list--email .branch-list__icon {
	top: 0;
}

.branch-list__icon svg {
	width: 25px;
	height: 25px;
	fill: #E74C25;
}

.branch-list--email .branch-list__icon svg {
	fill: #E74C2500;
}

.branch-list__text {
	padding-left: 5px;
	color: #0a303a;
	font-family: 'Catamaran', sans-serif;
	font-size: 18px;
	line-height: 1.5em;
}

/* ---------- School leadership (Sithalapakkam) ---------- */
.branch-leaders-title {
	padding: 54px 0 0;
}

.branch-leaders-title__inner {
	padding: 10px;
}

.branch-leaders-title__heading {
	text-align: center;
}

.branch-leaders {
	padding: 0 30px;
}

.branch-leaders__row {
	display: flex;
	max-width: 1260px;
	margin: 0 auto;
}

.branch-leaders__col {
	display: flex;
	flex-direction: column;
	width: 33.333%;
	padding: 10px;
}

.branch-leaders__col--contact {
	justify-content: center;
	align-items: center;
}

.branch-leaders__photo {
	margin-bottom: 20px;
	text-align: center;
}

.branch-leaders__photo img {
	display: inline-block;
	width: 80%;
	height: auto;
	border-radius: 20px;
	vertical-align: middle;
}

.branch-leaders__photo--principal img {
	width: 70%;
}

.branch-leaders__name {
	margin: -15px 0 20px;
	padding-top: 14.4px;
	color: #0a303a;
	font-size: 24px;
	font-weight: 900;
	line-height: 1.21em;
	text-align: center;
}

.branch-leaders__name--principal {
	text-transform: uppercase;
}

.branch-leaders__role {
	margin: 0;
	color: #0a303a;
	font-size: 20px;
	font-weight: 800;
	line-height: 1.27em;
	text-align: center;
}

.branch-leaders__contact-title {
	width: 100%;
	margin: 0 0 20px;
	color: #0a303a;
	font-size: 26px;
	font-weight: 900;
	line-height: 1.21em;
	text-align: center;
}

.branch-leaders .branch-list {
	width: 95%;
	max-width: 95%;
}

.branch-leaders .branch-btn-wrap {
	width: 100%;
}

/* ---------- Gallery ---------- */
.branch-gallery {
	position: relative;
	padding: 50px 0 0;
}

.branch-gallery__shape-bottom svg {
	transform: translateX(-50%) rotateY(180deg);
}

.branch-gallery-photos {
	padding: 50px 0 0;
}

.branch-gallery__inner {
	position: relative;
	padding: 10px;
}

.branch-divider {
	display: flex;
	padding: 5px 0;
}

.branch-divider__separator {
	display: flex;
	align-items: center;
	width: 20%;
	margin: 0 auto;
}

.branch-divider__separator::before,
.branch-divider__separator::after {
	content: "";
	flex-grow: 1;
	border-top: 1px solid #000000;
}

.branch-divider__icon {
	display: block;
	color: #69727D;
	font-size: 35px;
	line-height: 1;
}

/* The icon colour is not passed to the SVG, so it renders black */
.branch-divider__icon svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: #000000;
}

.branch-gallery__grid {
	--gap: 20px;
	--radius: 15px;
	margin-top: 15px;
}

.branch-gallery__grid .gallery-grid__item:hover .gallery-grid__overlay,
.branch-gallery__grid .gallery-grid__item:focus .gallery-grid__overlay {
	background-color: #6437D1AB;
}

/* ---------- Explore our campus ---------- */
.branch-campus-title {
	padding: 30px 0 0;
}

.branch-videos {
	padding: 0 30px;
}

.branch-videos__inner {
	padding: 10px;
}

.branch-videos__row {
	display: flex;
	margin-top: 15px;
}

.branch-videos__col {
	display: flex;
	width: 33.333%;
}

.branch-video {
	position: relative;
	width: 100%;
	margin: 10px;
	padding: 10px;
	border-radius: 30px;
}

.branch-videos__col--green .branch-video {
	background-color: #00FA33;
}

.branch-video__media {
	display: block;
	width: 100%;
	border-radius: 25px;
	background-color: #000000;
	object-fit: cover;
}

.branch-video__overlay {
	display: flex;
	justify-content: center;
	align-items: center;
	position: absolute;
	inset: 10px;
	padding: 0;
	border: 0;
	border-radius: 20px;
	background-position: center;
	background-size: cover;
	cursor: pointer;
}

/* Lightbox videos show their poster image at its natural size */
.branch-video__poster {
	display: block;
	position: relative;
	width: 100%;
	padding: 0;
	overflow: hidden;
	border: 0;
	border-radius: 25px;
	background: none;
	cursor: pointer;
}

.branch-video__poster img {
	display: block;
	width: 100%;
	height: auto;
	object-fit: cover;
}

.branch-video__poster .branch-video__play {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
}

.branch-video__play {
	color: rgba(238, 238, 238, .9);
	font-size: 100px;
	line-height: 1;
	filter: drop-shadow(1px 0 6px rgba(0, 0, 0, .3));
}

.branch-video__play svg {
	display: block;
	width: 1em;
	height: 1em;
	fill: currentColor;
}

/* ---------- Map ---------- */
.branch-map {
	padding: 50px 0 0;
}

.branch-map__inner {
	padding: 10px;
}

.branch-map__frame {
	display: block;
	width: 100%;
	height: 400px;
	border: 0;
}

/* HTML-embedded map: full-width section, iframe stretched to the column */
.branch-map--full {
	padding: 0 30px;
}

.branch-map__frame--embed {
	height: 450px;
}

/* ==========================================================================
   RESPONSIVE — LAPTOP (<= 1366px)
   ========================================================================== */
@media (max-width: 1366px) {
	.branch-hero .page-hero__text {
		text-align: start;
	}

	.branch-head__col--info {
		width: 40%;
	}

	.branch-head__photo img,
	.branch-leaders__photo img {
		width: 70%;
		height: 400px;
		object-fit: cover;
		object-position: top center;
	}
}

/* The gallery's JS breakpoint switches below 1366px */
@media (max-width: 1365px) {
	.branch-gallery__grid {
		--gap: 10px;
	}
}

/* ==========================================================================
   RESPONSIVE — TABLET (<= 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
	.branch-hero {
		padding: 100px 30px;
	}

	.branch-hero .page-hero__col--text {
		width: 60%;
	}

	.branch-hero .page-hero__col--image {
		width: 40%;
	}

	.branch-hero .page-hero__title {
		line-height: 1.2em;
	}

	.branch-admit__title,
	.branch-head__heading {
		font-size: 30px;
		line-height: 1.2em;
	}

	.branch-admit {
		padding: 100px 30px 0;
	}

	.branch-admit__row {
		flex-wrap: wrap;
		max-width: 1024px;
	}

	.branch-admit__col {
		width: 100%;
	}

	.branch-admit__photo {
		margin: 0;
		transform: none !important;
	}

	.branch-admit__card {
		margin-top: 10px;
		padding: 20px;
	}

	.branch-head__inner {
		max-width: 1024px;
	}

	.branch-head__col {
		padding: 0;
	}

	.branch-head__col--info {
		width: 50%;
	}

	.branch-head__photo,
	.branch-leaders__photo img {
		margin-top: 60px;
	}

	.branch-leaders-title {
		padding-top: 48px;
	}

	.branch-leaders__name {
		line-height: 1.2em;
	}

	.branch-leaders__role {
		font-size: 18px;
	}

	.branch-head__photo img,
	.branch-leaders__photo img {
		width: 80%;
		height: 400px;
		object-position: top center;
	}

	.branch-list__text {
		font-size: 16px;
	}

	.branch-videos__row {
		flex-wrap: wrap;
	}

	.branch-videos__col {
		width: 50%;
	}
}

/* ==========================================================================
   RESPONSIVE — MOBILE (<= 767px)
   ========================================================================== */
@media (max-width: 767px) {
	.branch-hero {
		padding: 70px 20px;
	}

	.branch-hero .page-hero__col--text {
		width: 100%;
	}

	.branch-hero .page-hero__title {
		font-size: 50px;
	}

	.branch-hero .page-hero__text {
		font-size: 15px;
		line-height: 1.63em;
	}

	.branch-admit__title {
		line-height: 1.3em;
	}

	.branch-admit {
		padding: 70px 20px 75px;
	}

	.branch-admit__bg {
		background-size: contain;
	}

	.branch-admit__card {
		margin-top: 20px;
	}

	.branch-admit .branch-btn-wrap {
		text-align: center;
	}

	.branch-head {
		padding: 20px 0 0;
	}

	.branch-head__row {
		flex-wrap: wrap;
	}

	.branch-head__col,
	.branch-head__col--info {
		width: 100%;
	}

	.branch-head__col--photo {
		padding: 30px 0 0;
	}

	.branch-head__col--info {
		align-items: center;
		padding: 10px;
	}

	.branch-head__heading--mobile {
		display: block;
		margin-bottom: 20px;
		text-align: center;
	}

	.branch-head__heading--desktop {
		display: none;
	}

	.branch-head__photo {
		margin-top: 0;
	}

	.branch-head__photo img,
	.branch-leaders__photo img {
		height: 330px;
		object-fit: cover;
		object-position: top center;
	}

	.branch-head__name {
		margin: 14.4px 0;
		font-size: 24px;
		text-align: center;
	}

	.branch-head__name + .branch-list {
		margin-top: 0;
	}

	.branch-list {
		width: 95%;
		max-width: 95%;
	}

	.branch-head .branch-list--email .branch-list__icon {
		top: -1px;
	}

	.branch-btn-wrap {
		text-align: center;
	}

	.branch-head .branch-btn-wrap {
		width: 100%;
	}

	.branch-leaders {
		padding: 0 20px;
	}

	.branch-leaders__row {
		flex-wrap: wrap;
	}

	.branch-leaders__col {
		width: 100%;
	}

	.branch-leaders-title__heading,
	.branch-leaders__contact-title {
		display: none;
	}

	.branch-leaders__photo img {
		margin-top: 0;
	}

	.branch-leaders__name {
		line-height: 1.21em;
	}

	.branch-leaders__role {
		font-size: 16px;
	}

	.branch-gallery {
		padding: 20px 0 0;
	}

	.branch-divider__separator {
		width: 50%;
	}

	.branch-videos {
		padding: 0 20px;
	}

	.branch-videos__row {
		flex-wrap: wrap;
	}

	.branch-videos__col {
		width: 100%;
	}

	.branch-videos__col--empty {
		display: none;
	}

	.branch-video {
		margin: 0 0 30px;
	}
}
