/*
 Theme Name: Divi Child
 Theme URI: https://www.elegantthemes.com/gallery/divi/
 Description: Divi Child Theme
 Author: Elegant Themes
 Author URI: https://www.elegantthemes.com
 Template: Divi
 Version: 1.0.0
*/

/* =Theme customization starts here
------------------------------------------------------- */

/* 
Custom Team Grid Layout and Card Styling
*/

/* Grid Layout - 1 column on mobile, 2 columns on tablet/desktop */
.custom-team-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  width: 100%;
}

@media (min-width: 768px) {
  .custom-team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Card Container Styling */
.team-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0px 12px 30px 0px #0f36571f;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

/* Featured Image */
.team-card-image {
  height: 310px;
  background-size: cover;
  background-position: center top;
  width: 100%;
}

/* Content Area inside Card */
.team-card-content {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Typography matching the image */
.team-card-name {
  margin: 0 0 4px !important;
  font-size: 22px;
  font-weight: 700;
  color: #103558;
}

.team-card-role {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.2;
  color: #0297d7;
}

.team-card-excerpt {
  margin: 0 0 24px;
  font-size: 14px;
  color: #475569;
  line-height: 1.5;
  flex-grow: 1;
}

/* Base state for the button */
.team-card-readmore {
  align-self: flex-end;
  font-size: 14px;
  font-weight: 600;
  color: #103558;
  text-decoration: none;
  position: relative;
  padding-bottom: 4px;
  transition:
    transform 0.3s ease,
    color 0.3s ease;
}

/* The hidden line */
.team-card-readmore::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #0297d7;
  opacity: 0;
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.team-card-readmore:hover {
  color: #0297d7;
  transform: translateY(-4px);
}

.team-card-readmore:hover::after {
  opacity: 1;
  transform: translateY(4px);
}
