header {
    max-height: calc(100vh - 65px);
}

header .background {
    height: calc(100vh - 65px);
    width: 100%;
}

header .image {
    position: absolute;
    top: 25px;
}

.schoolTitle {
    display: block;
    position: absolute;
    left: 50%;
    top: 25px;
    transform: translateX(-50%);
    color: #fff;
    font-size: 3rem;
    width: 80%;
    text-align: center;
}

@media (min-width: 500.5px) {
    header .image {
        height: 100px;
    }

    header .logo {
        left: 25px;
        /* 130px */
    }

    header .gold {
        top: 15px;
        left: 25px;
        height: 7rem;
        /* 305px */
    }

    header .country {
        right: 25px;
        /* left: 25px */
    }
}

@media (max-width: 500.5px) {
    .schoolTitle {
        display: none;
    }

    header .image {
        height: 22vw;
    }

    header .logo {
        left: 25px;
    }

    header .gold {
        left: 25px;
    }

    header .country {
        right: 25px;
    }
}

/*****************************************************/

main section h1 {
    margin: 15px 10px;
}


.containerList {
width: 85%;
}

  .subPageList {
	width: 80%;
	display: flex;
	margin: 0 auto;
	flex-wrap: wrap;
	justify-content: center;
  }

  .subPageListItem a {
	text-decoration: none;
  }

.subPageListItem {
  background-color: var(--bg-post);
  width: fit-content;
  display: block;
  margin: 5px;
  border-radius: 5px;
  padding: 5px;

  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.3);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.subPageListItem:hover {
  box-shadow: 0 1.2rem 2.4rem rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

  .subPageListItem div:first-child {
	display: block;
	height: 13vw;
	width: 13vw;
	overflow: hidden;
	padding: 5px;
  }
  
  .subPageListItem div:last-child {
	display: block;
	height: auto;
	width: 13vw;
	overflow: hidden;
	padding: 5px;

    display: flex;
    align-items: center;     /* vertical centering */
    justify-content: center; /* horizontal centering (optional) */
  }

  .subPageListItem img {
	margin: 0 auto;
	height: 100%;
  }

  .subPageListItem p {
	text-decoration: none;
	font-weight: bold;
	color: var(--text-main);
	margin: auto;
	text-align: center;
  }

    @media only screen and (max-width: 1100px) {
	.subPageListItem div:first-child {
		height: 20vw;
		width: 20vw;
	}

	.subPageListItem div:last-child {
		width: 20vw;
                height: auto;
	}
  }
  @media only screen and (max-width: 500px) {
	.subPageListItem div:first-child {
		height: 80vw;
		width: 80vw;
	}

	.subPageListItem div:last-child {
		width: 80vw;
                height: auto;
	}
  }