/*
 Theme Name:   GeneratePress Child
 Theme URI:    https://generatepress.com
 Description:  Default GeneratePress child theme
 Author:       Tom Usborne
 Author URI:   https://tomusborne.com
 Template:     generatepress
 Version:      0.1
*/


/* automatic popup */
.pum-overlay.pum-active {
    display: block !important;
    background-color: rgba(0, 0, 0, 0.8);  /* semi-transparent dark overlay */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;  /* ensures it sits above page content */
    transition: background-color 0.3s ease;
}
/* end of automatic popup */


@media (min-width: 768px) {
  /* Start the .textfac hidden both visually (opacity) and dimensionally (max-height) */
  .textfac {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s ease, max-height 0.5s ease;
    pointer-events: none;
  }

  /* On hover, reveal .textfac by restoring its max-height and opacity */
  .textcon:hover .textfac {
    opacity: 1;
    max-height: 100%; /* or some large enough value to accommodate the text */
    pointer-events: auto;
  }
}


.room-gallery figure.wp-block-image.size-large {
	height: 200px;
	object-fit: cover;
}

.facilities .image-container img {
	border-radius: 8px;
}

.quizhead legend.gfield_label.gform-field-label.gfield_label_before_complex {
	font-size: 40px;
}

.gform-datepicker {
	width: 100% !important;
}

.faci-gallery {
    display: grid!important;
    grid-template-columns: repeat(2, 1fr); /* 3 equal columns */
    grid-template-rows: repeat(2, auto); /* 3 rows with automatic height */
    gap: 10px!important; /* Adjust spacing between items */
}

.faci-gallery figure {
	width: 100%!important;
	height: 100% !important;
}


.faci-gallery figure:nth-child(1) {
    grid-column: span 3; 
    grid-row: span 1;  
}

.faci-gallery figure:nth-child(n+4) {
    display: none!important;
}

.school-gallery {
    display: grid!important;
    grid-template-columns: repeat(3, 1fr); /* 3 equal columns */
    grid-template-rows: repeat(1, auto); /* 3 rows with automatic height */
    gap: 10px!important; /* Adjust spacing between items */
}

.school-gallery figure {
	width: 100%!important;
	height: 100% !important;
}

.school-gallery figure:nth-child(1) {
    grid-column: span 2; /* Span 2 columns */
    grid-row: span 2; /* Span 2 rows */
}

.school-gallery figure:nth-child(n+7) {
    display: none!important;
}

@media (max-width: 768px) {
    .reviews-details > h3 {
        margin-bottom: 5px;
	    font-size: 20px;
}
	.sticky-icon .fb-icon {
		display: none;
	}
	
	.hero-buttons {
        display: flex;
        row-gap: 10px;
        width: 100%;
        padding-top: 20px;
        flex-direction: column-reverse;
}
	.video-container {
		z-index: 2;
	}
    
	.sticky-icon {
		z-index: 1 !important;
	}
	
	.button02, .button01 {
		justify-content: center !important;
	}
	
}

.hover-box {
  position: relative; /* z-index requires a positioned element */
  z-index: 0; /* Default z-index */
}

.hover-box:hover {
  z-index: 5; /* Change to higher z-index on hover */
}

ul.footer-link li a:hover {
	color: var(--lochinvar700)!important;
}

.swiper-button-prev:after, .swiper-button-next:after {
	color: white !important;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

#video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1;
    height: 100%;
    background: linear-gradient(rgba(0,0,0,0.5),transparent);
    pointer-events: none
}

