/**
 * Circle Styles
 * 서클 관련 페이지 통합 스타일
 * - 서클 가이드 페이지
 * - 서클 가입 신청 페이지
 */

.circle-guide-container {
    max-width: 800px;
    margin: 0 auto;
}

.guide-info {
    background-color: #f8f9fa;
    padding: 15px 20px;
    margin-bottom: 30px;
    border-radius: 4px;
}

.guide-info h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #020f41;
    font-size: 18px;
}

.guide-info p {
    margin: 8px 0;
    color: #555;
    font-size: 14px;
    line-height: 1.6;
}

.form-title {
    font-size: 24px;
    font-weight: 600;
    color: #020f41;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 2px solid #020f41;
}

.circle-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    gap: 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group label .required {
    color: #d00;
    margin-left: 3px;
}

.form-group select,
.form-group input[type="text"],
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
    box-sizing: border-box;
}

.form-group select:focus,
.form-group input[type="text"]:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #020f41;
    box-shadow: 0 0 5px rgba(2, 15, 65, 0.2);
}

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

.form-group .help-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.form-actions {
    margin-top: 30px;
    padding-top: 30px;
    text-align: center;
    border-top: 2px solid #e0e0e0;
}

.btn-submit {
    background-color: #020f41;
    color: #fff;
    border: none;
    padding: 12px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #1a2f5f;
}

.btn-submit:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.success-message {
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
}

/* 반응형 스타일 */

