:root {
	--basic: #333;
	--primary: #223555;
	--secondary: #d5aa6d;

	--grey: #ddd;
	--grey_50: #fafafa;
	--grey_100: #f5f5f5;
	--grey_200: #e5e5e5;
	--grey_300: #8e8e8e;
	--grey_400: #bdbdbd;
	--grey_500: #9e9e9e;

	--green: #008f5d;
	--blue: #3892f3;
	--orange: #f68524;
	--red: #ea3829;
	--pink: #ff2eb9;
	--white: #fff;

	--margin: 40px;
	--padding: 30px;
	--max_width: 1050px;
	--nav_height: 60px;

}

/* OVERALL */
html { scroll-behavior: smooth; }
html, body { min-height: 100vh; color: var(--basic); }
body { font-family: 'Poppins', Arial; font-size: 14px; height: 100%; margin: 0; padding: 0; }
a { text-decoration: none; color: var(--primary); }
input { border: 1px solid #ccc; padding: 5px 10px; }

h2 { margin-top: 50px; text-align: left; text-wrap: balance; }



#app { display: flex; flex-direction: column; align-items: center; min-height: 100vh; }
.wrapper { width: 100%; max-width: var(--max_width); }

/* header */
header { display: flex; gap: var(--padding); margin: var(--nav_height) 0; align-items: center; }

header .logo { flex: 1; }

header .box { display: grid; grid-template-columns: 50px 1fr; gap: 10px; align-items: center; }


header .box .ico { width: 50px; height: 50px; display: flex; justify-content: center; border: 1px solid var(--secondary); border-radius: 50%; }
header .box .ico img { padding: 12px; }

header .box div {  }
header .box div span { display: block; color: var(--grey_300); }

/* nav */

#app > nav { background-color: #006779; padding: 0 25px; height: var(--nav_height); }
#app > nav ul { list-style: none; margin: 0; padding: 0; height: 100%; display: flex; align-items: center; justify-content: space-around; }
#app > nav ul li a { color: var(--white); font-weight: bold; padding: 10px; }
#app > nav ul li a:hover, #app > nav ul li.act > a { color: var(--secondary); }


#app > nav li.dropdown { position: relative; }
#app > nav li.dropdown:not(:hover) ul { display: none; }
#app > nav li.dropdown ul { position: absolute; left: 0; top: 30px; display: block; height: auto; box-shadow: 0 0 5px rgba(0, 0, 0, .5); }
#app > nav li.dropdown ul li { background-color: var(--primary); padding: 10px 0; width: 300px; }
#app > nav li.dropdown ul li:not(:last-of-type) { border-bottom: 1px solid rgba(0, 0, 0, 0.2); }



/* hero */
#hero { background: url('/res/img/hero.jpg') no-repeat center center / cover; height: 400px; width: 100%; margin-top: calc(-0.5 * var(--nav_height)); z-index: -1; display: grid; place-items: center; }
#hero > div { color: #fff; text-shadow: 0 0 10px rgba(0, 0, 0, .9); font-size: 36px; text-wrap: balance; padding: var(--padding); opacity: 0; transition: opacity 0.5s; background-color: rgba(0, 0, 0, .5); max-width: 1050px; }
#hero > div.act { opacity: 1; }

/* main */
main { line-height: 1.8; flex: 1; padding: var(--padding) 0; text-align: justify; }
main h1 { margin-top: 0; text-align: left; text-wrap: balance; }
main nav { margin-bottom: var(--margin); }

.tabs { display: flex; justify-content: center; gap: var(--margin); font-size: 18px; }
.tabs li a { padding: 5px; display: block; }
.tabs li:hover { border-bottom: 3px solid var(--grey_200); }
.tabs li.act { border-bottom: 3px solid var(--secondary); }


/* footer */
footer { background-color: #F7F7F7; padding: var(--padding); width: 100%; display: flex; justify-content: center; }
/* footer .wrapper { display: flex; justify-content: space-between; } */



/* home */
#stats { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
#stats > div { border: 1px solid #eee; padding: 20px; display: flex; justify-content: center; align-items: center; flex-direction: column; gap: 10px; flex: 1 300px; text-align: center; }
#stats > div b { display: block; font-size: 40px; color: var(--secondary); line-height: 1; }

/* offer */
#offers { margin-top: 50px; }
.offer { display: grid; grid-template-columns: 300px 1fr; gap: var(--margin); }
.offer:not(:last-child) { padding-bottom: var(--margin); margin-bottom: var(--margin);  border-bottom: 1px solid var(--grey_200); }

.offer .th { background: no-repeat center center / cover; aspect-ratio: 1; }
.offer .txt { margin-top: 5px; }
.offer h3 { margin: 0 0 10px; }

/* team */
/* #team_old { display: grid; grid-template-columns: 250px 1fr; gap: 50px; font-size: 15px; text-align: justify; }
#team_old h2 { margin-top: 0; font-size: 20px; } */

#team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; font-size: 15px; }
#team > div { position: relative; }
#team > div span { position: absolute; left: 0; bottom: 20px; padding: 10px 15px; background-color: var(--primary); color: #fff; }
#team > div:hover span { color: var(--secondary); }

#p { display: grid; grid-template-columns: 400px 1fr; gap: var(--margin); }

#team.mini { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 50px; font-size: 15px; }
#team.mini > div span { display: none; }
#team.mini > div.act { outline: 2px solid var(--secondary); }

/* publications */
#publications { display: grid; grid-template-columns: repeat(3, 1fr); gap: 50px; font-size: 15px; }
#publications > a { position: relative; aspect-ratio: 5/4; background: no-repeat center center / cover; }
#publications > a:nth-of-type(1) { background-image: url('/res/img/publications_1.jpg'); }
#publications > a:nth-of-type(2) { background-image: url('/res/img/publications_2.jpg'); }
#publications > a:nth-of-type(3) { background-image: url('/res/img/publications_3.jpg'); }
#publications > a span { position: absolute; left: 0; bottom: 20px; padding: 10px 15px; background-color: var(--primary); color: #fff; }
#publications > a:hover span, #publications > a.act span { color: var(--secondary); }


/* contact */
#contact { display: grid; grid-template-columns: 1fr 400px; gap: 50px; }






/* video rwd */
.video_wrapper { position: relative; padding-bottom: 56.25%; /* 16:9 */ padding-top: 25px; height: 0; }
.video_wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
