/* ======================================================== */
/* 전체 레이아웃 및 제목 스타일 (기존 #outline-container -> #curriculum-container) */
/* ======================================================== */
#curriculum-container {
    width: 100%;
    text-align: left;
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
    padding: 3em;
    box-sizing: border-box;
}

#curriculum-title { /* HTML에서 outline-title -> curriculum-title로 변경되었으므로 반영 */
    text-align: center;
    margin-top: 2em;
    margin-bottom: 2em;
}

#curriculum-title h1 { /* HTML에서 outline-title -> curriculum-title로 변경되었으므로 반영 */
    font-size: 3em;
    font-weight: 700;
    color: #f0f0f0;
    letter-spacing: -0.03em;
}

/* Curriculum Section 내 h4 제목 스타일 */
#curriculum-content h4 { /* #curriculum-container h4 대신 #curriculum-content h4가 더 정확 */
    font-size: 1.8em;
    color: #a0d0ff; /* 섹션 제목 강조 */
    margin-top: 1em; /* 각 섹션 제목 위 여백 */
    margin-bottom: 1.5em; /* 각 섹션 제목 아래 여백 */
    text-align: left;
}

/* ======================================================== */
/* 3열 카드 그리드 (Skill Icon Area 바로 아래 그리드 부분) */
/* ======================================================== */
.grid-3-col {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* 최소 280px, 최대 1fr로 자동 조정 */
    gap: 30px;
    text-align: left; /* 카드 내부 텍스트 왼쪽 정렬 */
    max-width: 1200px; /* 그리드 최대 너비 제한 */
    margin: 0 auto; /* 그리드 자체 중앙 정렬 */
}

/* 카드 기본 스타일 */
.card {
    background: #262626;
    padding: 25px; /* 패딩 조정 */
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    display: flex; /* 내부 콘텐츠 정렬을 위해 flexbox 사용 */
    flex-direction: column; /* 세로 방향 정렬 */
    height: 100%; /* 그리드 셀 높이에 맞추기 */
}

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

.card h5 {
    font-size: 1.3em;
    color: #a0d0ff; /* 제목 색상 강조 */
    margin-bottom: 1em;
}

.card p {
    font-size: 0.95em;
    line-height: 1.6;
    flex-grow: 1; /* p 태그가 남은 공간을 차지하여 콘텐츠 길이가 달라도 하단 정렬을 도움 */
}

/* 프로젝트 상세 영역 (HTML에 .project-details 클래스 사용 안 함, CSS 규칙은 유지) */
/* 만약 이 영역을 사용하지 않는다면 제거 가능 */
.project-details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; /* 카드 중앙 정렬 */
    gap: 30px;
    max-width: 900px; /* 프로젝트 카드 영역 너비 제한 */
    margin: 0 auto; /* 프로젝트 상세 영역 중앙 정렬 */
}

/* 프로젝트 카드 (HTML에 .project-card 클래스 사용 안 함, CSS 규칙은 유지) */
/* 만약 이 영역을 사용하지 않는다면 제거 가능 */
.project-card {
    background: #262626;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    width: 100%; /* 기본 100% (모바일), 큰 화면에서는 flex-basis로 조정 */
    max-width: 600px; /* 최대 너비 제한 */
    box-sizing: border-box; /* 패딩이 너비에 포함되도록 */
}

.project-card h5 {
    font-size: 1.2em;
    color: #a0d0ff;
    margin-bottom: 1em;
}

.project-card h6 {
    font-size: 1.1em;
    color: #f0f0f0;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}

.project-card p {
    font-size: 0.95em;
    line-height: 1.6;
    margin-top: 1em;
}


/* styled-list (체크 마크 리스트) */
ul.styled-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

ul.styled-list li {
    margin-bottom: 0.8em; /* 리스트 항목 간 여백 */
    padding-left: 30px; /* 체크 마크 공간 확보 */
    position: relative;
    font-size: 0.95em;
    line-height: 1.5;
}

ul.styled-list li::before {
    content: '✔️'; /* 체크 마크 유니코드 */
    position: absolute;
    left: 0;
    color: #27ae60; /* 녹색 체크 마크 */
    font-size: 1.1em;
    top: 0; /* 텍스트와 정렬 */
}

/* fade-in 애니메이션 */
/* HTML에 .card 또는 .project-card에만 fade-in-up 클래스가 붙으므로 이 부분은 유지 */
.card,
.project-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.card.fade-in-up,
.project-card.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}


