/* ===== 실수·사고 레슨런 카드 보드 스타일 ===== */

/* 페이지 컨테이너 가운데 정렬 */
.page-container {
    padding: 20px;
}

.page-container .container {
    max-width: 1200px;
    margin: 0 auto;
    display: block;
    grid-template-columns: 1fr;
    grid-template-rows: auto;
}

.lesson-learned-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 30px 20px;
    line-height: 1.6;
}

/* ===== 헤더 ===== */
.lesson-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
    overflow: hidden;
}

.header-content {
    margin-bottom: 20px;
}

.header-content h1 {
    font-size: 2.2rem;
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.5;
    flex-wrap: wrap;
    min-height: auto;
}

.header-content h1 i {
    flex-shrink: 0;
    font-size: 2rem;
}

.header-content h1 {
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: break-word;
}

.header-content .subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0;
    line-height: 1.6;
}

.header-actions {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.header-actions .btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.header-actions .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ===== 검색 섹션 ===== */
.search-section {
    margin-bottom: 20px;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 12px 16px;
    transition: border-color 0.2s;
}

.search-box:focus-within {
    border-color: #667eea;
}

.search-box i {
    color: #999;
    margin-right: 12px;
    font-size: 1.1rem;
}

.search-box input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    color: #333;
}

.search-box input::placeholder {
    color: #999;
}

.clear-search {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: all 0.2s;
}

.clear-search:hover {
    background: #f0f0f0;
    color: #333;
}

/* ===== 필터 섹션 ===== */
.filter-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.filter-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.filter-select {
    padding: 8px 12px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color 0.2s;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
}

/* ===== 등록 폼 ===== */
.form-section {
    margin-bottom: 30px;
}

.toggle-form-btn {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    margin-bottom: 20px;
}

.add-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.add-form h3 {
    margin: 0 0 25px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.4rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
}

.form-group .required {
    color: #e74c3c;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-hint {
    display: block;
    margin-top: 5px;
    font-size: 0.85rem;
    color: #999;
    font-style: italic;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 25px;
}

/* ===== 카드 그리드 ===== */
.cards-section {
    margin-top: 30px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    min-height: 200px;
}

.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 80px 20px;
    color: #999;
    line-height: 1.8;
    width: 100%;
    box-sizing: border-box;
}

.empty-state i {
    font-size: 4rem;
    margin-bottom: 30px;
    opacity: 0.5;
    display: block;
    line-height: 1;
}

.empty-state p {
    font-size: 1.1rem;
    margin: 20px 0;
    line-height: 2;
    word-break: keep-all;
    padding: 0 20px;
}

.empty-state p:first-of-type {
    margin-top: 0;
}

.empty-state p:last-of-type {
    margin-bottom: 0;
}

/* ===== 레슨런 카드 ===== */
.lesson-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border-left: 4px solid #ddd;
    position: relative;
    overflow: hidden;
}

.lesson-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.lesson-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    transition: width 0.3s;
}

.lesson-card:hover::before {
    width: 6px;
}

/* 태그별 색상 */
.lesson-card.tag-mistake {
    border-left-color: #f39c12;
}

.lesson-card.tag-mistake::before {
    background: #f39c12;
}

.lesson-card.tag-accident {
    border-left-color: #e74c3c;
}

.lesson-card.tag-accident::before {
    background: #e74c3c;
}

.lesson-card.tag-confirm {
    border-left-color: #3498db;
}

.lesson-card.tag-confirm::before {
    background: #3498db;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 12px;
}

.card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
    flex: 1;
    line-height: 1.5;
    word-break: keep-all;
}

.card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.card-tag {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card-tag.tag-mistake {
    background: #fff3cd;
    color: #856404;
}

.card-tag.tag-accident {
    background: #f8d7da;
    color: #721c24;
}

.card-tag.tag-confirm {
    background: #d1ecf1;
    color: #0c5460;
}

.card-category {
    display: inline-block;
    padding: 4px 10px;
    background: #e9ecef;
    color: #495057;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 12px;
}

.card-severity {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
}

.card-severity.severity-low {
    background: #d4edda;
    color: #155724;
}

.card-severity.severity-medium {
    background: #fff3cd;
    color: #856404;
}

.card-severity.severity-high {
    background: #f8d7da;
    color: #721c24;
}

.card-situation {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.7;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: keep-all;
}

.card-question {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 16px;
    border-radius: 8px;
    border-left: 3px solid #ff9800;
    margin-top: 16px;
    position: relative;
}

.card-question-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #ff9800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-question-text {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 500;
    word-break: keep-all;
}

