/*
Theme Name: twentytwentytw0tw0
Theme URI: 
Author: 22
Author URI: 
Description: edited twentytwentyfour theme for use
Requires at least: 7.1
Tested up to: 7.1
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfour
Text Domain: twentytwentytw0tw0
Tags: 
*/

/* ``````calendar */
.tribe-events .tribe-events-calendar-month__day-cell {
  background-color: #ffffff9E; /* Changes the background color on large screens. For small screens, see the next section. */
	border-radius:3px;
}
.tribe-events-calendar-list__event-title-link, .tribe-events-widget-events-list__event-title-link{
	font-family:"Libertinus sans" !important;
	color: #850038 !important;
}
.tribe-events-calendar-list__event-wrapper {
	padding:24px !important;
	border-radius:5px;
	border-style:solid !important;
	border-width:1px !important;
	border-color:#A1A1A1 !important;
	background-color:#E3E3E3e6;
}
.tribe-events-calendar-list__event-wrapper:hover {
	box-shadow: 0px 7px 20px rgba(0, 0, 0, 0.2);
}
.tribe-events-widget-events-list__header-title {
	font-family:"Libertinus sans" !important;
	color: #850038 !important;
	font-size:1.5rem !important;
}
/*`````  */

html {
  scroll-behavior: smooth;
}
a {
	transition: color 0.3s ease-in-out;
} /* a hover smooth color */
.cb-button-prev, .cb-button-next {
    color: #ffad0d !important;
}.cb-button-prev:hover, .cb-button-next:hover {
    color: #ffff0d !important;
} /* public service carousel button color  */
.btt-button {
	background-color: #850038 !important;
	border-radius: 10px;
} /* back to top button */
.carousel-container-class{
	height: auto !important;
} /* public service carousel container  */
.search-header-button button{
	background-color: transparent !important; 
}
/* ----burger */
.wp-block-navigation__responsive-container-open:not(.always-shown) {
    display: block !important;
}

.wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
    display: none !important;
}

@media (min-width: 1435px) {
    .wp-block-navigation__responsive-container-open:not(.always-shown) {
        display: none !important;
    }
    .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) {
        display: block !important;
    }
}
/* ---- */
header.home-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100vh;
	background-color: transparent;
	transition: background-color 0.8s ease, padding-top 0.6s ease-in-out, padding-bottom 0.6s ease-in-out, box-shadow 0.9s ease-in-out, height 0.6s ease; /* Smooth color fade */
	z-index: 999;
}
header.header-for-rest {
	height: auto;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background-color: transparent;
	transition: background-color 0.8s ease-in-out, padding-top 0.6s ease-in-out, padding-bottom 0.6s ease-in-out, box-shadow 0.9s ease-in-out, height 0.6s ease-in-out; /* Smooth color fade */
	z-index: 999;
}

header.home-header img.custom-logo {
/*   box-shadow: 0px 7px 20px rgba(0, 0, 0, 1);  */
	top: 60vh;
	position:fixed;
/* 	background-color: #40404087; */
  width: min(1200px, 70vw);
  height: auto;
	border-radius: 25px;
  transition: width 0.6s ease-in-out, top 0.5s ease;
}

/* Scrolled state: Changes to solid background color */
header.scrolled {
	height: 117px;
  background-color: #850037F2;
  box-shadow: 0px 7px 20px rgba(0, 0, 0, 0.2);
	padding-top: 10px !important;
	padding-bottom: 10px !important;
}

/* change site logo size on scroll */
header.scrolled img.custom-logo {
/* 	background-color: #ffffff00 !important; */
	top: 0 !important;
	position:relative !important;
  width: min(350px, 45vw);
  height: auto;
}
/* Maroon link, change on hover */
.maroon-link {
	color: #850038;
	
}
.maroon-link:hover {
	color: #ffad0d;
}

/* Change Header Link Color on Hover */

.wp-block-navigation-item__content:hover {
    color: #ffad0d !important;
    text-decoration: none !important;
		box-shadow: none !important;
}

