/* Expert Tab Headers - 1480px width */
.expert-tab-headers {
  max-width: 1480px;
  margin-left: -2rem;
  margin-right: -2rem;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Legal Expert Page Container */
.legal-expert-page {
  max-width: 1480px;
  margin-left: -2rem;
  margin-right: -2rem;
  margin-top: 0;
  margin-bottom: 0;
  padding: 60px 20px;
  font-family: 'Pretendard GOV', 'Pretendard', sans-serif;
  box-sizing: border-box;
}

/* Legal Firm Header */
.legal-firm-header {
  background: linear-gradient(135deg, #001B54 0%, #0369a1 100%);
  border-radius: 20px;
  padding: 50px 60px;
  margin-bottom: 60px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 27, 84, 0.15);
}

.legal-firm-header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 300px;
  height: 300px;
  background-image: url('https://koima.venox.kr/uploads/sub/Frame_644.png');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.3;
  pointer-events: none;
}

.legal-firm-header-content {
  position: relative;
  z-index: 1;
}

/* Logo Section - HORIZONTAL LAYOUT */
.firm-logo-section {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 30px;
  margin-bottom: 30px;
}

/* Logo */
.firm-logo-placeholder {
  width: 150px;
  height: 150px;
  background: white;
  border-radius: 12px;
  object-fit: contain;
  padding: 15px;
  flex-shrink: 0;
}

/* Text Area - Positioned to the right of logo */
.firm-text-area {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 1;
  max-width: 100%;
}

/* Title Row with Website Button */
.firm-title-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.firm-title {
  font-size: 36px;
  font-weight: 700;
  color: white;
  margin: 0;
  line-height: 1.2;
}

/* Website Button */
.firm-website-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.firm-website-btn:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.firm-website-btn svg {
  flex-shrink: 0;
}

.firm-description {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  margin: 0;
}

/* Lawyers Container - 2 columns side by side */
.lawyers-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

/* Single expert layout - when only 1 expert (healthcare page) */
.lawyers-container-single {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 60px;
  min-height: 650px; /* Ensure enough height to push usage section down */
}

.lawyers-container-single .lawyer-card {
  max-width: 100%;
}

/* Lawyer Card - vertical layout */
.lawyer-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: white;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

.lawyer-photo-area {
  width: 100%;
  height: 280px;
  background: #f3f4f6;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.lawyer-photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.lawyer-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.lawyer-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 2px solid #001B54;
}

.lawyer-name {
  font-size: 22px;
  font-weight: 700;
  color: #001B54;
  margin: 0;
}

.lawyer-position {
  font-size: 16px;
  color: #666;
  background: #f3f4f6;
  padding: 6px 14px;
  border-radius: 6px;
}

/* Grid Layout for Two Columns (경력 + 주요업무) */
.lawyer-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

/* Single Column Layout (경력만) */
.lawyer-details-single {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.detail-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detail-title {
  font-size: 20px;
  font-weight: 700;
  color: #222;
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #0369a1;
  display: flex;
  align-items: center;
  min-height: 40px;
}

.detail-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-list li {
  font-size: 16px;
  color: #444;
  line-height: 1.6;
  padding-left: 20px;
  position: relative;
}

.detail-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #0369a1;
  font-weight: bold;
}

/* Lawyer Contact Info */
.lawyer-contact-info {
  background: transparent;
  padding: 20px 24px;
  border-radius: 12px;
  border: 1px solid #d1d5db;
}

.contact-row {
  display: flex;
  gap: 30px;
}

.contact-item {
  display: flex;
  gap: 12px;
  font-size: 16px;
  color: #444;
}

.contact-label {
  font-weight: 600;
  color: #001B54;
}

.contact-value {
  color: #444;
}

.contact-value a {
  color: #0369a1;
  text-decoration: none;
}

.contact-value a:hover {
  text-decoration: underline;
}

/* Service Info Container */
.service-info-container {
  background: white;
  border-radius: 16px;
  padding: 50px;
  margin-bottom: 40px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
  position: relative;
  overflow: visible;
}

.service-section {
  position: relative;
  z-index: 1;
  margin-bottom: 40px;
}

.service-section:last-child {
  margin-bottom: 0;
}

.service-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 130%;
  color: #222222;
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  padding-left: 36px;
  border-bottom: 2px solid #0369a1;
  position: relative;
  z-index: 1;
}

/* 타이틀 앞에 돗트 아이콘 */
.service-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  background-image: url('https://koima.venox.kr/uploads/sub/Frame_644.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.service-content {
  padding: 0;
  position: relative;
  z-index: 1;
}

.service-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-list li {
  font-size: 18px;
  color: #444;
  line-height: 1.6;
  padding-left: 24px;
  position: relative;
}

.service-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #0369a1;
  font-weight: bold;
  font-size: 20px;
}

/* Usage Steps - Card Layout */
.usage-steps {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 0;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  position: relative;
  z-index: 1;
}

.step-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 30px;
  gap: 30px;
  flex: 1;
  height: 182px;
  background: #FFFFFF;
  border: 1px solid #D4D4D4;
  border-radius: 12px;
  position: relative;
}

.step-text-area {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0;
  gap: 10px;
  width: 100%;
  flex: 1;
}

.step-badge {
  font-family: 'Pretendard GOV', 'Pretendard', sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 16px;
  line-height: 100%;
  text-transform: uppercase;
  color: #666666;
  margin: 0;
}

.step-title {
  font-family: 'Pretendard GOV', 'Pretendard', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 24px;
  line-height: 120%;
  color: #222222;
  margin: 0;
}

.step-desc {
  font-family: 'Pretendard GOV', 'Pretendard', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  color: #666666;
  margin: 0;
}

