@import url("https://fonts.googleapis.com/css2?family=Noto+Sans:wght@300;400;600&display=swap");
@import url('https://fonts.googleapis.com/css2?family=Michroma&display=swap');
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");

:root {
  --default: #111111;
  --primary: #003247;
  --primary-rgb: 0, 50, 71;
  --secondary: #004e5a;
  --secondary-rgb: 0, 78, 90;
  --accent-color: #54a0a0;
  --accent-color-rgb: 84, 160, 160;
  --bg-default: #222222;
  --bg-primary: #f5f5f5;
  --bg-secondary: #f6f6f6;
  --navbar-bg: #003247;
  --navbar-bg-rgb: 0, 50, 71;
  --navbar-li: #ffffff;

  --heading-font: "Michroma", "Open Sans", "Noto Sans", sans-serif;
  --body-font: "Open Sans", "Noto Sans", sans-serif;
}

/* General Styles
--------------------------------------------------------------*/
html {
  height: 100%;
}

body {
  font-family: var(--body-font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--default);
  background-color: var(--bg-default);
}

#page-top {
  display: grid;
  grid-template-rows: auto 1fr auto;
  grid-template-columns: 100%;
  min-height: 100vh;
}

/* a
-------------------------------------------------- */
a {
  color: var(--default);
  transition: all 0.5s ease;
}

a:hover,
a:focus,
a:active {
  color: var(--accent-color);
}



/* h1 h2 h3 h4 h5 h6
-------------------------------------------------- */
:is(h1, h2) {
  font-family: var(--heading-font);
}
:is(h3, h4, h5, h6) {
  font-family: var(--body-font);
}

h1 {
  color: #fff;
  font-size: 1.85em;
  font-weight: normal;
}

h2 {
  position: relative;
  font-size: 1.5em;
  font-weight: normal;
  color: var(--default);
  margin-bottom: 1.25em;
  padding-bottom: 0.75em;
}

h2::before {
  position: absolute;
  border-bottom: 3px solid var(--primary);
  top: 100%;
  left: 0;
  width: 80px;
  content: "";
}

h3 {
  font-size: 1.375em;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.75em;
}

h3 a {
  color: var(--primary);
  text-decoration: none;
}

h3 a::is(:hover, :focus, :active) {
  color: var(--secondary);
  text-decoration: none;
}

h4 {
  font-size: 1.25em;
  color: var(--default);
  margin-bottom: 0.75em;
}

h5 {
  font-size: 1.125em;
  color: var(--default);
  margin-bottom: 0.75em;
}

h6 {
  font-size: 1em;
  color: var(--default);
  margin-bottom: 0.75em;
}

:is(h1, h2, h3, h4, h5, h6) :is(small, .small) { 
  font-weight: 500;
}

@media screen and (max-width: 767.98px) {
  h1 {
    font-size: 1.5em;
  }

  h2 {
    font-size: 1.375em;
  }

  h3 {
    font-size: 1.3em;
    font-weight: 700;
  }

  h4 {
    font-size: 1.25em;
    font-weight: 700;
  }

  h5 {
    font-size: 1em;
    font-weight: 700;
  }

  h6 {
    font-size: 0.875em;
    font-weight: 700;
  }
}

@media screen and (max-width: 479.98px) {
  h1 {
    font-size: 1.3em;
  }

  h2 {
    font-size: 1.25em;
  }

  h3 {
    font-size: 1.2em;
    font-weight: 700;
  }

  h4 {
    font-size: 1.125em;
    font-weight: 700;
  }
}

/* p
-------------------------------------------------- */
p,
li,
dt,
dd,
th,
td,
.btn {
  font-size: 1em;
}

@media screen and (max-width: 767.98px) {
  p,
  li,
  dt,
  dd,
  th,
  td,
  .btn {
    font-size: 0.875em;
  }
  
  li li {
    font-size: 1em;
  }
}

@media screen and (max-width: 479.98px) {
  p,
  li,
  dt,
  dd,
  th,
  td .btn {
    font-size: 0.825em;
  }
}

/* Header
-------------------------------------------------- */
#main-header-page {
  padding-top: 80px;
  background-color: var(--primary);
  background-image: url("../images/bg-home.jpg");
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: cover;
}

#main-header-page h1 {
  color: #fff;
  text-shadow: 5px 3px 10px rgba(var(--primary-rgb), 0.15);
  text-align: left;
  padding-top: 4em;
  padding-bottom: 4em;
}

#main-header-page small {
  color: #fff;
  font-size: 0.725em;
  display: block;
}

a.anchor {
  display: block;
  padding-top: 80px;
  margin-top: -80px;
}

/* Hero Section
--------------------------------------------------------------*/
.hero {
  padding: 0;
  position: relative;
  overflow: hidden;
}

.hero .hero-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 0;
}