/* Change Footer Link Color on Hover */
footer a:hover, 
.site-footer a:hover {
    color: #ffad0d !important;
    text-decoration: none !important;
}

.wp-block-navigation-submenu li:first-child{
	border-top: 2px solid #ffad0d;
	padding-top: 2px;
}
.wp-block-navigation-submenu, .wp-block-navigation-submenu li{
	border-radius: 5px;	
}

.wp-block-navigation-submenu li:hover {
	background-color: #B4044D;
	color: #ffffff !important;
}

.slide-in-effect {
  animation: slideInLeft 1s ease-out;
  timeline-trigger: --reveal-trigger view();
  animation-trigger: --reveal-trigger play-forwards;
}

/* slide in effect HES */
@keyframes slideInLeft {
  from {
    transform: translateX(-300%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* white search icon */
svg {
	fill: #ffffff !important;
	stroke-width: 0.5px;
}

/* remove outline when clicking */
a,
a:focus, 
a:active, 
a img:focus, 
button:focus,
*:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px); /* Starts 40px lower */
  }
  to {
    opacity: 1;
    transform: translateY(0);    /* Slides into original position */
  }
}

/* 2. Apply it to your element */
.fade-on-scroll {
  animation: fadeInUp 0.69s ease-in;
  
  timeline-trigger: --reveal-trigger view();
  animation-range: entry 15% cover 25%; 
  animation-trigger: --reveal-trigger play-forwards;
}

/* reduced animation */
@media (prefers-reduced-motion: reduce) {
  .fade-on-scroll {
    animation: none;
  }
	.slide-in-effect {
		animation: none;
	}
	html {
    scroll-behavior: auto;
  }
}

/* Target the button and set a smooth speed */
.grow-button {
    transition: transform 0.1s ease-in-out;
}

/* Transform the button on hover */
.grow-button:hover {
  transform: scale(1.05);
  /*     transform: translateY(-2px); /* Moves the button up 5 pixels */ */
  /*     box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);  */
}

.wp-block-breadcrumbs li:last-child {
    color: #D99712;
}

/* +++chancy cards */
.chancy-cards:hover {
  transform: translateX(-4px);
}
/* +++ */
/* ***** univ officials */
/* 1. Expand the first tab group's container so all 5 office lists stack naturally */
body.simple-view .tab-content-container {
  height: auto !important;
  overflow: visible !important;
}

/* 2. Reveal and stack all 5 panels in the FIRST group (Chancellor & Vice Chancellors' Offices) */
body.simple-view .tab-content {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  display: block !important;
  padding-bottom: 2.5rem !important;
}

/* 3. Reveal and stack all 5 panels AND their inner official rows in the SECOND group */
body.simple-view .wp-block-tabs,
body.simple-view .wp-block-tab-panels {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  display: block !important;
}

body.simple-view .wp-block-tab-panel,
body.simple-view .wp-block-tab-panel[hidden] {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  padding-bottom: 2.5rem !important;
}

/* Force inner rows/columns inside previously hidden tab panels to show */
body.simple-view .wp-block-tab-panel[hidden] > * {
  visibility: visible !important;
  opacity: 1 !important;
}

/* 4. Hide ONLY the second group's tab bar (CAS, CFOS, CM, SOTECH, GS) since each panel already has its College heading */
body.simple-view .wp-block-tab-list,
body.simple-view [role="tablist"] {
  display: none !important;
}
/* 5. Hide official portrait photos in simple view for a compact, scannable directory */
body.simple-view .tab-content .wp-block-image,
body.simple-view .wp-block-tab-panel .wp-block-image,
body.simple-view .tab-titles .wp-block-image {
  display: none !important;
}

