/* Platform Projects TWCO - loaded only on the PERMA Digital / Thriving Schools course pages */


/* Country language buttons hidden by custom.js until the user's country is matched */
.lang-btn.hidden {
  display: none !important;
}


/* Inner section for Thriving Schools Project - Buttons Styling -  */
/* Custom layout toggle utilities */
/* Hardened Layout Toggle Utilities */
.buttons-wrapper {
  display: inline-block;
  position: relative;
  z-index: 3;
  cursor: pointer;
  transition: all 0.35s ease-in-out; /* slightly shorter to match pause better */
  will-change: transform;            /* hint to browsers for smoother transforms */
}

/* when active: stop animation and apply scale */
.buttons-wrapper .active {
  animation: none !important;       /* stop floating so transform can be the scale */
  transform: scale(1.05);
  opacity: 0.8;
}

.buttons-wrapper a {
  font-size: 14px;
  font-weight: 700;
  width: 185px;
  background-color: #005044 !important;
  color: #fff !important;
  padding: 25px 25px 25px 50px;
  border-bottom: 10px solid #d0eada !important;
}
.buttons-wrapper a:before {
   content: "";
   width: 32px;
   height: 32px;
   background-image: url('/wp-content/uploads/2025/12/country-icon-button.png');
   position: absolute;
   top: 27px;
   left: 20px;
   background-repeat: no-repeat;
}


/* keep image style when active if you want it on the image */
.buttons-wrapper .active a {
  box-shadow: 10px 5px 10px #00000042;
  transition: transform 0.35s ease-in-out; /* smoother image changes */
}

/* Fade-in animation for section display */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in {
  animation: fadeIn 0.8s ease-out forwards;
}

.wellbeing-buttons, .wellbeing-buttons2, .teachers-buttons, .framework-buttons {
 	background-color:#307467;
    font-size:28px;
	padding-top:0px;
    padding-bottom:0px;
	transition:all 0.35s ease-in-out;
}
.wellbeing-buttons:hover , .wellbeing-buttons2:hover , .teachers-buttons:hover , .wellbeing-buttons.active , .wellbeing-buttons2.active , .teachers-buttons.active ,
.framework-buttons:hover {
    background-color:#005044;
}

/* Icon fills its column (uk-width-medium = 300px) instead of 250px image + 80px border overflowing it */
.wellbeing-buttons .el-image, .wellbeing-buttons2 .el-image, .teachers-buttons .el-image {
    display:block;
    box-sizing:border-box;
    width:100%;
    max-width:100%;
    height:auto;
    padding:30px 40px;
    border:0;
    object-fit:contain;
    background-color:#005044;
}
@media only screen and (max-width:639px) {
	.wellbeing-buttons .el-image, .wellbeing-buttons2 .el-image, .teachers-buttons .el-image {
		max-height:220px;
	}
}

/* Arrow sits right after the text whatever its length or font size */
.wellbeing-buttons .el-title, .wellbeing-buttons2 .el-title, .teachers-buttons .el-title,.framework-buttons .el-title {
    position:relative;
    display:inline-flex;
    align-items:center;
    gap:25px;
    color:#fff;
	padding-left:5px;
}
.framework-buttons .el-title {
	padding:15px;
}

.wellbeing-buttons .el-title:after,
.wellbeing-buttons2 .el-title:after,
.teachers-buttons .el-title:after,
.framework-buttons .el-title:after {
   content: "";
   flex:0 0 30px;
   width: 30px;
   height: 30px;
   background-image: url('/wp-content/uploads/2025/12/arrow-icon.png');
   background-repeat: no-repeat;
   background-position: center;
   background-size: contain;
   transition:all 0.35s ease-in-out;
}
.wellbeing-buttons .el-title:after,
.wellbeing-buttons2 .el-title:after,
.teachers-buttons .el-title:after {
   transform: rotate(90deg);
}

/* Iner section for Thriving Schools Project - Buttons Styling end */
/* Modules section - Styling */
.wellbeing-title , .teahcers-title {
   position: relative;
   color: #005044;
   font-weight: 700 !important;
   padding-left: 135px;
}
.wellbeing-title:before {
   content: "";
   width: 120px;
   height: 107px;
   background-image: url('/wp-content/uploads/2025/12/wc-modules-title.png');
   position: absolute;
   top: -45px;
   left: 0px;
   background-repeat: no-repeat;
}
.teahcers-title:before {
   content: "";
   width: 120px;
   height: 107px;
   background-image: url('/wp-content/uploads/2025/12/t-modules-title.png');
   position: absolute;
   top: -34px;
   left: 0px;
   background-repeat: no-repeat;
}

.module-box {
	background-color:#dfebf7;
	padding:30px 40px 40px !important; /* !important - layout was removing the bottom padding, video sat on the edge */
	color:#005044;
	transition:all 0.35s ease-in-out;
}
.module-box > :last-child,
.module-box iframe {
	margin-bottom:0;
	max-width:100%;
}
.modules-title {
	color:#005044;
    font-weight:700;
	font-size:28px;
}
.modules-subtitles {
	position: relative;
	color:#005044;
	font-size: 22px;
    font-weight:500;
	padding-left: 50px;
}
.modules-subtitle1:before {
   content: "";
   width: 44px;
   height: 38px;
   background-image: url('/wp-content/uploads/2025/12/modules-subtitle1-icon.png');
   position: absolute;
   left: 0px;
   background-repeat: no-repeat;
   background-size: 40px;
   transform: translateY(-50%);
   top: 50%;
}
.modules-subtitle2:before {
   content: "";
   width: 36px;
   height: 50px;
   background-image: url('/wp-content/uploads/2025/12/modules-subtitle2-icon.png');
   position: absolute;
   left: 0px;
   background-repeat: no-repeat;
   background-size: 30px;
   transform: translateY(-50%);
   top: 50%;
}
.modules-subtitle3:before {
   content: "";
   width: 38px;
   height: 43px;
   background-image: url('/wp-content/uploads/2025/12/modules-subtitle3-icon.png');
   position: absolute;
   left: 0px;
   background-repeat: no-repeat;
   background-size: 35px;
   transform: translateY(-50%);
   top: 50%;
}
.module-links a {
	font-style: italic;
	font-size:16px;
	opacity: 0.8;
	transition:all 0.35s ease-in-out;
}
.module-links a:hover {
	color:#005044 !important;
	opacity: 1;
}