.card-lesson {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    padding: 16px;
    border-radius: 8px;
    border-left: 3px solid #667eea;
    margin-top: 16px;
}

.card-lesson-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-lesson-text {
    color: #333;
    font-size: 0.95rem;
    line-height: 1.7;
    font-weight: 500;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: keep-all;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #eee;
    font-size: 0.85rem;
    color: #999;
}

.card-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.card-views {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ===== 모달 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
    animation: fadeIn 0.2s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.modal-container {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s;
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    padding: 24px 30px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-radius: 16px 16px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #999;
    cursor: pointer;
    padding: 5px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.2s;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-body {
    padding: 30px;
}

.modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    position: sticky;
    bottom: 0;
    background: white;
    border-radius: 0 0 16px 16px;
}

/* 상세보기 모달 */
.detail-modal .modal-body {
    padding: 30px;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f0f0;
}

.detail-tag,
.detail-category,
.detail-severity,
.detail-date,
.detail-views {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.detail-tag.tag-mistake {
    background: #fff3cd;
    color: #856404;
}

.detail-tag.tag-accident {
    background: #f8d7da;
    color: #721c24;
}

.detail-tag.tag-confirm {
    background: #d1ecf1;
    color: #0c5460;
}

.detail-category {
    background: #e9ecef;
    color: #495057;
}

.detail-severity.severity-low {
    background: #d4edda;
    color: #155724;
}

.detail-severity.severity-medium {
    background: #fff3cd;
    color: #856404;
}

.detail-severity.severity-high {
    background: #f8d7da;
    color: #721c24;
}

.detail-date,
.detail-views {
    background: #f8f9fa;
    color: #6c757d;
}

.detail-section {
    margin-bottom: 30px;
}

.detail-section h3 {
    font-size: 1.2rem;
    color: #333;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.detail-section p {
    color: #555;
    line-height: 1.8;
    font-size: 1rem;
    margin: 0;
    word-break: keep-all;
}

.question-section {
    margin-bottom: 30px;
}

.question-box {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid #ff9800;
    color: #333;
    line-height: 1.9;
    font-size: 1.05rem;
    font-weight: 500;
    margin-top: 12px;
    word-break: keep-all;
}

.lesson-section {
    margin-top: 30px;
}

.lesson-highlight {
    background: linear-gradient(135deg, #667eea15 0%, #764ba215 100%);
    padding: 24px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    color: #333;
    line-height: 1.9;
    font-size: 1.05rem;
    font-weight: 500;
    margin-top: 12px;
    word-break: keep-all;
}

.import-warning {
    margin-top: 15px;
    padding: 12px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
}

/* ===== 통계 대시보드 ===== */
.stats-dashboard {
    background: white;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.stats-dashboard h3 {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid #667eea;
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: #667eea;
    color: white;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

.stats-charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.chart-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
}

.chart-card h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1rem;
}

.chart-container {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    background: white;
    border-radius: 6px;
}

.chart-label {
    flex: 1;
    font-size: 0.9rem;
    color: #555;
    min-width: 80px;
}

.chart-bar {
    flex: 2;
    height: 24px;
    background: #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}

.chart-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    transition: width 0.3s;
}

.chart-value {
    min-width: 40px;
    text-align: right;
    font-size: 0.85rem;
    font-weight: 600;
    color: #333;
}

/* ===== 북마크 버튼 ===== */
.bookmark-btn {
    background: none;
    border: 2px solid #ddd;
    color: #999;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1.1rem;
}

.bookmark-btn:hover {
    border-color: #667eea;
    color: #667eea;
}

.bookmark-btn.bookmarked {
    background: #fff3cd;
    border-color: #f39c12;
    color: #f39c12;
}

.bookmark-btn.bookmarked i {
    font-weight: 900;
}

.detail-meta .bookmark-btn {
    margin-left: auto;
}

/* ===== 학습 모드 ===== */
.study-mode .card-question {
    position: relative;
    min-height: 80px;
}

.study-mode .card-question-text {
    filter: blur(0);
    user-select: text;
    pointer-events: auto;
}

.study-mode .card-question.revealed .card-question-text {
    filter: none;
}

.study-mode .card-lesson {
    position: relative;
    min-height: 100px;
}

.study-mode .card-lesson-text {
    filter: blur(8px);
    user-select: none;
    pointer-events: none;
}

.study-mode .card-lesson::after {
    content: '클릭하여 교훈 보기';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(102, 126, 234, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    z-index: 10;
}

.study-mode .card-lesson.revealed::after {
    display: none;
}

.study-mode .card-lesson.revealed .card-lesson-text {
    filter: none;
}

/* ===== 이해도 버튼 ===== */
.study-controls {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #eee;
}

.understanding-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.understanding-btn {
    flex: 1;
    min-width: 120px;
}

.understanding-btn.active {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.card-understanding {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
}

.card-understanding.understood {
    background: #d4edda;
    color: #155724;
}

.card-understanding.normal {
    background: #fff3cd;
    color: #856404;
}

.card-understanding.review {
    background: #f8d7da;
    color: #721c24;
}

/* ===== 검색 하이라이트 ===== */
.highlight {
    background: #fff3cd;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: 600;
}

/* ===== FAQ/QNA 섹션 (페이지 하단) ===== */
.faq-section {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    padding: 40px 32px;
    margin: 40px auto 0 auto;
    max-width: 900px;
}

.faq-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e2e8f0;
    text-align: center;
}

.faq-title i {
    color: #667eea;
    font-size: 1.5rem;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

.faq-item {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px 24px;
    transition: all 0.3s ease;
    width: 100%;
}

.faq-item.active,
.faq-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
    background: #f8fafc;
}

.faq-question {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    line-height: 1.6;
    width: 100%;
}

.faq-question span:not(.faq-icon) {
    flex: 1;
    word-break: keep-all;
}

.faq-icon {
    background: #667eea;
    color: #fff;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
}

.faq-arrow {
    margin-left: auto;
    color: #64748b;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item.active .faq-arrow {
    transform: rotate(180deg);
    color: #667eea;
}

.faq-item .faq-answer {
    display: none;
    margin-top: 16px;
    padding-top: 16px;
    padding-left: 0;
    border-top: 1px solid #e2e8f0;
    color: #475569;
    font-size: 1rem;
    line-height: 1.8;
    width: 100%;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-answer p {
    margin: 0;
    margin-bottom: 8px;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer strong {
    color: #1e293b;
    font-weight: 600;
}

/* ===== 반응형 디자인 ===== */
@media (max-width: 768px) {
    .lesson-header {
        padding: 20px;
    }

    .header-content h1 {
        font-size: 1.6rem;
    }

    .header-actions {
        flex-direction: column;
    }

    .header-actions .btn {
        width: 100%;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stats-charts {
        grid-template-columns: 1fr;
    }

    .understanding-buttons {
        flex-direction: column;
    }

    .understanding-btn {
        width: 100%;
    }

    .filter-section {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group {
        min-width: 100%;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .modal-container {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .lesson-learned-container {
        padding: 15px 10px;
    }

    .card-header {
        flex-direction: column;
    }

    .card-tags {
        width: 100%;
    }
    
    .faq-section {
        padding: 24px 20px;
        margin: 24px 0 0;
    }
    
    .faq-title {
        font-size: 1.3rem;
        margin-bottom: 20px;
        flex-direction: column;
        gap: 8px;
    }
    
    .faq-item {
        padding: 16px 18px;
    }
    
    .faq-question {
        font-size: 1rem;
        gap: 10px;
    }
    
    .faq-icon {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .faq-item .faq-answer {
        font-size: 0.95rem;
    }
}

