/*style of the featured section on news*/
.featured h3.newsflash-title::before {
    content: "";
    display: inline-block;
    width: 20px;
    height: 20px;
    background-color: var(--primary); 
    mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path d="M16 144a144 144 0 1 1 288 0A144 144 0 1 1 16 144zM160 80c8.8 0 16-7.2 16-16s-7.2-16-16-16c-53 0-96 43-96 96c0 8.8 7.2 16 16 16s16-7.2 16-16c0-35.3 28.7-64 64-64zM128 480l0-162.9c10.4 1.9 21.1 2.9 32 2.9s21.6-1 32-2.9L192 480c0 17.7-14.3 32-32 32s-32-14.3-32-32z"/></svg>');
    mask-size: contain;
    mask-repeat: no-repeat;
}

/*prevent linked headers of news and jobs to be underlined*/
.newsflash-title a{
  text-decoration: none !important;
}

}

/*align elements to the top of a cell*/
.table th, .table td {
  vertical-align: top;
}

/*increase width of jce editor to 100%*/
:has(joomla-tab) body:not(.has-sidebar-right) .site-grid .container-component {
  grid-column-end: full-end!important;
}

:has(joomla-tab) body:not(.has-sidebar-left) .site-grid .container-component {
  grid-column-start: full-start!important;
}


@font-face {
    font-family: 'Playfair Display';
    src: url('../typo/playfairdisplay-variablefont_wght-webfont.woff') format('woff'); 
}

@font-face {
    font-family: 'Open Sans';
    src: url('../typo/opensans-variablefont_wdthwght-webfont.woff') format('woff');
}

#com-contact-form > div > button:not(:nth-child(1), :nth-child(2), :nth-child(4)) {
  display: none;
}

#member-profile > fieldset:not(:nth-child(1)){
 display: none;
}

#member-profile > fieldset > .control-group:not(:nth-child(5), :nth-child(6)){
 display: none;
}

.easy_img_caption_inner{
  text-align: left;
  font-style: italic;
  margin-top: 0.75rem;
}

.more-article > a{ 
	text-decoration: none;
  	font-family: 'Playfair Display', serif;
  	margin: 3rem;
}

.table > :not(caption) > * > * {
	border-bottom-width: 0px;
  	color: var(--body-color);
}

hr{
  	margin: 3rem 0;
    border: 0;
    height: 4px;
    background-image: linear-gradient(to right, var(--rgb-hr-color), var(--rgba-hr-color), var(--rgb-hr-color));
}

.table{
  display:table;
  width:100%;
  table-layout:fixed;
  border-collapse: collapse;
  overflow-x: auto;
}


.modazdirectory__result > div > h3 > a{
  color: var(--primary);
}


/* Change the color of the input fields in the JCE frontend editor to a static color*/
.form-control {
   	color: #000000 !important;
    background-color: #ffffff !important;
}
#com-content-form{
  color: #000000 !important;
}

.modazdirectory__form{
  text-align: center;
}

.modazdirectory__glyph{
  align-self: auto;
}

.modazdirectory__field-email{
  display: flex;
}

.title > a{
  all: unset;
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  font-weight: 400;
  font-size: 3rem;
  cursor: pointer;
}

.onload{
  z-index: 1000000;
  left: 0;
  position: absolute;
  top: 0;
  width: 150vw;
  height: 150vh;
  background-color: white;
}

.onload > h1{
  position: absolute;
  top: 0;
  left: 50%;
}

/* WIP */

.link-footer{
  all: unset;
  cursor: pointer;    
  display: flex;
  justify-content: space-between;

}

.email-container {
  display: flex;
}

.email-image{
  	background-image: var(--mailimg)!important;
    background: no-repeat;
    background-size: contain;
    width: 10.1rem;
    margin-left: 2px;
    background-position: 50% 45%;
  
}

/*-------------------------------------- GENERAL ----------------------------*/

.light-theme {
  	--primary: #000000;
  	--cassiopeia-color-primary: #000000; 
    --body-color: #464545;
    --body-bg: #ffffff;
  	
  	--homepage: url("/images/SiteImages/Homepage/FrontImageDay.2000w.jpeg");
  	--mailimg: url("/images/Contacts/MailLight.jpeg");
  
  	--table-color: #000000;
    
  	--link-color: #707070;
  	--link-hover-color: #707070;
  
  	--accordion-bg: #fff;
  
    --list-group-action-active-bg: #fff;
    --cassiopeia-color-hover: #707070;

  	--emphasis-color: #000000;
 	
  	--rgb-hr-color: rgba(0, 0, 0, 0);
  	--rgba-hr-color: rgba(0, 0, 0, 1)
} 