/* 태블릿 (768px 이하) */
@media (max-width: 768px) {
    .circle-guide-container {
        max-width: 100%;
    }
    
    .guide-info {
        padding: 12px 15px;
        margin-bottom: 20px;
    }
    
    .guide-info h3 {
        font-size: 16px;
    }
    
    .guide-info p {
        font-size: 13px;
        margin: 6px 0;
    }
    
    .form-title {
        font-size: 20px;
        margin-bottom: 20px;
        padding-bottom: 12px;
    }
    
    .circle-form {
        padding: 20px 15px;
    }
    
    .form-section {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .form-actions {
        margin-top: 20px;
        padding-top: 20px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
    
    .form-group label {
        font-size: 13px;
    }
    
    .form-group select,
    .form-group input[type="text"],
    .form-group textarea {
        padding: 10px;
        font-size: 14px;
    }
    
    .form-group textarea {
        min-height: 120px;
    }
    
    .form-actions {
        margin-top: 25px;
    }
    
    .btn-submit {
        padding: 12px 30px;
        font-size: 15px;
        width: 100%;
        max-width: 300px;
    }
    
    .success-message {
        padding: 12px;
        font-size: 14px;
    }
}

/* 모바일 (480px 이하) */
@media (max-width: 480px) {
    .guide-info {
        padding: 10px 12px;
        margin-bottom: 15px;
    }
    
    .guide-info h3 {
        font-size: 15px;
        margin-bottom: 8px;
    }
    
    .guide-info p {
        font-size: 12px;
        margin: 5px 0;
        line-height: 1.5;
    }
    
    .form-title {
        font-size: 18px;
        margin-bottom: 18px;
        padding-bottom: 10px;
    }
    
    .circle-form {
        padding: 15px 10px;
        border-radius: 6px;
    }
    
    .form-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .form-actions {
        margin-top: 15px;
        padding-top: 15px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .form-group select,
    .form-group input[type="text"],
    .form-group textarea {
        padding: 8px;
        font-size: 14px;
        border-radius: 3px;
    }
    
    .form-group textarea {
        min-height: 100px;
    }
    
    .form-group .help-text {
        font-size: 11px;
        margin-top: 4px;
    }
    
    .form-actions {
        margin-top: 20px;
    }
    
    .btn-submit {
        padding: 10px 25px;
        font-size: 14px;
        width: 100%;
        max-width: 100%;
    }
    
    .success-message {
        padding: 10px;
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .circle-tabs-modern {
        flex-direction: row;
        gap: 6px;
    }
    
    .tab-btn {
        flex: 1;
        padding: 10px 8px;
        font-size: 1rem;
    }
    
    .tab-text {
        font-size: 1rem;
    }
}

/* 작은 모바일 (360px 이하) */
@media (max-width: 360px) {
    .guide-info {
        padding: 8px 10px;
    }
    
    .guide-info h3 {
        font-size: 14px;
    }
    
    .guide-info p {
        font-size: 11px;
    }
    
    .form-title {
        font-size: 16px;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }
    
    .circle-form {
        padding: 12px 8px;
    }
    
    .form-group label {
        font-size: 11px;
    }
    
    .form-group select,
    .form-group input[type="text"],
    .form-group textarea {
        padding: 7px;
        font-size: 13px;
    }
    
    .btn-submit {
        padding: 9px 20px;
        font-size: 13px;
    }
}

/* 큰 화면 (1200px 이상) */
@media (min-width: 1200px) {
    .circle-guide-container {
        max-width: 900px;
    }
}

/* ============================================
   서클 가입 신청 페이지 스타일
   ============================================ */

/* 설명 박스 */
.desc-box {
    border: 1px solid #ccc;
    padding: 15px;
    min-height: 100px;
    margin-top: 10px;
    background: #fafafa;
    border-radius: 6px;
}

.hidden {
    display: none;
}

/* 분류 선택 그룹 스타일 */
.category-select-group {
    display: flex;
    gap: 15px;
    align-items: flex-end;
    margin-bottom: 15px;
}

.category-select-item {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.category-select-item label {
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

/* Select 폼 스타일 */
#categorySelect,
#subcategorySelect,
#circleSelect {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    transition: border-color 0.3s ease;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "Noto Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", sans-serif;
    line-height: 1.8;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* 옵션 스타일 - 이모지 표시를 위해 */
#categorySelect option,
#subcategorySelect option,
#circleSelect option {
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji", "Noto Emoji", "EmojiOne Color", "Android Emoji", "Twemoji Mozilla", sans-serif;
    padding: 12px 8px;
    font-size: 16px;
    line-height: 2.2;
    min-height: 35px;
}

#categorySelect:hover,
#subcategorySelect:hover,
#circleSelect:hover {
    border-color: #4CAF50;
}

#categorySelect:focus,
#subcategorySelect:focus,
#circleSelect:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
}

#categorySelect:disabled,
#subcategorySelect:disabled,
#circleSelect:disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.6;
}

/* 로딩 애니메이션 */
.loading {
    text-align: center;
    padding: 20px;
    color: #666;
}

.loading::after {
    content: '...';
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: '.'; }
    40% { content: '..'; }
    60%, 100% { content: '...'; }
}

/* 커스텀 알림 모달 스타일 */
.custom-alert-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.custom-alert-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.custom-alert-modal {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 450px;
    width: 90%;
    padding: 0;
    animation: slideDown 0.3s ease;
    overflow: hidden;
}

.custom-alert-header {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: #fff;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.custom-alert-icon {
    font-size: 28px;
    line-height: 1;
}

.custom-alert-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.custom-alert-body {
    padding: 25px;
}

.custom-alert-message {
    color: #333;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.custom-alert-list {
    background-color: #f8f9fa;
    border-left: 4px solid #ff6b6b;
    padding: 15px 20px;
    margin: 15px 0;
    border-radius: 4px;
}

.custom-alert-list-item {
    color: #555;
    font-size: 14px;
    line-height: 1.8;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-alert-list-item::before {
    content: '•';
    color: #ff6b6b;
    font-weight: bold;
    font-size: 18px;
}

.custom-alert-footer {
    padding: 15px 25px 25px;
    text-align: right;
}

.custom-alert-button {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.custom-alert-button:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.custom-alert-button:active {
    transform: translateY(0);
}

/* 애니메이션 */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* 서클 가이드 레이어 팝업 스타일 */
.circle-guide-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10001;
    animation: fadeIn 0.3s ease;
}

.circle-guide-overlay.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-guide-modal {
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 900px;
    width: 90%;
    max-height: 80vh;
    padding: 0;
    animation: slideDown 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.circle-guide-header {
    background: linear-gradient(135deg, #020f41 0%, #1a2f5f 100%);
    color: #fff;
    padding: 20px 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.circle-guide-title {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.circle-guide-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.circle-guide-close:hover {
    transform: rotate(90deg);
}

.circle-guide-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.circle-guide-iframe {
    width: 100%;
    height: 100%;
    border: none;
    min-height: 500px;
}

/* 커스텀 드롭다운 스타일 */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown-selected {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: border-color 0.3s ease;
    min-height: 42px;
}

.custom-dropdown-selected:hover {
    border-color: #999;
}

.custom-dropdown-selected.disabled {
    background-color: #f5f5f5;
    cursor: not-allowed;
    color: #999;
}

.dropdown-text {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-arrow {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.custom-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.custom-dropdown-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ddd;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-dropdown.active .custom-dropdown-options {
    display: block;
}

.custom-dropdown-option {
    padding: 12px 10px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.custom-dropdown-option:hover {
    background-color: #f5f5f5;
}

.custom-dropdown-option.selected {
    background-color: #e3f2fd;
    font-weight: 600;
}

.custom-dropdown-option img.flag-icon {
    width: 20px;
    height: 15px;
    border: 1px solid #ddd;
    border-radius: 2px;
    object-fit: cover;
    flex-shrink: 0;
}

.custom-dropdown-option .option-emoji {
    font-size: 18px;
    flex-shrink: 0;
}

.custom-dropdown-option .option-text {
    flex: 1;
}

.right-img {
    float: left;
    width: 30%;
    margin: 0 20px 20px 0;
    display: block;
}

/* 이미지 그리드 스타일 */
.image-grid-container {
    margin: 30px 0;
    width: 100%;
}

/* PC/Pad 버전: 가로로 2개씩 배치 */
.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.image-grid .image-item {
    min-height: 200px;
}

.image-item {
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.image-item img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* 반응형 스타일 - 서클 가입 신청 페이지 */
@media (max-width: 768px) {
    .category-select-group {
        flex-direction: column;
        gap: 10px;
    }
    
    .category-select-item {
        width: 100%;
    }
    
    .circle-guide-modal {
        width: 95%;
        max-height: 90vh;
    }
    
    .circle-guide-title {
        font-size: 18px;
    }
    
    .right-img {
        float: none;
        width: 100%;
        max-width: 100%;
        margin: 0 0 16px 0;
    }
    
    /* 모바일: 이미지 그리드를 세로로 1개씩 배치 */
    .image-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .image-grid .image-item {
        min-height: 200px;
    }
    
    .image-item {
        border-radius: 6px;
    }
    
    .image-item img {
        max-width: 100%;
        width: 100%;
        height: auto;
        object-fit: contain;
    }
}

/* 서클 가입 신청 페이지 레이아웃 조정 */
.concon #circleJoinForm .joinContBx {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
}

.concon .cont_box10 {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* 서클 목록 그리드 스타일 */
.circle-list-grid {
    display: grid !important;
    grid-template-columns: repeat(6, 1fr) !important;
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.circle-list-grid li {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    grid-template-columns: none !important;
}

.circle-list-grid li img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 4px;
    margin-bottom: 8px;
    object-fit: cover;
}

.circle-list-grid li span {
    font-size: 13px;
    color: #333;
    margin-top: auto;
    word-break: keep-all;
}

/* 태블릿/모바일 버전 */
/* ============================================
   탭 스타일
   ============================================ */
.circle-tabs {
    margin-bottom: 30px;
}

.circle-tabs::before,
.circle-tabs::after {
    content: "";
    display: block;
    clear: both;
}

.circle-tabs ul.tab_list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

.circle-tabs ul.tab_list li {
    float: left;
    width: 50%;
}

.circle-tabs ul.tab_list li a {
    display: block;
    font-size: 1.1rem;
    border: 1px solid #d7d7d7;
    border-bottom: 1px solid #555;
    padding: 13px 0;
    margin: -1px 0 0 -1px;
    text-align: center;
    text-decoration: none;
    line-height: 1.4;
    font-weight: bold;
    color: #333;
    background: #f8f9fa;
    transition: all 0.3s ease;
}

.circle-tabs ul.tab_list li:first-child a {
    margin-left: 0;
}

.circle-tabs ul.tab_list li a:hover {
    position: relative;
    color: #fff;
    background: #555;
    border: 1px solid #555;
}

.circle-tabs ul.tab_list li a.active {
    position: relative;
    color: #fff;
    background: #555;
    border: 1px solid #555;
    z-index: 1;
}

.circle-tabs ul.tab_list li a:focus {
    text-decoration: none;
    outline: none;
}

/* 탭 컨텐츠 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

@media (max-width: 768px) {
    .circle-list-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 12px;
    }
    
    .circle-list-grid li span {
        font-size: 12px;
    }
    
    .circle-tabs ul.tab_list li a {
        font-size: 1rem;
        padding: 10px 0;
    }
}

/* ============================================
   개선된 서클 가입 페이지 스타일 (circle_join_new1.php)
   ============================================ */

/* 메인 컨텐츠 래퍼 */
.circle-content-wrapper {
    display: flex;
    gap: 30px;
    margin-top: 0;
    align-items: flex-start;
}

/* 왼쪽 사이드바 */
.circle-sidebar {
    flex: 0 0 250px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
    padding: 0 20px 15px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 15px;
}

.sidebar-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #020f41;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin: 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: #555;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.sidebar-nav a:hover {
    background: #e8f0fe;
    color: #020f41;
    border-left-color: #020f41;
}

.sidebar-nav a.active {
    background: #e8f0fe;
    color: #020f41;
    font-weight: 600;
    border-left-color: #020f41;
}

.nav-icon {
    margin-right: 10px;
    font-size: 1.1rem;
    width: 20px;
    text-align: center;
}

.nav-text {
    flex: 1;
}

/* 오른쪽 메인 컨텐츠 */
.circle-main-content {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* 개선된 탭 메뉴 */
.circle-tabs-modern {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
}

.tab-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 20px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #666;
    font-size: 1.3rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn:hover {
    color: #020f41;
    background: #f8f9fa;
}

.tab-btn.active {
    color: #020f41;
    border-bottom-color: #020f41;
    font-weight: 600;
}

.tab-text {
    font-size: 1.3rem;
    font-weight: inherit;
}

/* 탭 컨텐츠 */
.tab-content-modern {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content-modern.active {
    display: block;
}

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

/* 안내 섹션 */
.guide-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.guide-section {
    margin-top: 10px;
    background: #f8f9fa;
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #020f41;
}

.guide-section:first-child {
    margin-top: 0;
}

.guide-section-view {
    padding: 0;
}

.guide-section-view h3 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    color: #020f41;
    font-weight: 600;
}

.guide-section-view p {
    margin: 10px 0;
    line-height: 1.8;
    color: #555;
    font-size: 1rem;
}

.guide-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.guide-section h3 {
    margin: 0 0 15px 0;
    font-size: 1.3rem;
    color: #020f41;
    font-weight: 600;
}

.guide-section p {
    margin: 10px 0;
    line-height: 1.8;
    color: #555;
    font-size: 1rem;
}

/* tbox와 bcon 스타일 통일 - 모든 곳에서 동일한 행간 적용 */
.guide-section #supervisor .tbox,
.guide-section-view #supervisor .tbox {
    font-size: 1rem !important;
    line-height: 1.8 !important;
}

.guide-section #supervisor .tbox .bcon,
.guide-section #supervisor .tbox p,
.guide-section-view #supervisor .tbox .bcon,
.guide-section-view #supervisor .tbox p {
    font-size: 1rem !important;
    line-height: 1.8 !important;
}

.guide-section #supervisor .tbox .bcon b,
.guide-section #supervisor .tbox .bcon strong,
.guide-section #supervisor .tbox p b,
.guide-section #supervisor .tbox p strong,
.guide-section-view #supervisor .tbox .bcon b,
.guide-section-view #supervisor .tbox .bcon strong,
.guide-section-view #supervisor .tbox p b,
.guide-section-view #supervisor .tbox p strong {
    font-size: 1rem !important;
    font-weight: 600;
    line-height: 1.8 !important;
}

/* 개선된 서클 목록 */
.circle-list-modern {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.circle-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.circle-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.circle-card-image {
    width: 100%;
    height: auto;
    overflow: hidden;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.circle-card-image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

.circle-card-title {
    padding: 15px;
    text-align: center;
    font-weight: 600;
    color: #020f41;
}

/* 개선된 폼 스타일 */
.join-form-modern {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    padding: 25px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 30px;
    border: 1px solid #e0e0e0;
}

.form-section:last-of-type {
    margin-bottom: 0;
}

.form-section-input {
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.form-section-title {
    margin: 0 0 20px 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #020f41;
    padding-bottom: 10px;
    border-bottom: 2px solid #020f41;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

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

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-value {
    padding: 12px 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #555;
}

.form-select-modern {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #333;
    transition: border-color 0.3s ease;
}

.form-select-modern:focus {
    outline: none;
    border-color: #020f41;
    box-shadow: 0 0 0 3px rgba(2, 15, 65, 0.1);
}

.form-select-modern:disabled {
    background: #f5f5f5;
    color: #999;
    cursor: not-allowed;
}

.circle-description {
    margin-top: 15px;
    padding: 15px;
    background: #fff;
    border-left: 4px solid #020f41;
    border-radius: 4px;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 3px;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checkbox-text {
    flex: 1;
    line-height: 1.6;
    color: #555;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.btn-primary {
    padding: 15px 40px;
    background: linear-gradient(135deg, #020f41 0%, #042a6b 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.btn-primary:active {
    transform: translateY(0);
}

.form-result {
    margin-top: 20px;
    padding: 15px;
    border-radius: 4px;
    text-align: center;
}

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

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

/* 가벼운 설명 영역 스타일 - 영역 구분 UI */
.thought-intro {
    padding: 0 0 20px 0;
    margin-bottom: 30px;
    border-bottom: 1px solid #e0e0e0;
    color: #555;
    line-height: 1.8;
}

.thought-intro p {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.thought-intro p:first-child {
    margin-top: 0;
}

.thought-intro p:last-child {
    margin-bottom: 0;
}

.thought-intro strong {
    color: #333;
    font-weight: 600;
}

/* curriculum.php 세부분류 메뉴 스타일 - PC/Pad는 가로 3개, Mobile은 세로 배치 */
.curriculum-ft3menu ul {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px;
    flex-direction: row !important;
}

.curriculum-ft3menu li,
.curriculum-ft3menu.onetab li,
.curriculum-ft3menu.twotab li,
.curriculum-ft3menu.fourtab li {
    flex: 1 1 calc(33.333% - 10px) !important;
    min-width: 180px !important;
    width: auto !important;
}

/* Pad 버전 (1280px 이하) - 여전히 3개 배치 */
@media (max-width: 1280px) {
    .curriculum-ft3menu li,
    .curriculum-ft3menu.onetab li,
    .curriculum-ft3menu.twotab li,
    .curriculum-ft3menu.fourtab li {
        flex: 1 1 calc(33.333% - 10px) !important;
        min-width: 160px !important;
        width: auto !important;
    }
}

/* Pad 중간 크기 (960px 이하) - 여전히 3개 배치 유지 */
@media (max-width: 960px) {
    .curriculum-ft3menu ul {
        flex-direction: row !important;
        gap: 10px !important;
    }
    
    .curriculum-ft3menu li,
    .curriculum-ft3menu.onetab li,
    .curriculum-ft3menu.twotab li {
        flex: 1 1 calc(33.333% - 10px) !important;
        min-width: 140px !important;
        width: auto !important;
    }
}

/* Mobile에서는 세로 배치 */
@media (max-width: 768px) {
    .curriculum-ft3menu ul {
        flex-direction: column !important;
    }
    
    .curriculum-ft3menu li,
    .curriculum-ft3menu.onetab li,
    .curriculum-ft3menu.twotab li {
        flex: 1 1 100% !important;
        min-width: 0 !important;
        width: 100% !important;
    }
}


/* 반응형 디자인 */
@media (max-width: 768px) {
    .circle-content-wrapper {
        flex-direction: column;
        gap: 20px;
    }
    
    .circle-sidebar {
        flex: 1;
        width: 100%;
    }
    
    .circle-main-content {
        padding: 20px;
    }
    
    .circle-tabs-modern {
        flex-direction: row;
        gap: 8px;
    }
    
    .tab-btn {
        flex: 1;
        padding: 12px 10px;
        font-size: 1.1rem;
    }
    
    .tab-text {
        font-size: 1.1rem;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .circle-list-modern {
        grid-template-columns: 1fr;
    }
}

