@charset "utf-8";

/* =========================== 공통 변수 및 기본 설정 */
:root {
    --section-spacing: 120px;
    --inner-spacing: 100px;
    --border-radius: 13px;
    --transition: all 0.3s ease;
    --shadow-light: 0 2px 20px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 30px rgba(0,0,0,0.15);
}

/* =========================== 기본 페이지 설정 */
#certificate1026 {
    overflow: hidden;
    position: relative;
    margin: 100px auto;
    font-size: 15px;
    line-height: 1.5;
    color: #777;
    font-family: 'pretendard';
}

#certificate1026 .pl { white-space: pre-line; }
#certificate1026 * { word-break: keep-all; }
#certificate1026 .inner {
    overflow: hidden;
    max-width: var(--mainsize);
    margin: 0 20px;
    padding: var(--inner-spacing) 0;
}

/* =========================== 섹션 공통 스타일 */
.section-header,
.section-certificates,
.section-conclusion {
    position: relative;
}

/* =========================== 섹션 제목 스타일 */
.section-title {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
}

.section-title h3 {
    margin-bottom: 15px;
    font-size: clamp(18px, 1.8vw, 32px);
    font-weight: 700;
    color: #111;
}

.title-line {
    width: 60px;
    height: 3px;
    background: linear-gradient(45deg, #666, #999);
    margin: 0 auto;
    border-radius: 2px;
}

/* =========================== 헤더 섹션 */
#certificate1026 .tit {
    text-align: center;
    margin-bottom: 50px;
}

#certificate1026 .tit h1 {
    margin-bottom: 50px;
    font-size: clamp(25px, 2.6vw, 50px);
    font-weight: 700;
    color: #111;
}

#certificate1026 .tit img {
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-light);
    position: relative;
}

#certificate1026 .full_txt {
    padding: 100px 0 150px;
}

#certificate1026 h2 {
    position: relative;
    font-size: clamp(20px, 2.08vw, 40px);
    font-weight: 700;
    color: rgba(0,0,0,.3);
    text-align: center;
}

#certificate1026 h2 p {
    display: inline;
    background: linear-gradient(to right, #111, #111) no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    background-size: 0%;
    transition: background-size cubic-bezier(.1,.5,.5,1) 0.5s;
    white-space: pre-line;
}

/* =========================== 인증서 섹션 */
.section-certificates {
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

#certificate1026 .section-desc {
    text-align: center;
    margin-bottom: 50px;
    color: #666;
    font-size: 16px;
    font-style: italic;
}

#certificate1026 .certificates-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 50px;
}

#certificate1026 .certificate-card {
    background: #fff;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
}

#certificate1026 .certificate-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

#certificate1026 .certificate-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

#certificate1026 .certificate-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

#certificate1026 .view-btn {
    background: linear-gradient(45deg, #666, #999);
    color: #fff;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 14px;
    transform: translateY(20px);
    transition: var(--transition);
}

#certificate1026 .certificate-info {
    padding: 30px;
    text-align: center;
}

#certificate1026 .certificate-info h4 {
    font-size: clamp(16px, 1.3vw, 22px);
    font-weight: 700;
    color: #111;
    margin-bottom: 12px;
}

#certificate1026 .certificate-info p {
    color: #777;
    font-size: 14px;
    line-height: 1.6;
}

/* =========================== 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.close {
    position: absolute;
    top: -50px;
    right: 0;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: var(--transition);
}

.close:hover {
    color: #ccc;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* =========================== 마무리 섹션 */
.section-conclusion {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}

.section-conclusion::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../img/sub/certificate_pattern.png') no-repeat center;
    background-size: cover;
    opacity: 0.1;
    z-index: 1;
}

#certificate1026 .conclusion-content {
    text-align: center;
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

#certificate1026 .conclusion-content h3 {
    font-size: clamp(24px, 2.5vw, 42px);
    font-weight: 700;
    margin-bottom: 20px;
    color: #fff;
}

#certificate1026 .conclusion-content p {
    font-size: clamp(16px, 1.5vw, 24px);
    color: rgba(255,255,255,0.9);
    font-weight: 300;
}