.hero .hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero .hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero .hero-content {
  position: relative;
  z-index: 3;
  padding: 3rem 0;
  width: 100%;
}

.hero .hero-content .content-box {
  padding: 5rem;
  animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .hero-content .content-box h2 {
  position: static;
  color: #ffffff !important;
  font-size: 4rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0;
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgb(var(--primary-rgb), 0.7);
}

.hero .hero-content .content-box h2::before {
  content: none;
}

.hero .hero-content .content-box p {
  color: #ffffff !important;
  font-family: var(--heading-font);
  font-size: 1.25rem;
  margin-bottom: 0;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgb(var(--primary-rgb), 0.7);
  letter-spacing: 0.025em;  
}

@media screen and (max-width: 1399.98px) {
  .hero .hero-content .content-box {
    padding: 4rem;
  }  
  .hero .hero-content .content-box h2 {
    font-size: 3.5rem;
  }  
  .hero .hero-content .content-box p {
    font-size: 1.125rem;
  }
}
@media screen and (max-width: 1199.98px) {
  .hero .hero-content .content-box {
    padding: 2.5rem;
  }  
  .hero .hero-content .content-box h2 {
    font-size: 3rem;
  }  
  .hero .hero-content .content-box p {
    font-size: 1rem;
  }
}

@media screen and (max-width: 991.98px) {
  .hero .hero-content .content-box h2 {
    font-size: 2.75rem;
  }  
  .hero .hero-content .content-box p {
    font-size: 0.85rem;
  }
}

@media screen and (max-width: 767.98px) {
  .hero .hero-wrapper {
    padding: 0;
  }
  .hero .hero-content {
    padding: 1rem 0;
  }
  .hero .hero-content .content-box {
    padding: 2.25rem;
  }
  .hero .hero-content .content-box h2 {
    font-size: 2.5rem;
    padding-right: 4rem;
    padding-left: 4rem;
  }
}

@media screen and (max-width: 479.98px) {
  .hero .hero-content .content-box {
    padding: 2rem;
  }
  .hero .hero-content .content-box h2 {
    font-size: 2rem;
    padding-right: 2rem;
    padding-left: 2rem;
  }
  .hero .hero-content .content-box p {
    font-size: 0.825rem;
  }
}

/* main-section
-------------------------------------------------- */
#main-section {
  color: var(--default);
  background-color: var(--bg-primary);
  padding: 3.75em 0;
}

#main-section p .fa,
#main-section p .fab,
#main-section p .fal,
#main-section p .far,
#main-section p .fas {
  display: inline;
}

@media screen and (max-width: 767.98px) {
  #main-section {
    padding-bottom: 1.875em;
  }
}

/* footer
-------------------------------------------------- */
footer {
  margin-top: auto;
  background-color: #fff;
}

.footer a {
  color: var(--default);
  transition: color 0.5s 0s ease;
}

.footer a:hover {
  color: var(--primary);
  text-decoration: none;
}

.footer .banner {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  text-align: center;
  gap: 1.5em;
}

.footer .banner img {
  width: 100px;
  height: auto;
}

#top-footer {
  background-color: #ffffff;
  padding-top: 5em;
  padding-bottom: 5em;
}

#bottom-footer {
  color: #ffffff;
  background-image: url("../images/footer-bg.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: bottom;
  padding-top: 5em;
  padding-bottom: 5em;
}

#bottom-footer h3 {
  color: #ffffff;
  font-family: var(--heading-font);
  font-weight: normal;
  border-bottom: none;
}

#bottom-footer .copyright {
  color: #ffffff;
  font-size: 0.875em;
  line-height: 1.2;
  margin-top: 5em;
}

#bottom-footer ul.nav_base {
  display: flex;
  justify-content: flex-end;
  padding-left: 0;
}

#bottom-footer ul.nav_base li {
  display: block;
  font-family: var(--heading-font);
  font-size: 0.75em;
  letter-spacing: 0.05em;
}

#bottom-footer ul.nav_base li a {
  width: auto;
  padding: 10px;
  display: block;
  color: var(--navbar-li);
  text-decoration: none;
  line-height: 18px;
}

#bottom-footer ul.nav_base li a:hover,
#bottom-footer ul.nav_base li:hover > a {
  color: var(--navbar-li);
  text-shadow: 1px 1px 3px rgb(var(--primary-rgb), 0.75);
}

#bottom-footer .logo {
  text-align: right;
  padding-top: 8px;
  text-shadow: 1px 1px 3px rgb(var(--primary-rgb), 0.75);
}

/* max-width: 991.98px
-------------------------------------------------- */
@media screen and (max-width: 991.98px) {  
  #bottom-footer {
    padding-top: 4em;
    padding-bottom: 4em;
  }
}