/* ======================================================== */
/* Skill Icon Area (하단 아이콘 섹션) */
/* ======================================================== */
#skill-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 100px; /* 다른 콘텐츠와 충분히 떨어지도록 큰 마진 */
    padding-bottom: 50px; /* 섹션 하단 여백 */
    width: 100%; /* 부모 너비 가득 채움 */
    box-sizing: border-box;
}

.icon-area {
    position: relative;
    width: 100%; /* 부모 요소의 100% 사용 */
    max-width: 1000px; /* 아이콘 영역의 최대 너비 */
    height: 320px;
    border-radius: 24px;
    backdrop-filter: blur(20px); /* 블러 효과는 유지 */
    overflow: visible;
    margin: 0 auto; /* 아이콘 영역 자체를 중앙 정렬 */
}

.icon {
    position: absolute;
    width: 64px;
    height: 64px;
    background: #222;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
            0 0 12px rgba(0, 255, 255, 0.3),
            0 0 20px rgba(0, 255, 255, 0.2);
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
    z-index: 1;
    /* 아이콘 위치는 JavaScript나 추가 CSS로 동적으로 배치 필요 */
}

.icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.icon:hover {
    transform: scale(1.1);
    z-index: 99;
}

/* ======================================================== */
/* IBM 커리큘럼 상세 (Accordion/Details 태그 부분) */
/* ======================================================== */
#curri-section { /* HTML에서 id="curri-section"으로 사용되므로 유지 */
    width: 100%;
    text-align: left;
    margin-top: 40px;
    box-sizing: border-box;
}

#curri-section h2 { /* HTML에서 #curri-section 내에 h2 없음, 이 규칙은 불필요할 수 있음 */
    font-size: 2.2em;
    color: #a0d0ff;
    margin-bottom: 1.5em;
    text-align: center;
}

.curri-item {
    background-color: #1a1a1a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.curri-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.curri-item summary {
    font-size: 1.3em;
    font-weight: bold;
    color: #f0f0f0;
    padding: 20px 25px;
    cursor: pointer;
    outline: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background-color 0.3s ease;
}

.curri-item summary:hover {
    background-color: #222;
}

.curri-item summary::-webkit-details-marker,
.curri-item summary::marker {
    display: none;
}

.curri-item summary::after {
    content: '▶';
    font-size: 0.8em;
    color: #a0d0ff;
    transition: transform 0.2s ease-in-out;
    margin-left: 15px;
}

.curri-item[open] summary {
    background-color: #2a2a2a;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.curri-item[open] summary::after {
    content: '▼';
    transform: rotate(0deg);
}

/* JavaScript가 .open-answer 클래스를 추가했을 때의 스타일 */
.curri-answer {
    padding: 0 25px;
    font-size: 1.1em;
    line-height: 1.6;
    color: #bbb;
    overflow: hidden;
    height: 0;
    opacity: 0;
    transition: height 0.5s ease-out, opacity 0.5s ease-out, padding 0.5s ease-out;
}

.curri-answer.open-answer {
    opacity: 1;
    padding: 15px 25px 25px 25px;
}