/* =========================== 호버 효과 */
@media(hover:hover) {
    #certificate1026 .certificate-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-hover);
    }
    
    #certificate1026 .certificate-card:hover .certificate-image img {
        transform: scale(1.05);
    }
    
    #certificate1026 .certificate-card:hover .certificate-overlay {
        opacity: 1;
    }
    
    #certificate1026 .certificate-card:hover .view-btn {
        transform: translateY(0);
    }
}

/* =========================== 반응형 디자인 */

/* 태블릿 해상도 (1024px 이하) */
@media(max-width: 1024px) {
    :root {
        --section-spacing: 80px;
        --inner-spacing: 60px;
    }
    
    #certificate1026 {
        margin: 50px auto;
    }
    
    #certificate1026 .inner {
        padding: var(--inner-spacing) 30px;
    }
    
    #certificate1026 .tit h1 {
        margin-bottom: 30px;
    }
    
    #certificate1026 .certificates-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .modal-content {
        width: 95%;
    }
    
    .close {
        top: -40px;
        font-size: 35px;
    }
}

/* 모바일 해상도 (700px 이하) */
@media(max-width: 700px) {
    #certificate1026 {
        font-size: 14px;
        margin: 30px auto;
    }
    
    #certificate1026 .inner {
        margin: 0 15px;
        padding: 40px 0;
    }
    
    #certificate1026 .full_txt {
        padding: 150px 0 100px;
    }
    
    #certificate1026 .certificates-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    #certificate1026 .certificate-info {
        padding: 25px 20px;
    }
    
    .section-title {
        margin-bottom: 30px;
    }
    
    .section-title h3 {
        font-size: clamp(20px, 4vw, 28px);
    }
    
    #certificate1026 .tit h1 {
        margin-bottom: 30px;
        font-size: clamp(24px, 5vw, 35px);
    }
    
    #certificate1026 .section-desc {
        font-size: 14px;
        margin-bottom: 30px;
    }
    
    #certificate1026 .conclusion-content {
        padding: 50px 0;
    }
    
    .modal-content {
        width: 98%;
        padding: 20px;
    }
    
    .close {
        top: -30px;
        right: 10px;
        font-size: 30px;
    }
}

/* 작은 모바일 해상도 (480px 이하) */
@media(max-width: 480px) {
    #certificate1026 .inner {
        margin: 0 10px;
        padding: 30px 0;
    }
    
    #certificate1026 .full_txt {
        padding: 100px 0 80px;
    }
    
    #certificate1026 .certificate-info {
        padding: 20px 15px;
    }
    
    #certificate1026 .certificate-info h4 {
        font-size: clamp(15px, 3.5vw, 18px);
    }
    
    #certificate1026 .certificate-info p {
        font-size: 13px;
    }
    
    #certificate1026 .view-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
    
    #certificate1026 .conclusion-content {
        padding: 40px 0;
    }
    
    .close {
        top: -25px;
        right: 5px;
        font-size: 28px;
    }
}

/* 초소형 화면 (360px 이하) */
@media(max-width: 360px) {
    #certificate1026 .inner {
        margin: 0 5px;
    }
    
    #certificate1026 .certificate-info {
        padding: 15px 10px;
    }
    
    .section-title h3 {
        font-size: clamp(18px, 5vw, 24px);
    }
    
    #certificate1026 .certificate-info h4 {
        font-size: clamp(14px, 4vw, 16px);
    }
    
    #certificate1026 .certificate-info p {
        font-size: 12px;
        line-height: 1.4;
    }
    
    #certificate1026 .view-btn {
        padding: 8px 16px;
        font-size: 12px;
    }
}

/* =========================== 추가 개선사항 */

/* 스크롤 애니메이션을 위한 기본 상태 */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* 접근성 개선 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 포커스 상태 개선 */
#certificate1026 .certificate-card:focus {
    outline: 2px solid #666;
    outline-offset: 2px;
}

/* 인쇄 스타일 */
@media print {
    #certificate1026 {
        margin: 0;
        font-size: 12px;
    }
    
    #certificate1026 .inner {
        margin: 0;
        padding: 20px 0;
    }
    
    .section-conclusion {
        background: #fff !important;
        color: #000 !important;
    }
    
    #certificate1026 .certificates-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .modal {
        display: none !important;
    }
    
    .box-shadow {
        box-shadow: none !important;
    }
}