/* CI 페이지 스타일 */
.ci-content {
    min-height: auto; /* 자동 높이로 변경 */
    min-width: 922px;
    padding-top: 40px;
    padding-bottom: 40px; /* 하단 여백 추가하되 적절히 */
}

.ci-content .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* CI 헤더 */
.ci-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

/* ci 페이지 전용 스타일 */
.ci-content .sub__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #6b53d3;
}

.ci-content .sub__header .sub__title {
    border-bottom: none;
    letter-spacing: -0.6px !important;
    font-size: 24px !important;
}

.ci-download-btn {
    background-color: #6b53d3;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.ci-download-btn:hover {
    background-color: #6b53d3;
}

/* CI 설명 섹션 */
.ci-description-section {
    margin-bottom: 2rem; /* 여백 줄임 */
    text-align: left;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem; /* 여백 줄임 */
    border-bottom: 2px solid #536492;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.ci-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    max-width: 800px;
    margin: 0 auto 1rem auto; /* 하단 여백 추가 */
}

/* 로고 섹션 */
.logo-section {
    margin-top: 1.5rem; /* 상단 여백 줄임 */
}

.logo-item-single {
    margin-bottom: 2rem; /* 여백 줄임 */
    text-align: center;
}

.logo-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: left;
}

.logo-image-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin: 0 auto;
}

.logo-image {
    width: auto;
    height: auto;
    object-fit: contain;
    margin-left: 4rem;
}

/* 반응형 디자인 */
@media (max-width: 1200px) {
    .ci-content .container {
        padding: 0 1.5rem;
    }
}

@media (max-width: 768px) {
    .ci-content {
        min-height: 400px;
        padding-top: 0px;
    }
    
    .ci-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .ci-download-btn {
        align-self: flex-end;
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .ci-description {
        font-size: 1rem;
    }
    
    .logo-title {
        font-size: 1.1rem;
    }
    
    .logo-item-single {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .ci-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .ci-download-btn {
        align-self: stretch;
        text-align: center;
        font-size: 0.85rem;
        padding: 0.5rem 1rem;
    }
    
    .logo-title {
        font-size: 1rem;
    }
}

/* 모바일 반응형 스타일 */
@media (max-width: 768px) {
    .ci-content {
        min-width: auto;
        width: 100%;
        min-height: auto; /* 자동 높이로 변경 */
        padding-bottom: 30px; /* 푸터 공간 더 줄임 */
    }
    
    .ci-content .container {
        padding: 0 10px;
        max-width: 100%;
        max-height: none;
        overflow-x: hidden;
        overflow-y: visible;
        padding-bottom: 20px;
    }
    
    /* 헤더 */
    .ci-content .sub__header {
        align-items: flex-start;
        margin-bottom: 1rem; /* 헤더 하단 여백 줄임 */
    }
    
    .ci-content .sub__title {
        font-size: 24px;
    }
    
    .admin-actions {
        text-align: right;
    }
    
    .ci-download-btn {
        font-size: 14px;
        padding: 12px 20px;
        width: auto;
        display: inline-block;
    }
    
    /* CI 설명 섹션 */
    .ci-description-section {
        margin-bottom: 20px; /* 여백 더 줄임 */
    }
    
    .section-title {
        font-size: 18px;
        margin-bottom: 10px; /* 여백 줄임 */
    }
    
    .ci-description {
        font-size: 14px;
        line-height: 1.6;
        text-align: left;
        margin-bottom: 10px; /* 문단 간 여백 추가 */
    }
    
    /* 로고 섹션 가로 잘림 방지 */
    .logo-section {
        margin-top: 20px; /* 상단 여백 줄임 */
        margin-bottom: 20px; /* 하단 여백 줄임 */
    }
    
    .logo-item-single {
        margin-bottom: 20px; /* 로고 아이템 간 여백 줄임 */
    }
    
    .logo-image {
        max-width: 123%; /* 이미지 크기 제한 */
        height: auto;
        margin-left: 2rem; /* 마진 줄임 */
        transform: scale(0.7); /* 배율 70%로 축소 */
        transform-origin: left center; /* 왼쪽 기준으로 축소 */
    }
}

/* 매우 작은 화면 (480px 이하) */
@media (max-width: 480px) {
    .ci-content {
        min-height: auto; /* 자동 높이로 변경 */
        padding-bottom: 20px; /* 푸터 공간 더 줄임 */
    }
    
    .ci-content .sub__header {
        align-items: center;
        gap: 10px;
        margin-bottom: 15px; /* 헤더 하단 여백 줄임 */
    }
    
    .ci-content .sub__title {
        font-size: 20px;
        flex: 1;
    }
    
    .admin-actions {
        flex-shrink: 0;
    }
    
    .ci-download-btn {
        font-size: 13px;
        padding: 10px 16px;
        text-align: center;
    }
    
    .section-title {
        font-size: 16px;
        margin-bottom: 8px; /* 여백 줄임 */
    }
    
    .ci-description {
        font-size: 13px;
        margin-bottom: 8px; /* 문단 간 여백 줄임 */
    }
    
    /* 로고 섹션 */
    .logo-section {
        margin-top: 15px;
        margin-bottom: 15px; /* 하단 여백 더 줄임 */
    }
    
    .logo-item-single {
        margin-bottom: 15px; /* 로고 아이템 간 여백 줄임 */
    }
    
    .logo-image {
        max-width: 123%; /* 작은 화면에서 이미지 더 작게 */
        margin-left: 1rem; /* 마진 더 줄임 */
        transform: scale(0.7); /* 배율 70%로 축소 */
        transform-origin: left center; /* 왼쪽 기준으로 축소 */
    }
}