/* Dark theme */
.dark-theme {
    --primary: #ffffff;
  	--cassiopeia-color-primary: #ffffff;   
    --body-color: #cececf;
    --body-bg: #212231;
  
  	--homepage: url("/images/SiteImages/Homepage/FrontImageNight.2000w.jpeg");
  	--mailimg: url("/images/Contacts/MailDark.jpeg");
  
	--link-color: #DDE6ED;
  	--link-hover-color: #DDE6ED;
  
  	--accordion-bg: #272829;
  	--accordion-active-color: #ffffff; 
   	--list-group-action-active-bg: #DDE6ED;
  
  	--cassiopeia-color-hover: #fff;
  	
    --emphasis-color: #ffffff;
  
    --rgb-hr-color: rgba(255, 255, 255, 0);
  	--rgba-hr-color: rgba(255, 255, 255, 1)
  
}

:root{
  
  --body-font-family: 'Open Sans', sans-serif;
  --body-font-size: 1.1rem;
  --body-font-weight: 400;
  --body-line-height: 1.6;

  --heading-color: inherit;
  
  --link-decoration: underline;
  
  touch-action: pan-x pan-y;

}

html{
  overflow-x: hidden;
}

body{
  overflow-x: hidden;
}

.list-group{
  --list-group-action-active-bg: var(--body-bg);
  --list-group-active-bg: var(--body-bg);
  --list-group-active-border-color: var(--body-color);
  --list-group-border-color: var(--border-color);
  --list-group-action-color: var(--body-bg);
  --list-group-action-hover-color: var(--body-bg);
  --list-group-action-hover-bg: var(--body-bg);
  --list-group-action-active-color: var(--body-color);
  --list-group-action-active-bg: var(--body-bg);
  --list-group-disabled-color: var(--body-bg);
  --list-group-disabled-bg: var(--body-bg);
  --list-group-active-color: var(--body-bg);;
}

.accordion{--accordion-active-bg: transparent;}

.form-control {
    background-color: var(--body-bg);
}

.btn-primary {
    background-color: var(--body-bg);
    border-color: var(--body-color);
  	color: var(--body-color);
    --btn-active-bg: var(--body-color);
    --btn-active-border-color: var(--body-color);
    --btn-hover-color: var(--primary);
  
}

span{
  font-family: var(--body-font-family);
}

.fa{
  color: var(--body-color);
}

.container{
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.shadow-lg{
  box-shadow: 0 1rem 2rem rgba(0,0,0, 0.7) !important;
}

.readmore{
  text-align: center;
  margin-top: 2rem;
}
/*------------------------------ HIDING ELEMENTS ----------------------------*/

#limit{
  display: none;
}



.mceBranding{
  display: none!important;
}
  
/*-------------------------------------- IMAGES ----------------------------*/

.homepage{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-image: var(--homepage);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 50% 50%;
}

.homepage-title{
  margin-top: 12vh;
}

.homepage-title > img{
  position: relative; 
  width: 5rem; 
  left: 50%; 
  transform: translateX(-50%);
}

.homepage-title > h1{
  margin-top: 6vh; 
  position: relative;
}

.homepage-title > p{
  margin-top: 2vh; 
  position: relative;
}

.figure-outer{
  margin-top: 2.5rem;
  margin-bottom: 6.5rem;
}

.figure-outer > img{
  border-radius: var(--border-radius)!important;
  box-shadow: 0 1rem 2rem rgba(0,0,0, 0.7) !important;
}

figcaption{
  font-style: italic;
}

.figure-outer > figcaption{
  margin-top: -4rem;
  color: lightgray;
  font-weight: bold;
  margin-right: 2rem;
  text-align: right;
  margin-bottom: 2rem;
  font-style: italic;
}

.ratio-21 > img{
  aspect-ratio: 2 / 1;  
  object-fit: cover;   
}

.direct-ration-21{
  aspect-ratio: 2 / 1;  
  object-fit: cover; 
}

/*-------------------------------------- HEADER | MENU | FOOTER ----------------------------*/

/* LANGUAGE SWITCHER */

.lang-active{
  background-color: transparent !important;
}

.lang-active > a > img{
	width: 2rem;
}

/* OFFCANVAS AND MENU BAR*/

/* Change style of menu, "sticky" is a setting in the advanced tab of the style*/

.container-topbar{
  display: none;
  visibility: hidden;
}

.container-header {
  background-image: none;
  background: transparent;
  position: sticky!important;
}

.container-nav{
  min-width: 100%;
  justify-content: center !important;
}

.page-header{
  text-align: center;
}

.navbar-toggler{
  border: none !important;
  position: fixed;
  top: 4vh;
  right: 2vw;
}

.offcanvas{
  background-color: var(--body-bg);
}

.nav-item{
  margin-top: 0.7rem;
}

.nav-item > a{
  text-decoration: none !important;
  font-style: normal;
  color: var(--body-color)!important;
}

.navbar-img > img{
    width: 2.5rem;
  }

.small, small {
    font-size: 1.1rem;
}

.mod-menu__sub{
  margin-left: 1rem;
}

/* HEADING */

h1, h2, h3, h4, h5, h6{
  
  font-family: 'Playfair Display', serif;
  color: var(--primary);
  font-weight: 400;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
  
}

@media screen and (min-width: 400px), (max-width : 800px)
{
  h1{
    font-size: 3rem;
  }

  h2{
    font-size: 2.5rem;,
  }
  
  .homepage-title-font{
    font-size: 1.7rem;
  }
  

}