/* curri-answer 내부 디자인 */
.curri-answer .curri-section { /* curri-answer 내부에 있는 curri-section 선택자 강화 */
    background-color: #1c1c1c; /* 각 섹션 배경색 */
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px; /* 각 섹션 간 간격 */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.curri-answer .curri-section:last-child {
    margin-bottom: 0;
}

.curri-answer .curri-section h3 {
    font-size: 1.4em;
    color: #a0d0ff;
    margin-top: 0;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 1px dashed rgba(160, 208, 255, 0.3);
}

.curri-answer .curri-section p {
    font-size: 0.95em;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 0;
}
.curri-answer p:last-child {
    margin-bottom: 0;
} /* curri-answer p:last-child 규칙은 .curri-answer .curri-section p에 적용될 수 있으므로 주의 */


.curri-answer .curri-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.curri-answer .curri-section ul li {
    font-size: 0.95em;
    line-height: 1.6;
    color: #e0e0e0;
    margin-bottom: 8px;
    padding-left: 1.5em;
    position: relative;
}

.curri-answer .curri-section ul li:last-child {
    margin-bottom: 0;
}

.curri-answer .curri-section ul li::before {
    content: '•';
    color: #a0d0ff;
    font-size: 1.1em;
    position: absolute;
    left: 0;
    top: 0;
}

/* 상세 스킬 그룹 스타일 */
.curri-answer .skill-group {
    margin-top: 15px;
    padding-top: 0;
}

.curri-answer .skill-group:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.curri-answer .skill-group h4 {
    font-size: 1.15em;
    color: #a0d0ff;
    margin-top: 0;
    margin-bottom: 10px;
}

/* ======================================================== */
/* 상세 스킬 그룹 카드 스타일 (PC: 2열, Mobile: 1열) */
/* ======================================================== */

/* 1. 스킬 그룹을 감싸는 컨테이너를 Grid로 설정합니다. (PC 기본 2열) */
.curri-answer .detail-curri {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2개의 열을 동일한 비율로 생성 */
    gap: 20px; /* 카드 사이의 간격 */
    margin-top: 15px;
}

/* 3. 카드 내부의 제목(h4)과 리스트(ul) 스타일을 조정합니다. */
.curri-answer .skill-group h4 {
    font-size: 1.2em; /* 폰트 크기 조정 */
    color: #a0d0ff;
    margin-top: 0;
    margin-bottom: 1em; /* 제목과 리스트 사이 간격 */
    text-align: left; /* 텍스트 왼쪽 정렬 */
}

.curri-answer .skill-group ul {
    flex-grow: 1; /* ul이 남은 공간을 모두 차지하도록 설정 */
    padding-left: 5px; /* 리스트 왼쪽 여백 조정 */
}

.curri-answer .skill-group ul li {
    padding-left: 1.5em; /* 아이콘을 위한 공간 확보 */
}

/* ✨ Special Lecture 카드도 동일하게 적용되지만, 제목 스타일은 유지됩니다. */
.curri-answer .skill-group.special-lecture {
    border-top: none; /* 상단 테두리 제거 */
}

/* ======================================================== */
/* IBM 커리큘럼 테이블 섹션 스타일 (반응형 포함) */
/* ======================================================== */
#ibm-curriculum-table-div { /* 이전에 #ibm-curriculum-table로 된 부분을 #ibm-curriculum-table-div로 변경하여 사용 */
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
    text-align: left;
}

#ibm-curriculum-table-div h2 { /* HTML에 h2 없음, 이 규칙은 불필요할 수 있음 */
    font-size: 2.2em;
    color: #a0d0ff;
    margin-bottom: 1.5em;
    text-align: center;
}