/* max-width: 767.98px
-------------------------------------------------- */
@media screen and (max-width: 767.98px) {
  #main-header-page {
    padding-top: 60px;
  }

  #main-header-page h1 {
    padding-top: 3em;
    padding-bottom: 3em;
  }
  .footer .banner img {
    width: 80px;
  }
  
  #bottom-footer .logo {
    text-align: left;
  }
  
  #bottom-footer ul.nav_base {
    justify-content: flex-center;
  }
  
  #bottom-footer ul li {
    font-size: 0.675em;
  }

  a.anchor {
    display: block;
    padding-top: 60px;
    margin-top: -60px;
  }
}

/* max-width: 479.98px
-------------------------------------------------- */
@media screen and (max-width: 479.98px) {
  #main-header-page h1 {
    font-size: 1.25em;
    padding-top: 2.5em;
    padding-bottom: 2.5em;
  }
  
  #bottom-footer {
    background-position: right 37% bottom;
  }
  
  #bottom-footer ul.nav_base {
    justify-content: start;
    flex-direction: column;
  }
}

/* btn
-------------------------------------------------- */
.btn {
  border-radius: 50rem;
  font-family: var(--heading-font);
  font-weight: 500;
  text-align: center;
  padding: 0.575em 1.75em 0.725em;
}

#main-section a.btn,
#main-section .btn {
  text-decoration: none;
}

a.btn-default:is(:link, :visited),
.btn-default:is(:link, :visited) {
  color: #fff;
  background-color: var(--primary);
  border: 2px solid var(--primary);
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out;
}

a.btn-default:hover,
.btn-default:hover {
  color: var(--primary) !important;
  background-color: #fff;
  border: 2px solid var(--primary);
  transition: background-color 0.3s ease-in, border-color 0.3s ease-in;
}

a.btn-outline,
.btn-outline {
  color: var(--primary);
  background-color: #fff;
  border: 2px solid var(--primary);
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out;
}

a.btn-outline:is(:link, :visited),
.btn-outline:is(:link, :visited) {
  color: var(--primary);
  background-color: #fff;
  border: 2px solid var(--primary);
}

a.btn-outline:hover,
.btn-outline:hover {
  color: #fff;
  background-color: var(--primary);
  border: 2px solid var(--primary);
}

/* list
-------------------------------------------------- */
ul.list {
  counter-reset: counter-name;
  padding-left: 0;
  margin-bottom: 2em;
}

ul.list li {
  list-style: none;
  position: relative;
  margin: 0;
  padding: 1em 0 1em 20px;
  border-bottom: 1px dotted var(--primary);
  text-align: justify;
}

ol {
  counter-reset: counter-name;
  padding-left: 0;
}

ol li {
  list-style: none;
  position: relative;
  margin: 0;
  padding: 0 0 0 2.4em;
}

ol li:before {
  counter-increment: counter-name;
  content: counter(counter-name) ".";
  color: var(--primary);
  font-weight: 600;
  position: absolute;
  left: 0;
  display: block;
  width: 1.6em;
  text-align: right;
}

ol.alph {
  counter-reset: alphabet;
}

ol.alph li:before {
  counter-increment: alphabet;
  content: counter(alphabet, lower-alpha) ".";
}

/* members
-------------------------------------------------- */
.member {
  border-bottom: 1px dotted var(--primary);
  margin-top: 1.5em;
  padding-bottom: 1em;
}
.member img {
  border-radius: 0.5em;
  margin-bottom: 0.5em;
}

/* data
-------------------------------------------------- */
a.list-group-item:hover img {
  filter: brightness(0) saturate(100%) invert(54%) sepia(57%) saturate(289%) hue-rotate(131deg) brightness(94%) contrast(94%);
  transition: all 0.5s ease;
}

/* achievements
-------------------------------------------------- */
#achievements ul {
  padding-left: 0;
  margin-bottom: 2em;
}

#achievements ul li {
  list-style: none;
  position: relative;
  margin: 0;
  padding: 1em 0em 1em 0.5em;
  border-bottom: 1px dotted var(--primary);
}

#achievements figcaption {
  font-size: 0.825em;
}

/* to_top
-------------------------------------------*/
.to_top {
  position: fixed;
  right: 10px;
  z-index: 200;
  transition: 0.3s linear;
  -webkit-transition: 0.3s linear;
  -moz-transition: 0.3s linear;
}
.to_top a {
  text-decoration: none;
  color: var(--primary);
  text-align: center;
  display: block;
  border-radius: 8px;
  -webkit-border-radius: 8px;
  -moz-border-radius: 8px;
  opacity: 0.8;
  filter: alpha(opacity=80);
  -ms-filter: "alpha( opacity=80 )";
  background-color: #fff;
  border: 1px solid var(--primary);
  padding: 6px 8px 8px 8px;
  height: 40px;
  width: 40px;
  transition: all 0.3s ease;
}
.to_top a:hover {
  color: #fff;
  background-color: var(--primary);
}