/* =========================================
   DEPARTMENTS STYLES
   ========================================= */
/* Variables are loaded from variables.css via link tag in HTML */

body {
  font-family: var(--tic-font-body);
  color: var(--tic-black);
  line-height: 1.6;
}

/* 1. HERO SECTION (Overview) */
.dept-hero {
  padding: 6rem 0 4rem;
  background-color: var(--tic-white);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out;
  min-height: 50vh;
}

.dept-hero-img {
  width: 90%;
  max-width: 550px;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.dept-title {
  font-family: var(--tic-font-title);
  font-size: 3rem;
  font-weight: 700;
  color: var(--tic-black);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.dept-description {
  font-family: var(--tic-font-body);
  font-size: 1.05rem;
  color: var(--tic-black);
  opacity: 1;
  margin-bottom: 1.8rem;
}

.dept-description strong {
  color: var(--tic-black);
  font-weight: 700;
  opacity: 1;
}

.btn-dept-action {
  font-family: var(--tic-font-title);
  background-color: var(--tic-blue);
  color: var(--tic-white);
  padding: 0.85rem 2.5rem;
  border-radius: var(--tic-border-radius);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.05rem;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn-dept-action:hover {
  background-color: var(--tic-blue-hover);
  color: var(--tic-white);
}

/* 2. TEAM SECTIONS */
.team-section {
  padding: var(--tic-margin-xxl) 0;
  background-color: var(--tic-white);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease-in-out;
}

.team-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.team-title {
  font-family: var(--tic-font-title);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--tic-black);
  position: relative;
  display: inline-block;
}

/* Subtitles for separated teams (M&A, Risk, etc) */
.team-subtitle {
  font-family: var(--tic-font-title);
  width: 100%;
  text-align: center;
  font-size: 2rem;
  font-weight: 600;
  margin-top: var(--tic-margin-xl);
  margin-bottom: var(--tic-gap-lg);
  color: var(--tic-black);
}

/* 3. TEAM MEMBER CARDS */
.team-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--tic-gap-lg);
}

.member-card {
  width: 100%;
  max-width: 240px;
  text-align: center;
  margin-bottom: var(--tic-gap-lg);
}

.member-img-wrap {
  margin-bottom: var(--tic-margin-md);
  overflow: hidden;
  width: 100%;
}

.member-img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

.member-name {
  font-family: var(--tic-font-title);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--tic-black);
  margin-bottom: 0.25rem;
}

.member-role {
  font-family: var(--tic-font-body);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--tic-black);
  margin-bottom: 0.5rem;
  opacity: 1;
}

/* Social Icons */
.member-socials {
  display: flex;
  justify-content: center;
  gap: var(--tic-gap-sm);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--tic-black);
  border-radius: 50%;
  color: var(--tic-black);
  font-size: 0.9rem;
  transition: all 0.3s ease;
  text-decoration: none;
  opacity: 1;
}

.social-icon:hover {
  background-color: var(--tic-blue);
  border-color: var(--tic-blue);
  color: var(--tic-white);
  opacity: 1;
}

/* 4. RESPONSIVE ADJUSTMENTS */
@media (max-width: 991px) {
  .dept-hero {
    text-align: center;
    padding-top: 5rem;
  }

  .dept-hero-img {
    margin-bottom: 2rem;
    max-width: 450px;
  }

  .dept-title {
    font-size: 2.2rem;
  }

  .team-grid {
    gap: var(--tic-margin-xl);
  }
}