.step-icon-area {
  position: absolute;
  bottom: 30px;
  right: 30px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon {
  font-family: 'Font Awesome 6 Pro';
  font-style: normal;
  font-weight: 400;
  font-size: 30px;
  line-height: 100%;
  color: #34368A;
}

/* Dedicated Contact Box */
.dedicated-contact-box {
  width: 100%;
  max-width: 100%;
  height: 260px;
  background: #2E414D;
  border-radius: 12px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.dedicated-contact-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background-size: 100% 100%;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
  pointer-events: none;
}

/* Dark overlay for better text readability */
.dedicated-contact-bg::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  background: rgba(0, 0, 0, 0.5);
  pointer-events: none;
}

.dedicated-contact-content {
  position: absolute;
  width: calc(100% - 160px);
  max-width: 100%;
  left: 80px;
  right: 80px;
  top: 78px;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  z-index: 2; /* Above the dark overlay */
}

.dedicated-contact-title-area {
  flex-shrink: 0;
}

.dedicated-contact-title {
  font-family: 'Pretendard GOV', 'Pretendard', sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 42px;
  line-height: 100%;
  color: #FFFFFF;
  margin: 0;
}

.dedicated-contact-text {
  font-family: 'Pretendard GOV', 'Pretendard', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 20px;
  line-height: 140%;
  color: #FFFFFF;
  margin: 0;
  flex: 1;
  text-align: right;
  padding-right: 0;
}

.dedicated-contact-text strong {
  font-weight: 700;
}

.dedicated-contact-text a {
  color: #FFFFFF;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.dedicated-contact-text a:hover {
  border-bottom-color: #FFFFFF;
}

/* Responsive Design */
@media (max-width: 1280px) {
  .legal-firm-header {
    padding: 40px 50px;
  }

  .lawyers-container {
    grid-template-columns: 1fr;
  }

  .lawyers-container-single {
    min-height: 550px;
  }

  .lawyer-details-grid {
    grid-template-columns: 1fr;
  }

  .usage-steps {
    gap: 15px;
  }

  .step-card {
    padding: 25px;
  }

  .dedicated-contact-content {
    width: calc(100% - 120px);
    left: 60px;
  }
}

@media (max-width: 1024px) {
  .legal-expert-page {
    padding: 40px 20px;
  }

  .legal-firm-header {
    padding: 35px 40px;
    margin-bottom: 40px;
  }

  .firm-title {
    font-size: 32px;
  }

  .firm-description {
    font-size: 16px;
  }

  .lawyer-card {
    padding: 30px;
  }

  .lawyer-photo-area {
    height: 240px;
  }

  .lawyers-container-single {
    min-height: 450px;
  }

  .service-info-container {
    padding: 40px 30px;
  }

  .usage-steps {
    flex-direction: column;
    gap: 15px;
  }

  .step-card {
    width: 100%;
    height: auto;
    min-height: 160px;
  }

  .dedicated-contact-box {
    height: auto;
    min-height: 260px;
    padding-bottom: 30px;
  }

  .dedicated-contact-content {
    position: relative;
    width: calc(100% - 80px);
    left: 40px;
    top: 40px;
    flex-direction: column;
    gap: 20px;
  }

  .dedicated-contact-title {
    font-size: 36px;
  }

  .dedicated-contact-text {
    font-size: 18px;
  }
}

.expert-tab-btn.active {
    color: #001B54;
    border-bottom-color: #001B54;
    background: rgba(0, 27, 84, 0.08);
  }

  .expert-tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-in;
  }

@media (max-width: 768px) {
  .legal-expert-page {
    padding: 30px 20px;
  }

  .legal-firm-header {
    padding: 30px 25px;
    margin-bottom: 30px;
  }

  /* Logo section - stack vertically on mobile */
  .firm-logo-section {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 20px;
  }

  .firm-logo-placeholder {
    width: 120px;
    height: 120px;
  }

  .firm-text-area {
    max-width: 100%;
  }

  .firm-title {
    font-size: 28px;
  }

  .firm-website-btn {
    font-size: 14px;
    padding: 8px 16px;
  }

  .firm-description {
    font-size: 15px;
  }

  .lawyer-name {
    font-size: 24px;
  }

  .lawyers-container-single {
    min-height: auto;
  }

  .service-info-container {
    padding: 30px 20px;
  }

  .service-title {
    font-size: 24px;
  }

  .service-list li {
    font-size: 16px;
  }

  .step-title {
    font-size: 20px;
  }

  .step-desc {
    font-size: 14px;
  }

  .dedicated-contact-title {
    font-size: 28px;
  }

  .dedicated-contact-text {
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .legal-expert-page {
    padding: 20px 20px;
  }

  .legal-firm-header {
    padding: 25px 20px;
    border-radius: 12px;
  }

  .firm-logo-placeholder {
    width: 100px;
    height: 100px;
    padding: 10px;
  }

  .firm-title {
    font-size: 24px;
  }

  .firm-website-btn {
    font-size: 13px;
    padding: 7px 14px;
  }

  .firm-website-btn svg {
    width: 14px;
    height: 14px;
  }

  .firm-description {
    font-size: 14px;
  }

  .lawyer-card {
    padding: 20px;
  }

  .lawyer-photo-area {
    height: 200px;
  }

  .service-info-container {
    padding: 25px 15px;
  }

  .step-card {
    padding: 20px;
  }

  .step-badge {
    font-size: 14px;
  }

  .step-title {
    font-size: 18px;
  }

  .step-icon {
    font-size: 24px;
  }

  .dedicated-contact-content {
    left: 20px;
    top: 30px;
    width: calc(100% - 40px);
  }

  .dedicated-contact-title {
    font-size: 24px;
  }

  .dedicated-contact-text {
    font-size: 14px;
  }
}