/* responsive table */
@media screen and (max-width: 600px) {
  /* Styles for tables with 3 or more columns */
  .responsive-table {
    display: block !important;            
    overflow-x: auto !important;
    white-space: nowrap;
  }

  .responsive-table th, 
  .responsive-table td {
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    white-space: nowrap;
  }

  /* Styles for tables with only 2 columns (stacking rows) */
  .stacked-table td, 
  .stacked-table th {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    white-space: normal;
  }
  
  /*eay image caption on phone*/
  .easy_img_caption{
    width: unset!important;
  }

}

@media screen and (max-width : 400px)
{
  h1{
    font-size: 2.2rem;
  }

  h2{
    font-size: 1.7rem;
  }
  
  h5{
  font-size: 1.2rem;
  }

  h6{
    font-size: 1.1rem;
  }
  
  .homepage-title-font{
    font-size: 1.2rem;
  }
  
  .modazdirectory__result p {
    font-size: 0.8rem !important;
  }
  
  .modazdirectory__result h3 {
    font-size: 1.2rem !important;
  }
  
  .email-image-contactlist{
	width: 7rem!important;
  }
  
}

@media screen and (min-width : 800px)
{
  h1{
    font-size: 3rem;
  }

  h2{
    font-size: 2.5rem;
  }
  
  h5{
  font-size: 1.5rem;
  }

  h6{
    font-size: 1.2rem;
  }
  
  .homepage-title-font{
    font-size: 2rem;
  }
  
}

h1{
  margin-top: 5rem;
  margin-bottom: 2rem;
}

h2{
  margin-top: 3rem;
  margin-bottom: 2rem;
}

h3{
  font-size: 2rem;
}

h4{
  margin-bottom: 1rem;
}


/* FOOTER */

.footer{
  background-image: none;
  background-color: black;
}

.footer > .grid-child{
  justify-content: center;
}

.back-to-top-link{
  position: fixed;
  background: var(--body-bg);
}

.icon-arrow-up{
  color: var(--primary); 
}

/*--------------------------------------MODUL SETTINGS----------------------------*/

/* CONTACT LIST IMAGES*/

.modazdirectory__image {
    object-fit: contain;
  	background-color: #DDDEE2;
}

.modazdirectory__result{
  background-color: var(--body-bg);
  color: inherit;
}

.modazdirectory__result p{
  font-size: var(--body-font-size);
}

.modazdirectory__result h3{
  font-size: 1.5rem;
}

/* SIGPLUS OVERRIDE*/

.sigplus-image{
  margin: .8rem;
  box-shadow:0 10px 16px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19) !important;
}

/* NEWSFLASH */

.mod-articlesnews__item{
  margin-top: 4rem;
  margin-bottom: 4rem;
}

.news-date{
  font-weight: bold;
}

/*-------------------------------------ANIMATIONS----------------------------*/

.fade-top {
  opacity: 0;
  transform: translate(0, 10vh);
  transition: all 1s;
}

.fade-top.in {
  opacity: 1;
  transform: translate(0, 0);
}


/*-------------------------------------CUSTOM ELEMENTS----------------------------*/

/* CUSTOM UTILS CLASSES */
.text-justify {
  text-align: justify;
  -webkit-hyphens: auto;
  -moz-hyphens: auto;
  -ms-hyphens: auto;
  hyphens: auto;
}

/*SCROLLDOWN ARROW*/

.arrows {
  width: 60px;
  height: 72px;
  position: absolute;
  left: 50%;
  margin-left: -30px;
  top: 85vh;
}

.arrows path {
  stroke: #fff;
  fill: transparent;
  stroke-width: 4px;  
  animation: arrow 2s infinite;
  -webkit-animation: arrow 2s infinite; 
}

@keyframes arrow
{
0% {opacity:0}
40% {opacity:1}
80% {opacity:0}
100% {opacity:0}
}

@-webkit-keyframes arrow /*Safari and Chrome*/
{
0% {opacity:0}
40% {opacity:1}
80% {opacity:0}
100% {opacity:0}
}

.arrows path.a1 {
  animation-delay:-1s;
  -webkit-animation-delay:-1s; /* Safari  Chrome */
}

.arrows path.a2 {
  animation-delay:-0.5s;
  -webkit-animation-delay:-0.5s; /* Safari  Chrome */
}

.arrows path.a3 { 
  animation-delay:0s;
  -webkit-animation-delay:0s; /* Safari  Chrome */
}

/* HORIZONTAL LINE */

.hr-text {
  line-height: 1em;
  position: relative;
  outline: 0;
  border: 0;
  color: black;
  text-align: center;
  height: 1.5em;
  opacity: 0.8;
  background-image: unset;
}

.hr-text:before {
  content: "";
  background: linear-gradient(to right, transparent, var(--primary), transparent);
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 1px;
}

.hr-text:after {
  content: attr(data-content);
  position: relative;
  display: inline-block;
  color: black;
  padding: 0 0.5em;
  line-height: 1.5em;
  color: var(--primary);
  background-color: var(--body-bg) !important;
}
