/* 기본 스타일 (메인페이지 스타일과 동일) */
html, body {
    font-family: 'Noto Sans KR', sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--background-color, #f5eedd);
    color: var(--text-color, #333);
    scroll-behavior: smooth;
  }
  
  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  
  /* 헤더 및 로고 */
  .header-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--primary-color);
  }
  
  /* 교육기관 소개 영역 */
  .academy-intro {
    background-color: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .academy-intro i {
    font-size: 48px;
    color: var(--primary-color);
    background-color: rgba(26, 92, 66, 0.1);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .intro-text h2 {
    margin: 0 0 10px 0;
    color: var(--primary-color);
  }
  
  .intro-text p {
    margin: 0;
    color: #666;
    line-height: 1.5;
  }
  
  /* 교육기관 그리드 */
  .academies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
  }
  
  /* 교육기관 카드 */
  .academy-card {
    background-color: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
    cursor: pointer;
  }
  
  .academy-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  }
  
  .academy-image-container {
    height: 200px;
    overflow: hidden;
    position: relative;
    background-color: #f5f5f5;
  }
  
  .academy-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s;
    padding: 20px;
  }
  
  .academy-card:hover .academy-image {
    transform: scale(1.05);
  }
  
  .academy-info {
    padding: 20px;
  }
  
  .academy-name {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--primary-color);
  }
  
  .academy-stats {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
  }
  
  .academy-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #f9f9f9;
    padding: 10px 15px;
    border-radius: 8px;
    flex: 1;
  }
  
  .stat-value {
    font-size: 20px;
    font-weight: 700;
    color: var(--secondary-color);
  }
  
  .stat-label {
    font-size: 13px;
    color: #666;
  }
  
  .academy-description {
    line-height: 1.5;
    color: #555;
    margin-bottom: 15px;
  }
  
  .academy-buttons {
    display: flex;
    gap: 10px;
  }
  
  .academy-btn {
    padding: 10px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    font-size: 14px;
    font-weight: 500;
  }
  
  .primary-btn {
    background-color: var(--primary-color);
    color: white;
  }
  
  .primary-btn:hover {
    background-color: var(--secondary-color);
  }
  
  .secondary-btn {
    background-color: #f0f0f0;
    color: #333;
  }
  
  .secondary-btn:hover {
    background-color: #e0e0e0;
  }
  
  /* 로딩 표시 */
  .loading {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 50px;
    color: #666;
  }
  
  .loading i {
    font-size: 40px;
    margin-bottom: 15px;
    color: var(--secondary-color);
  }
  
  /* 교육기관 모달 */
  .academy-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(3px);
  }
  
  .academy-modal.show {
    display: flex !important;
  }
  
  .academy-modal-content {
    position: relative;
    background-color: white;
    margin: 5% auto;
    padding: 0;
    width: 90%;
    max-width: 900px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    animation: modalopen 0.3s;
    overflow: hidden;
    z-index: 2001;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
  }
  
  @keyframes modalopen {
    from {opacity: 0; transform: translateY(-30px);}
    to {opacity: 1; transform: translateY(0);}
  }
  
  .close-academy-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 20px;
    background-color: rgba(255, 255, 255, 0.8);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
  }
  
  .close-academy-modal:hover {
    background-color: #f0f0f0;
    transform: rotate(90deg);
  }
  
  .academy-modal-body {
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    flex: 1;
  }
  
  .academy-modal-body::-webkit-scrollbar {
    width: 0;
    height: 0;
    display: none;
  }
  
  .academy-modal-header {
    position: relative;
    height: 250px;
    overflow: hidden;
    background-color: #f5f5f5;
  }
  
  .academy-modal-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
  }
  
  .academy-modal-info {
    padding: 30px;
  }
  
  .academy-modal-name {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 15px;
    color: var(--primary-color);
  }
  
  .academy-modal-description {
    margin-bottom: 20px;
    line-height: 1.6;
    color: #444;
  }
  
  .academy-modal-link {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    transition: all 0.2s;
  }
  
  .academy-modal-link:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
  }
  
  .academy-modal-link i {
    color: var(--secondary-color);
    font-size: 20px;
  }
  
  .academy-modal-link a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
  }
  
  .academy-modal-link a:hover {
    color: var(--secondary-color);
  }
  
  /* 교육기관 소속 선수 목록 */
  .academy-modal-students-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color);
  }
  
  .students-count {
    font-size: 15px;
    background-color: #f0f0f0;
    padding: 3px 10px;
    border-radius: 20px;
    color: #666;
    font-weight: normal;
  }
  
  .academy-modal-students {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
  }
  
  .student-card {
    background-color: #f9f9f9;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s;
    cursor: pointer;
    border: 1px solid #eee;
  }
  
  .student-card:hover {
    background-color: #f0f0f0;
    transform: translateY(-3px);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  }
  
  .student-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #eee;
    border: 2px solid #ddd;
  }
  
  .student-info {
    flex: 1;
  }
  
  .student-name {
    font-weight: 600;
    font-size: 16px;
    margin-bottom: 5px;
    color: #333;
  }
  
  .student-position {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    color: white;
    font-weight: 500;
  }
  
  .role-badge {
    display: inline-block;
    margin-left: 5px;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 11px;
    color: white;
  }
  
  .role-badge.student {
    background-color: #1976d2;
  }
  
  .role-badge.teacher {
    background-color: #d32f2f;
  }
  
  .role-badge.교장 {
    background-color: #ff8f00;
  }
  
  .role-badge.강사 {
    background-color: #d32f2f;
  }
  
  .role-badge.학생 {
    background-color: #1976d2;
  }
  
  /* 포지션 색상 */
  .student-position.ST,
  .student-position.WF {
    background-color: #d32f2f;
  }
  
  .student-position.CM,
  .student-position.CDM {
    background-color: #388e3c;
  }
  
  .student-position.FB,
  .student-position.CB {
    background-color: #1976d2;
  }
  
  .student-position.GK {
    background-color: #ff8f00;
  }
  
  .academy-modal-actions {
    padding: 0 30px 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
  }
  
  .academy-modal-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
    min-width: 180px;
    justify-content: center;
    font-size: 16px;
  }
  
  .primary-modal-btn {
    background-color: var(--primary-color);
    color: white;
  }
  
  .primary-modal-btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-2px);
  }
  
  .secondary-modal-btn {
    background-color: #f0f0f0;
    color: #333;
  }
  
  .secondary-modal-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-2px);
  }
  
  /* 교육기관별 테마 색상 */
  .academy-card.진카데미 {
    border-top: 5px solid #388e3c;
  }
  
  .academy-card.두치원 {
    border-top: 5px solid #1976d2;
  }
  
  .academy-card.천치원 {
    border-top: 5px solid #d32f2f;
  }
  
  /* 반응형 디자인 */
  @media (max-width: 768px) {
    .academies-grid {
      grid-template-columns: 1fr;
    }
    
    .academy-intro {
      flex-direction: column;
      text-align: center;
      padding: 20px;
    }
    
    .academy-modal-students {
      grid-template-columns: 1fr;
    }
    
    .academy-modal-actions {
      flex-direction: column;
      align-items: center;
    }
  }
  
  @media (max-width: 480px) {
    .academy-stats {
      flex-direction: column;
    }
    
    .academy-buttons {
      flex-direction: column;
    }
  }