/*========================================================================== * Team CSS ==========================================================================*/ .team__two { .team__area-item { position: relative; z-index: 1; &-content { position: absolute; left: 0; bottom: 0; right: 0; padding: 35px 20px; margin: 20px 30px; background: var(--primary-color-1); text-align: center; border-radius: 10px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: 0.4s; } &:hover .team__area-item-content { visibility: visible; opacity: 1; transform: translateY(-10px); } } } .team__three { .team__area-item { &-content { background: var(--bg-white); padding: 30px 20px; margin: 0 30px; box-shadow: 0 0 60px rgb(0 0 0 / 9%); position: relative; z-index: 1; margin-top: -50px; border-radius: 10px; transition: 0.4s; h4 { font-size: 24px; line-height: 34px; } &-icon { position: absolute; top: 50%; right: 20px; transform: translateY(-50%); span { color: var(--text-heading-color); display: inline-flex; height: 45px; width: 45px; align-items: center; justify-content: center; font-size: 16px; background: var(--color-2); border-radius: 50%; transition: 0.4s; cursor: pointer; } .team__area-item-content-social { position: absolute; bottom: 55px; } &:hover { .team__area-item-content-social { opacity: 1; visibility: visible; } } } &-social { position: absolute; left: 0; opacity: 0; visibility: hidden; transition: 0.4s; margin-bottom: 10px; ul { padding: 0; margin: 0; display: grid; gap: 8px; li { list-style: none; a { i { display: inline-flex; height: 45px; width: 45px; align-items: center; justify-content: center; font-size: 14px; border-radius: 50%; background:var(--color-2); color: var(--text-heading-color); transition: 0.4s; &:hover { background: var(--primary-color-1); } } } } } } } &:hover .team__area-item-content { transform: translateY(-10px); &-icon span { background: var(--color-1); color: var(--text-white); } } } }