/* 페이지 타이틀 섹션 */
.page-title {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding: 120px 0;
  color: #fff;
  text-align: center;
  position: relative;
}

.page-title::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(26,58,109,0.8), rgba(42,82,152,0.8));
}

.page-title .container {
  position: relative;
  z-index: 1;
}

.page-title h1 {
  font-size: 3rem;
  margin-bottom: 1rem;
  font-weight: 700;
}

.page-title p {
  font-size: 1.4rem;
  opacity: 0.9;
}

/* 주요 제휴사 섹션 */
.main-partners {
  padding: 80px 0;
  background: #fff;
}

.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-title .subtitle {
  display: block;
  font-size: 1.2rem;
  color: #666;
  margin-top: 10px;
  font-weight: normal;
  word-break: keep-all;
  word-wrap: break-word;
}

.partners-grid {
  max-width: 1200px;
  margin: 0 auto;
}

.partner-card {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
  background: #fff;
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.1);
  margin-bottom: 30px;
}

.partner-card.featured {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border: 2px solid #2a5298;
}

.partner-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.partner-logo img {
  max-width: 100%;
  height: auto;
}

.partner-info h3 {
  font-size: 2rem;
  color: #1a3a6d;
  margin-bottom: 15px;
}

.partner-type {
  font-size: 1.2rem;
  color: #2a5298;
  margin-bottom: 20px;
}

.description {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 30px;
}

.service-list {
  list-style: none;
  padding: 0;
}

.service-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  color: #444;
}

.service-list i {
  color: #2a5298;
}

/* 분야별 제휴사 섹션 */
.partner-categories {
  padding: 80px 0;
  background: #f8f9fa;
}

.category-tabs {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 50px;
}

.tab-button {
  padding: 12px 25px;
  border: none;
  border-radius: 30px;
  background: #fff;
  color: #555;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-button.active {
  background: #2a5298;
  color: #fff;
}

.partners-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.partner-item {
  background: #fff;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

.partner-item:hover {
  transform: translateY(-5px);
}

.partner-item .partner-logo {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
}

.partner-details h3 {
  font-size: 1.3rem;
  color: #1a3a6d;
  margin-bottom: 10px;
}

.partner-details p {
  color: #666;
}

/* 제휴 문의 섹션 */
.partner-inquiry {
  padding: 100px 0;
  background: linear-gradient(135deg, #1a3a6d 0%, #2a5298 100%);
  color: #fff;
  text-align: center;
}

.inquiry-content h2 {
  font-size: 2.4rem;
  margin-bottom: 20px;
}

.inquiry-content p {
  font-size: 1.2rem;
  margin-bottom: 40px;
  opacity: 0.9;
}

.inquiry-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
}

.inquiry-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
}

.inquiry-button:not(.outline) {
  background: #fff;
  color: #2a5298;
}

.inquiry-button.outline {
  border: 2px solid #fff;
  color: #fff;
}

/* 제휴 제안 모달 스타일 */
.partner-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 20px;
}

.partner-modal.active {
  display: flex;
}

.modal-content {
  background: #fff;
  width: 100%;
  max-width: 600px;
  border-radius: 20px;
  position: relative;
  padding: 40px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #777;
  cursor: pointer;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #333;
}

.modal-title {
  font-size: 1.8rem;
  color: #1a3a6d;
  margin-bottom: 30px;
  text-align: center;
}

.partner-form-group {
  margin-bottom: 20px;
}

.partner-form-group label {
  display: block;
  font-size: 1rem;
  color: #444;
  margin-bottom: 8px;
}

.partner-form-group .required:after {
  content: '*';
  color: #e74c3c;
  margin-left: 3px;
}

.partner-form-group input,
.partner-form-group select,
.partner-form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.partner-form-group input:focus,
.partner-form-group select:focus,
.partner-form-group textarea:focus {
  border-color: #2a5298;
  outline: none;
}

.partner-form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.partner-form-button {
  background: #2a5298;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 1.1rem;
  cursor: pointer;
  width: 100%;
  margin-top: 20px;
  transition: background 0.3s ease;
}

.partner-form-button:hover {
  background: #1a3a6d;
}

.partner-form-message {
  display: none;
  padding: 15px;
  border-radius: 8px;
  margin-top: 20px;
  text-align: center;
}

.partner-form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.partner-form-message.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

/* 반응형 디자인 */
@media (max-width: 1024px) {
  .partner-card {
      grid-template-columns: 1fr;
      text-align: center;
  }

  .service-list {
      display: inline-block;
      text-align: left;
  }
}

@media (max-width: 768px) {
  .page-title {
      padding: 80px 0;
  }

  .page-title h1 {
      font-size: 2.2rem;
  }

  .category-tabs {
      flex-wrap: wrap;
  }

  .partner-item {
      padding: 20px;
  }

  .inquiry-buttons {
      flex-direction: column;
  }

  .modal-content {
    padding: 30px 20px;
  }

  .modal-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }

  .partner-form-group label {
    font-size: 0.95rem;
  }

  .partner-form-group input,
  .partner-form-group select,
  .partner-form-group textarea {
    padding: 10px 12px;
  }

  .partner-form-button {
    padding: 12px 16px;
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  .partner-info h3 {
      font-size: 1.6rem;
  }

  .partner-type {
      font-size: 1.1rem;
  }

  .description {
      font-size: 1rem;
  }

  .modal-content {
    padding: 25px 15px;
  }

  .modal-title {
    font-size: 1.4rem;
  }
}