/* [video_confirm] - "I watched the video" box next to a video (Cyprus users) */
.twco-video-confirm {
  margin:0;
  color:#005044;
}
.twco-video-confirm .twco-vc-intro {
  margin:0 0 10px;
  font-size:15px;
}

/* Same look as the language buttons: dark green block, white bold text, mint bar underneath */
.twco-video-confirm .twco-vc-btn {
  display:inline-flex;
  align-items:center;
  gap:24px;
  min-width:260px;
  min-height:80px;
  padding:18px 28px;
  border:0;
  border-bottom:10px solid #d0eada;
  border-radius:0;
  background:#005044;
  color:#fff;
  font-size:16px;
  font-weight:700;
  text-align:left;
  cursor:pointer;
  transition:all 0.35s ease-in-out;
}
.twco-video-confirm .twco-vc-btn:hover:not(:disabled) {
  background:#307467;
  box-shadow:0 6px 12px rgba(0,0,0,0.15);
}
.twco-video-confirm .twco-vc-btn:disabled {
  color:#fff;
}
.twco-video-confirm .twco-vc-box {
  flex:0 0 28px;
  width:28px;
  height:28px;
  box-sizing:border-box;
  border:2px solid #fff;
  background:transparent;
  position:relative;
}

/* Locked until the video has ended: muted green and a padlock instead of the box */
.twco-video-confirm.is-waiting .twco-vc-btn {
  background:#307467;
  cursor:not-allowed;
}
.twco-video-confirm.is-waiting .twco-vc-box {
  border:0;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Confirmed: ticked box, no longer clickable */
.twco-video-confirm.is-confirmed .twco-vc-btn {
  background:#005044;
  cursor:default;
}
.twco-video-confirm.is-confirmed .twco-vc-box {
  background:#fff;
}
.twco-video-confirm.is-confirmed .twco-vc-box:after {
  content:"";
  position:absolute;
  left:8px;
  top:2px;
  width:7px;
  height:14px;
  border:solid #005044;
  border-width:0 3px 3px 0;
  transform:rotate(45deg);
}

/* Staff preview: shown, but nothing can be sent */
.twco-video-confirm.is-preview .twco-vc-btn {
  opacity:0.6;
  cursor:not-allowed;
}

/* Status line sits above the intro text and takes no space while it is empty */
.twco-video-confirm .twco-vc-status {
  margin:0 0 10px;
  font-size:14px;
  font-weight:600;
}
.twco-video-confirm .twco-vc-status:empty {
  display:none;
}

/* Panchu edits - 2026-10-30: a SCORM topic shown inside a module box (via
   [cardet_display_topics_shortcode topic_id="..."]) looks exactly like the
   "Presentation" / "Worksheet" links above it (.module-links a): no grey bar,
   no icon, no square - just the italic link. Once the topic is completed a
   small tick appears after it. Scoped to .module-box, so lesson pages are
   untouched. */
.module-box .cardet-topics-list {
	margin-top:0;
	margin-bottom:0;
	padding-left:0;
}
.module-box .cardet-topics-list li {
	background:none;
	padding:0;
	margin:0;
}
.module-box .cardet-topics-list li img {
	display:none;
}
.module-box .cardet-topics-list li a {
	color:inherit;
	text-decoration:none;
	font-style:italic;
	font-size:16px;
	opacity:0.8;
	transition:all 0.35s ease-in-out;
}
.module-box .cardet-topics-list li a:hover {
	color:#005044 !important;
	opacity:1;
	text-decoration:none;
}
.module-box .cardet-topics-list .cardet-topic-completion-icon {
	display:none;
}
.module-box .cardet-topics-list li.cardet-topic-completed a::after {
	content:"\2713";
	font-style:normal;
	font-weight:700;
	margin-left:8px;
}

/* Panchu edits - 2026-11-05: the SCORM popup's exit (X) button was hidden behind the
   accessibility icon (.djacc--top-right) and hard to see. On bigger screens the icon moves
   down while the popup is open, and the X becomes a solid green circle with a white cross. */
@media screen and (min-width:960px) {
	body:has(#modal-generic-topics.uk-open) .djacc.djacc--top-right {
		top:110px !important;
	}
}
#modal-generic-topics .uk-modal-close-full.uk-close-large {
	top:20px;
	right:20px;
	z-index:1030;
	width:44px;
	height:44px;
	padding:0;
	opacity:0.6;
	display:flex;
	align-items:center;
	justify-content:center;
	background:#005044;
	color:#fff;
	border-radius:50%;
	box-shadow:0 2px 10px rgba(0,0,0,0.35);
	transition:all 0.35s ease-in-out;
}
#modal-generic-topics .uk-modal-close-full.uk-close-large svg line {
	stroke:#fff;
	stroke-width:2;
}
#modal-generic-topics .uk-modal-close-full.uk-close-large:hover {
	background:#003a31;
	opacity:1;
	transform:scale(1.08);
}