/* 6. Tighten spacing inside official cards once photos are hidden */
body.simple-view .tab-content .wp-block-column,
body.simple-view .wp-block-tab-panel .wp-block-column,
body.simple-view .tab-titles .tab-title {
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

/* 7. Disable hover and active highlight effects on Chancellor & Vice Chancellor cards in simple view */
body.simple-view .tab-title,
body.simple-view .tab-title:hover,
body.simple-view .tab-title.active,
body.simple-view .tab-title.active:hover {
  background-color: transparent !important;
  background: none !important;
  box-shadow: none !important;
  transform: none !important;
  cursor: default !important;
  transition: none !important;
	border-style: dotted !important;
}
/*toggle simple view----------------------  */
/* Turn the button block into a clean label + sliding toggle switch */
.show-all-panels-btn .wp-block-button__link {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  background: transparent !important;
  color: #ffad0d !important;
  border: 1px solid;
  box-shadow: none !important;
  padding: 6px 10px !important;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}.show-all-panels-btn:hover {
	border-radius:5px;
	background-color:#85003855;
}

/* The pill track (OFF state) */
.show-all-panels-btn .wp-block-button__link::after {
  content: "";
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  background-color: #cccccc;
  border-radius: 999px;
  transition: background-color 0.25s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
}

/* The sliding white knob */
.show-all-panels-btn .wp-block-button__link::before {
  content: "";
  position: absolute;
  right: 33px; /* Positioned on the left side of the track when OFF */
  width: 18px;
  height: 18px;
  background-color: #ffffff;
  border-radius: 50%;
  transition: transform 0.25s ease;
  z-index: 1;
  pointer-events: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Make sure the link positions the sliding knob accurately */
.show-all-panels-btn .wp-block-button__link {
  position: relative;
}

/* ON state (when body has .simple-view) */
body.simple-view .show-all-panels-btn .wp-block-button__link::after {
  background-color: #850038; /* UP Maroon */
}

body.simple-view .show-all-panels-btn .wp-block-button__link::before {
  transform: translateX(20px); /* Slides knob to the right */
}
/* -------------------- */

/* Container for the tab content panels */
.tab-content-container {
  position: relative;
  overflow: hidden;
/*   border: 1px solid #ccc; */
  background: #fff;
  transition: height 0.35s ease-in-out; /* Animates the box height if tabs vary in size */
}

/* Individual tab content panels */
.tab-content {
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  box-sizing: border-box;
  transition: opacity 0.35s ease-in-out, transform 0.35s ease-in-out, visibility 0.35s;
}

/* Active tab panel layout and animation trigger */
.tab-content.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0); /* Slides up to its standard position */
  position: relative; /* Allows the container to auto-calculate height */
}

/* Tab Header Styling */
.tab-titles {
/*   display: flex; */
  gap: 10px;
  margin-bottom: 10px;
}

.tab-title {
  font-weight: bold;
  transition: background-color 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.tab-title.active {
	background-color: #85003780;
  color: #fff;
	border: 1px solid !important;
  border-color: #ffad0d !important;
}
/* 1. Default state: Tab is hidden */
.cs-tab-content {
  opacity: 0;
  visibility: hidden;
  height: 0;
  overflow: hidden;
}

/* 2. Active state: Triggers the custom fade-in animation */
.cs-tab-content:not([hidden]) {
  display: block; /* Ensures it registers as a block layout */
  height: auto;
  overflow: visible;
  
  /* Running the custom animation */
  animation: csFadeIn 0.69s ease-in-out forwards;
}

/* 3. The Animation Timeline */
@keyframes csFadeIn {
  from {
    opacity: 0;
    visibility: hidden;
  }
  to {
    opacity: 1;
    visibility: visible;
  }
}

/* Base styles for your tab buttons */
.cs-tab-list .has-background {
  cursor: pointer;
  transition: transform 0.4s ease, background-color 0.4s ease-in-out, color 0.4s ease-in-out; 
}

/* 1. Shift up 2px on hover */
.cs-tab-list .has-background:hover {
  background-color: #850038 !important;
	color: #ffffff !important;
  transform: translateY(-2px);
}

/* 2. Stay shifted up 2px when active */
.cs-tab-list button[aria-selected="true"] {
/*   transform: translateY(-2px);  */
}
/*------zoom image on hover */
/* 1. Ensure the image container hides any overlapping zoom content */
.zoom-container {
/*     overflow: hidden !important; */
}

/* 2. Set the default state and transition speed for the image */
.zoom-container img {
    transition: transform 0.2s ease-in-out !important;
}

/* 3. Scale up the image only when hovering over the container */
.zoom-container:hover img {
    transform: scale(1.02) !important; /* Adjust 1.15 to change zoom depth */
}
/* ------- */
/* cover video */
/* Target the video inside your specific cover block */
.zoomed-cover-video video {
    width: 100% !important;
	  height: 100% !important;
    object-fit: cover !important;
    transform: scale(1.2); 
    transform-origin: center center;
}
/*######### maps iframe  */
.visitors-wrapper {
    position: relative;
    padding-bottom: 75%;
    height: 0;
    overflow: hidden;
		border-radius:5px;
    width: 100%;
    max-width: 100%;
}
.visitors-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
}
/*%%% students iframe  */
.students-wrapper {
    position: relative;
    padding-bottom: 75%;
    height: 0;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
}
.students-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
}