.table-container {
    display: grid;
    grid-template-columns: 150px minmax(200px, 1.5fr) minmax(250px, 2fr);
    background-color: #2a2a2a;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* 헤더 스타일 */
.header-row {
    display: contents;
    background-color: #3b3b3b;
    color: #a0d0ff;
    font-weight: bold;
    border-bottom: 2px solid #555;
}

.header-cell {
    padding: 15px 20px;
    text-align: center;
    white-space: nowrap;
}
.header-cell:nth-child(2),
.header-cell:nth-child(3) {
    text-align: left;
}

/* 카테고리 그룹 (정규교과, 프로젝트) */
.category-group {
    display: contents;
}

.category-title {
    grid-column: 1 / 2;
    /* 중요: 아래 grid-row: span N;은 HTML 구조에 맞춰 수동으로 조절 필요 */
    /* 예: .category-group.regular-curri .category-title { grid-row: span 5; } */
    /* 예: .category-group.project-curri .category-title { grid-row: span 2; } */
    grid-row: span 5; /* 기본값, HTML 클래스와 매칭하여 사용 권장 */
    background-color: #1a1a1a;
    color: #a0d0ff;
    font-weight: bold;
    text-align: center;
    vertical-align: middle;
    padding: 12px 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: -1px;
    z-index: 1;
}

/* 각 행 스타일 (PC 뷰) */
.row-item {
    display: contents;
}

/* 각 셀 스타일 (PC 뷰) */
.cell {
    padding: 12px 20px;
    color: #f0f0f0;
    line-height: 1.5;
    text-align: left;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cell.subject {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.cell.capability {
    border-left: 1px solid rgba(255, 255, 255, 0.1);
}

/* 마지막 행의 하단 보더 제거 */
.category-group:last-child .row-item:last-of-type .cell {
    border-bottom: none;
}

.cell-label {
    display: none; /* PC 뷰에서는 레이블 숨김 */
}

/* 강조 텍스트 */
.cell-content strong {
    color: #e0f2f1;
}

.curri-answer .skill-group.special-lecture h4 {
    color: #ffcc00; /* 제목 색상 변경 (예: 노란색 계열) */
    font-size: 1.25em; /* 제목 크기 키우기 */
    margin-bottom: 12px;
    border-bottom: 1px dashed rgba(255, 204, 0, 0.3); /* 점선 색상 변경 */
    padding-bottom: 8px;
}

.curri-answer .skill-group.special-lecture p {
    font-size: 1em;
    color: #f0f0f0;
    line-height: 1.5;
}
.curri-answer .skill-group.special-lecture p strong {
    color: #fff;
    font-weight: bold;
}

/* Project Note 스타일 (선택 사항) */
.curri-answer .project-details-group .project-note {
    font-size: 0.85em;
    color: #999;
    margin-top: 15px;
    text-align: left;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 10px;
}

/* ======================================================== */
/* 비디오 및 기술 스택 영역 (새로 추가된/수정된 스타일) */
/* ======================================================== */

.video-item {
    display: flex;
    flex-direction: column; /* 동영상과 설명을 세로로 정렬 */
    align-items: center; /* 가운데 정렬 */
    margin-bottom: 30px; /* 각 동영상 아이템 아래에 여백 추가 */
}

/* 동영상 설명 텍스트 스타일 */
.video-description {
    margin-top: 10px; /* 동영상과 설명 사이 간격 */
    margin-bottom: 15px; /* 설명과 기술 섹션 사이 간격이 생기도록 조정 */
    font-size: 0.9em; /* 폰트 크기 조절 */
    color: #555; /* 텍스트 색상 조절 */
    text-align: center; /* 텍스트 가운데 정렬 */
    max-width: 560px; /* 동영상 너비에 맞춰 텍스트 너비 제한 */
    padding: 0 10px; /* 좌우 여백 */
}

/* 기존 .video-container-flex iframe 스타일은 그대로 유지 */
.video-container-flex iframe {
    max-width: 100%;
    height: 315px; /* 요청에 따라 height 고정 */
}

/* "사용된 기술" 섹션 전체 */
.used-tech-section {
    width: 100%; /* 부모 .video-item의 너비를 따름 */
    text-align: center; /* 내부 요소들을 가운데 정렬 */
    padding: 15px; /* 내부 여백 */
    background-color: #1c1c1c; /* 배경색 (추가) */
    border-radius: 8px; /* 모서리 둥글게 (선택 사항) */
    box-shadow: 0 2px 4px rgba(0,0,0,0.05); /* 그림자 효과 (선택 사항) */
}

/* "사용된 기술" 제목 (h5) */
.used-tech-section h5 {
    font-size: 1.1em;
    color: #a0d0ff;
    margin-bottom: 15px; /* 제목과 아이콘 사이 간격 */
    font-weight: bold;
}

/* 기술 아이콘들을 담는 컨테이너 */
.tech-icons {
    display: flex;
    flex-wrap: wrap;       /* 아이콘이 넘치면 다음 줄로 넘어감 (필수) */
    justify-content: center; /* 아이콘들을 가운데 정렬 */
    gap: 15px;             /* 아이콘 사이의 간격 */
    margin: 0 auto;        /* 부모 컨테이너 내에서 중앙 정렬 (선택 사항) */
    padding: 0 10px;       /* 컨테이너 좌우 여백 (선택 사항) */
}

/* 개별 기술 아이콘 (이미지) */
.tech-icons img {
    /* PC에서 한 줄에 5개를 배치하기 위한 너비 계산 */
    width: calc((100% - (15px * 4)) / 5); /* 100% - (gap * (아이콘 개수 - 1)) / 아이콘 개수 */
    max-width: 80px; /* 아이콘 최대 너비 (너무 커지지 않도록 제한) */
    height: auto; /* 너비에 비례하여 높이 자동 조절 (반응형에 필수) */
    object-fit: contain; /* 이미지 비율 유지 */
    vertical-align: middle;
}

/* ----------- 포트폴리오 이미지 및 설명 영역 스타일 ----------- */
/* portfolio-section 기본 스타일 (기존 스타일에서 조정) */
.portfolio-section {
    width: 100%;
    text-align: center;
    border-radius: 8px;
    position: relative; /* 캐러셀 컨테이너 위치 조정을 위해 */
}

.portfolio-section h5 {
    font-size: 1.1em;
    color: #a0d0ff;
    margin-bottom: 15px; /* 제목과 아이콘 사이 간격 */
    font-weight: bold;
}

/* 3D Carousel 관련 스타일 - 기존 Team Carousel CSS를 복사, 클래스명 변경 */

.portfolio-carousel-container {
    width: 100%;
    max-width: 900px; /* 캐러셀 컨테이너의 최대 너비, 내용에 따라 조정 */
    height: 450px; /* 캐러셀 높이 */
    position: relative;
    perspective: 1000px;
    margin: 0 auto; /* 중앙 정렬 */
}

.portfolio-carousel-track {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.portfolio-image-card { /* 기존 .card 역할 */
    position: absolute;
    width: 320px;
    height: 310px;
    background: #262626;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
    display: flex; /* 내부 콘텐츠 정렬을 위해 */
    flex-direction: column;
    align-items: center;
    justify-content: flex-start; /* 상단부터 정렬 */
    padding-bottom: 15px; /* 텍스트 공간 확보 */
    box-sizing: border-box; /* 패딩이 너비/높이에 포함되도록 */
}

.portfolio-image-card img {
    width: 100%;
    /*height: 70%; !* 이미지 높이 조절 *!*/
    /*object-fit: cover;*/
    height: 100%;
    object-fit: contain; /* 또는 none */
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 20px 20px 0 0; /* 상단만 둥글게 */
}

.portfolio-image-card .image-description {
    color: #555; /* 텍스트 색상 */
    font-size: 0.9em;
    padding: 10px 15px 0; /* 패딩 조절 */
    text-align: center;
    flex-grow: 1; /* 남은 공간 차지 */
    display: flex;
    align-items: center; /* 세로 중앙 정렬 */
    justify-content: center; /* 가로 중앙 정렬 */
}

/* 카드 위치 및 스케일 클래스 (3개 카드에 최적화) */
/* 6개 카드였을 때의 translateX 값을 3개에 맞게 조정 */
.portfolio-image-card.center {
    z-index: 10;
    transform: scale(1.1) translateZ(0);
}

.portfolio-image-card.left-1 { /* center 기준 왼쪽 카드 */
    z-index: 5;
    transform: translateX(-280px) scale(0.9) translateZ(-100px); /* 간격 및 스케일 조정 */
    opacity: 0.9;
}
.portfolio-image-card.left-1 img {
    filter: grayscale(100%);
}

.portfolio-image-card.right-1 { /* center 기준 오른쪽 카드 */
    z-index: 5;
    transform: translateX(280px) scale(0.9) translateZ(-100px); /* 간격 및 스케일 조정 */
    opacity: 0.9;
}
.portfolio-image-card.right-1 img {
    filter: grayscale(100%);
}

/* 3개 카드이므로, left-2, right-2, hidden 등은 대부분 사용되지 않거나, */
/* 6개 이상의 카드에서만 효과가 나타납니다. */
/* 하지만 JS 로직은 그대로 사용할 수 있도록 클래스는 유지합니다. */
.portfolio-image-card.left-2,
.portfolio-image-card.right-2,
.portfolio-image-card.hidden {
    opacity: 0;
    pointer-events: none;
    transform: scale(0.7) translateZ(-500px); /* 시야 밖으로 완전히 이동 */
}


/* 네비게이션 화살표 (기존 nav-arrow 재활용) */
.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(8, 42, 123, 0.6);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.3s ease;
    font-size: 1.5rem;
    border: none;
    outline: none;
    padding-bottom: 4px;
}

.nav-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.nav-arrow.left {
    left: 20px;
    padding-right: 3px;
}

.nav-arrow.right {
    right: 20px;
    padding-left: 3px;
}

.toggle-btn {
    background-color: #333;
    color: #a0d0ff;
    border: 1px solid #444;
    padding: 8px 14px;
    border-radius: 6px;
    margin-left: 8px;
    cursor: pointer;
    font-size: 0.95em;
    transition: background-color 0.2s ease;
}

.toggle-btn:hover {
    background-color: #444;
}

/* ======================================================== */
/* 반응형 디자인 (Media Queries) */
/* ======================================================== */

/* Tablet & Smaller Desktop */
@media screen and (max-width: 1024px) {
    #curriculum-container {
        padding: 2em;
    }
    #curriculum-title h1 {
        font-size: 2.5em;
    }
    #curriculum-content h4 {
        font-size: 1.5em;
        margin-top: 1em;
    }
    .grid-3-col {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    .card {
        padding: 20px;
    }
    .project-card { /* HTML에서 사용되지 않지만, 혹시 나중에 추가될 경우를 대비해 유지 */
        width: 100%;
        max-width: 500px;
    }
    #skill-icon {
        margin-top: 80px;
    }
    .icon-area {
        height: 280px;
    }
    .icon {
        width: 50px;
        height: 50px;
    }
    .icon img {
        width: 30px;
        height: 30px;
    }

    /* IBM 커리큘럼 테이블 */
    #ibm-curriculum-table-div {
        max-width: 900px;
    }
    .table-container {
        grid-template-columns: 120px minmax(180px, 1.5fr) minmax(220px, 2fr); /* 컬럼 너비 조정 */
    }
    .header-cell, .cell {
        padding: 12px 15px;
    }
    .category-title {
        font-size: 0.95em;
    }

    /* curri-answer 내부 디자인 */
    .curri-item summary {
        font-size: 1.2em;
    }
    .curri-answer {
        font-size: 1em;
    }
    .curri-answer.open-answer {
        padding: 12px 25px 20px 25px; /* padding-top 조정 */
    }
    .curri-answer .curri-section {
        padding: 18px;
    }
    .curri-answer .curri-section h3 {
        font-size: 1.3em;
    }
    .curri-answer .curri-section p,
    .curri-answer .curri-section ul li {
        font-size: 0.9em;
    }
    .curri-answer .skill-group h4 {
        font-size: 1.1em;
    }

    /* Video & Tech Stack Section */
    .video-container-flex {
        flex-direction: column;
        align-items: center; /* 세로 정렬 시 중앙 정렬 */
    }
    .video-container-flex iframe {
        height: 400px; /* Tablet에서 높이 조정 */
    }
    .tech-icons img {
        width: calc((100% - (15px * 4)) / 5); /* 여전히 5개 유지, 필요시 4개로 변경 가능 */
        max-width: 70px;
    }

    .portfolio-carousel-container {
        max-width: 700px;
        height: 400px;
    }
    .portfolio-image-card {
        width: 250px;
        height: 340px;
    }
    .portfolio-image-card.left-1 {
        transform: translateX(-220px) scale(0.9) translateZ(-100px);
    }
    .portfolio-image-card.right-1 {
        transform: translateX(220px) scale(0.9) translateZ(-100px);
    }
}