.home-hero-container {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    color: #fff;
    width: 100%;
	max-width: 1300px;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.hero-buttons {
	justify-content: center;
	margin-left: auto;
	margin-right: auto;
	padding-top: 20px;
}

.button02 {
	display: inline-flex;
	padding: 15px 20px 15px 20px;
	background: var(--lochinvar700);
	color: #fff;
	border-radius: 10px;
}

.program-box {
    height: 500px;
    display: flex;
	flex-direction: column-reverse;
    align-items: flex-start;
    justify-content: flex-start;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white; /* Text color to stand out on background */
	padding: 15px;
	border-radius: 16px;
}

.program-name,
.program-detail {
    transition: opacity 0.5s ease;
	width: 100%;
	padding-right: 15px;
}

.program-name {
    opacity: 1;
}

.program-detail {
    opacity: 0;
}

.program-box:hover .program-name {
    opacity: 0;
}

.program-box:hover .program-detail {
    opacity: 1;
}

.program-info {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid white;
    color: white; 
}

.program-info > p {
	padding: 10px 0px 10px 0px;
	margin: 0px;
}

@media (max-width: 768px) {
  .program-name {
    display: none; /* Hide the program name on mobile */
  }

  .program-detail {
    opacity: 1; /* Make program detail fully visible without hover on mobile */
  }

  .program-box:hover .program-detail {
    opacity: 1; /* Ensure hover does not change the opacity on mobile */
  }
}

.gfield_required {
	display: none !important;
}
.gform-theme--foundation .gform_footer {
	justify-content: center!important;
}

.reviews-container01 {
	display: flex;
	flex-direction: column;
	padding: 15px;
	border-radius: 10px;
    background-color: white;
}
.reviews-container02 {
	display: flex;
	flex-direction: row;
	width: 100%;
	gap: 20px;
	margin-bottom: 5px;
}

.reviews-photo {
	width: 20%;
}

.reviews-photo > img {
    border-radius: 50%;
}

.reviews-details {
	width: 75%;
}

.reviews-details > h3 {
    margin-bottom: 5px;
}

.reviews-details > p {
	color: var(--contrast-2);

}

.course-details {
	display: flex;
    gap: 10px;
	margin-bottom: 10px;
}

.course-details > span {
	padding: 6px;
	background: #8FFFEF;
	color: #222;
	border-radius: 8px;
}

.course-details > p {
	padding: 6px;
	margin-bottom: 0px;
	color: var(--contrast-2);
}

.nation {
	display: flex;
	width: 5%;
}

.image-container {
  position: relative;
  display: inline-block;
}

.image-container img {
  display: block;
  width: 100%; /* Adjust as needed */
}

.image-container::after {
  content: attr(data-alt);
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, 50%);
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 8px 12px;
  border-radius: 5px;
  width: 90%; /* Ensures the text doesn't exceed the image width */
  max-width: 90%;
  text-align: center;
  white-space: normal; /* Allows text to wrap */
  word-wrap: break-word; /* Ensures long words break correctly */
  box-sizing: border-box;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}

.image-container:hover::after {
  opacity: 1;
}

.sticky-submenu {
    position: sticky;
    top: 0;
    z-index: 1;
}

.sticky-icon a {
  display: inline-block; 
  transition: transform 0.3s ease;
  transform-origin: center; 
}

.sticky-icon a:hover, .form-icon a:focus {
  transform: rotate(45deg); 
}

.sticky-icon {
    position: fixed;
    bottom: 80px;
    right: 30px;
    display: flex;
	flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
	gap: 5px;
}

.sticky-icon a {
    display: inline-block; 
    transition: transform 0.3s ease; 
    transform-origin: center;
}

.sticky-icon a:hover, .form-icon a:focus {
    transform: rotate(45deg);
}

.wrapper {
  width: 100%;
  min-height: 100vh;
  height: 100%;
}

.block {
  z-index: 1;
  position: relative;
  &:before {
    content: "";
    position: absolute;
    height: calc(100% - 40px);
    width: 1px;
    background-color: #E1E1E1;
    left: 50%;
    margin-top: 90px;
  }
}

.title {
  text-align: center;
}

.each-event {
  margin: 40px 20px;
  width: 300px;
  position: relative;
  &:before {
    content: "";
    position: absolute;
    top: calc(50% - 8px);
    left: -27px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background-color: #b2b2be;
    box-shadow: 0 4px 20px -4px rgba(64, 64, 64, 0.8);
  }
  &:nth-child(odd) {
    margin-left: calc(50% + 20px);
  }
  &:nth-child(even) {
    margin-left: calc(50% - 321px);
    &:before {
      left: calc(100% + 14px);
    }
  }
}