/**** academic calendar */
.calendar-wrapper {
    position: relative;
    padding-bottom: 75%;
    height: 0;
    overflow: hidden;
    width: 100%; 
    max-width: 100%;
}
.calendar-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    border: none;
}
/**** */

/* ``````````````` chancy offc */
/* Container adjustments */
.timeline-container {
  position: relative;
}
@media only screen and (min-width: 426px) and (max-width: 768px) {
	.timeline-line-base {
		left: 19vw !important;
	}
}
/* Base background track line */
.timeline-line-base {
  position: absolute;
  left: 38vw; /* Positioned precisely where the timeline nodes sit */
  top: 0;
  bottom: 0;
  width: 7px;
  background-color: rgba(255, 255, 255, 0.15); /* Soft line matching your site's dark scheme */
  z-index: 1;
}

/* Glowing progress line fill */
.timeline-line-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to bottom, #7b1113, #b4975a); /* UP Maroon & Gold gradient */
  box-shadow: 0 0 8px rgba(180, 151, 90, 0.6);
	border-radius: 0 0 5px 5px;
  transition: height 0.1s linear;
}

/* Timeline row item structural layout */
.timeline-item {
  position: relative;
  display: flex;
  z-index: 2;
}

/* Absolute positioning for the markers to lock them to the line track */
.timeline-marker {
  position: absolute;
  left: -4vw;
  top: 20px; 
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* The structural Node Circle (Default state) */
.timeline-node {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #2a2a2a;
  border: 3px solid rgba(255, 255, 255, 0.3);
  transition: all 0.4s ease;
  z-index: 3;
}

/* Active Glowing Node State triggered via JavaScript */
.timeline-item.active .timeline-node {
  background-color: #ffa80a; /* Gold node fill */
  border-color: #ffad0d;     /* Maroon node border border */
  box-shadow: 0 0 15px #b4975a, 0 0 5px #7b1113; /* Double glow aesthetic */
  transform: scale(1.5);
}

/* The Year label text styling */
.timeline-year {
  position: absolute;
  right: 0px; /* Positions text to the left side of the vertical line */
  white-space: nowrap;
	padding-top: 10px;
  font-size: 1.2rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-shadow: 1px 1px 4px rgba(47, 54, 50, 0.9);
  transition: all 0.4s ease;
}

/* Active state for the year label */
.timeline-item.active .timeline-year {
  color: #ffad0d; /* Transitions to glowing Gold text */
  text-shadow: 1px 1px 8px rgba(61, 52, 102, 0.9);
	transform: scale(1.2);
}

/* Card content wrapper adjustments */
.chancy-cards {
  width: 100%;
}
.chancy-container {
	overflow: hidden;
}
/* ``````````````` chancy offc */