@media (max-width: 768px) {
    .portfolio-section h5 {
        font-size: 1.5em;
    }
    .portfolio-carousel-container {
        max-width: 500px;
        height: 350px;
    }
    .portfolio-image-card {
        width: 200px;
        height: 280px;
    }
    .portfolio-image-card.left-1 {
        transform: translateX(-180px) scale(0.9) translateZ(-100px);
    }
    .portfolio-image-card.right-1 {
        transform: translateX(180px) scale(0.9) translateZ(-100px);
    }
    .nav-arrow {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
    .nav-arrow.left {
        left: 10px;
    }
    .nav-arrow.right {
        right: 10px;
    }
}

/* Mobile */
@media screen and (max-width: 768px) {
    #curriculum-container {
        padding: 1.5em;
    }
    #curriculum-title h1 {
        font-size: 2em;
    }
    #curriculum-content h4 {
        font-size: 1.3em;
        margin-top: 1em;
    }
    .grid-3-col {
        grid-template-columns: 1fr; /* 모바일에서 1열로 */
        max-width: 400px; /* 모바일에서 최대 너비 */
        gap: 20px;
    }
    .card {
        padding: 20px;
    }
    ul.styled-list li {
        font-size: 0.9em;
    }
    #skill-icon {
        margin-top: 50px;
        padding-bottom: 30px;
    }
    .icon-area {
        height: 220px;
    }
    .icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }
    .icon img {
        width: 24px;
        height: 24px;
    }

    /* IBM 커리큘럼 테이블 */
    #ibm-curriculum-table-div {
        padding: 0 10px;
    }
    .table-container {
        display: block; /* 모바일에서 Grid 해제, 블록으로 쌓이도록 */
        background-color: transparent;
        box-shadow: none;
        border-radius: 0;
    }
    .header-row {
        display: none; /* 모바일에서 헤더 숨김 */
    }
    .category-group {
        display: block;
        margin-bottom: 20px;
    }
    .category-title {
        grid-column: unset;
        grid-row: unset;
        display: block;
        text-align: center;
        background-color: #3b3b3b;
        border-radius: 8px 8px 0 0;
        border-bottom: none;
        padding: 15px 10px;
        font-size: 1.2em;
        margin-bottom: 0;
    }
    .row-item {
        display: block;
        margin-bottom: 15px;
        border: 1px solid rgba(255, 255, 255, 0.15);
        border-radius: 0 0 8px 8px;
        background-color: #2a2a2a;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
        overflow: hidden;
    }
    .row-item:last-of-type {
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    .category-group:last-child .row-item:last-of-type {
        margin-bottom: 0;
    }
    .row-item:nth-child(even),
    .row-item:hover {
        background-color: #2a2a2a;
    }
    .cell {
        display: flex;
        flex-direction: row;
        align-items: flex-start;
        padding: 10px 15px;
        border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
        position: relative;
        border-left: none;
        word-break: break-word;
    }
    .cell:last-child {
        border-bottom: none;
    }
    .cell-label {
        display: block;
        font-weight: bold;
        color: #a0d0ff;
        width: 90px;
        flex-shrink: 0;
        margin-right: 15px;
        text-align: left;
    }
    .cell-content {
        flex-grow: 1;
        text-align: left;
        min-width: 0;
    }

    /* curri-answer 내부 디자인 */
    .curri-item summary {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .curri-answer {
        font-size: 0.95em;
        padding: 0 20px;
    }
    .curri-answer.open-answer {
        padding: 12px 20px 20px 20px;
    }
    .curri-answer .curri-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    .curri-answer .curri-section h3 {
        font-size: 1.2em;
        margin-bottom: 10px;
    }
    .curri-answer .curri-section p,
    .curri-answer .curri-section ul li {
        font-size: 0.9em;
    }
    .curri-answer .skill-group h4 {
        font-size: 1.05em;
    }

    /* Video & Tech Stack Section */
    .video-container-flex {
        flex-direction: column;
        align-items: center; /* 세로 정렬 시 중앙 정렬 */
    }
    .video-container-flex iframe {
        height: 300px; /* Mobile에서 높이 조정 */
    }
    .tech-icons img {
        width: calc((100% - (10px * 3)) / 4); /* 모바일에서 한 줄에 4개 */
        max-width: 60px; /* 최대 너비도 줄여줌 */
    }

    /* 화면 너비가 768px 이하일 때 1열로 변경 */
    .curri-answer .detail-skills {
        grid-template-columns: 1fr; /* 1개의 열로 설정 */
    }

    .portfolio-section {
        margin-top: 50px;
        margin-bottom: 40px;
    }
}

/* Small Mobile */
@media screen and (max-width: 480px) {
    #curriculum-container {
        padding: 1em;
    }
    #curriculum-title h1 {
        font-size: 1.8em;
    }
    #curriculum-content h4 {
        font-size: 1.2em;
        margin-bottom: 0.8em;
    }
    .card {
        padding: 15px;
    }
    .card h5 {
        font-size: 1.2em;
    }
    .card p, ul.styled-list li {
        font-size: 0.85em;
    }
    #skill-icon {
        margin-top: 40px;
        padding-bottom: 20px;
    }
    .icon-area {
        height: 180px;
    }
    .icon {
        width: 32px;
        height: 32px;
        border-radius: 10px;
    }
    .icon img {
        width: 20px;
        height: 20px;
    }

    /* IBM 커리큘럼 테이블 */
    #ibm-curriculum-table-div {
        padding: 0 5px;
    }
    .table-container {
        grid-template-columns: 100px 1fr 1.5fr; /* 더 좁게 조정 */
    }
    .header-cell, .cell {
        padding: 8px 10px;
        font-size: 0.9em;
    }
    .category-title {
        font-size: 0.9em;
        padding: 10px 8px;
    }
    .cell-label {
        width: 70px;
        margin-right: 10px;
    }

    /* curri-answer 내부 디자인 */
    .curri-item summary {
        font-size: 1em;
        padding: 12px 15px;
    }
    .curri-answer {
        font-size: 0.9em;
        padding: 0 15px;
    }
    .curri-answer.open-answer {
        padding: 10px 15px 15px 15px;
    }
    .curri-answer .curri-section {
        padding: 12px;
        margin-bottom: 12px;
    }
    .curri-answer .curri-section h3 {
        font-size: 1.1em;
        margin-bottom: 8px;
    }
    .curri-answer .curri-section p,
    .curri-answer .curri-section ul li {
        font-size: 0.85em;
    }
    .curri-answer .skill-group h4 {
        font-size: 1em;
    }

    /* Video & Tech Stack Section */
    .video-container-flex iframe {
        height: 250px; /* Small Mobile에서 높이 조정 */
    }
    .tech-icons img {
        width: calc((100% - (10px * 2)) / 3); /* 모바일에서 한 줄에 3개 */
        max-width: 50px; /* 최대 너비 더 줄여줌 */
        gap: 10px; /* 간격도 줄여줌 */
    }

    .portfolio-section h5 {
        font-size: 1.3em;
    }
    .portfolio-carousel-container {
        max-width: 300px; /* 더 작은 화면에서 중앙 카드만 보이도록 */
        height: 300px;
    }
    .portfolio-image-card {
        width: 250px;
        height: 350px;
    }
    /* 모바일에서는 중앙 카드만 보여주는 것이 좋습니다. */
    /* 따라서 left-1, right-1은 거의 화면 밖으로 이동시킵니다. */
    .portfolio-image-card.left-1 {
        transform: translateX(-200px) scale(0.8) translateZ(-100px);
        opacity: 0; /* 화면 밖으로 이동하여 숨김 */
    }
    .portfolio-image-card.right-1 {
        transform: translateX(200px) scale(0.8) translateZ(-100px);
        opacity: 0; /* 화면 밖으로 이동하여 숨김 */
    }
    .nav-arrow {
        width: 30px;
        height: 30px;
        font-size: 1rem;
        top: 45%; /* 화살표 위치 약간 조정 */
    }
}
@media screen and (max-width: 380px) {
    #curriculum-content h4 {
        font-size: 1.1rem;
    }

    .eighth p {
        font-size: 0.9rem;
    }
}
