/* award.css */

/* 전체 컨테이너 */
.history-content-full {
    max-width: 1400px !important;
    margin: 0 auto;
    padding: 0 20px;
}

/* 상장 그리드 */
.award-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px 20px;
    margin-top: 30px;
}

/* 카드 디자인 */
.award-card {
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    transition: transform 0.3s ease;
}

.award-card:hover {
    transform: translateY(-5px);
}

/* 상장 이미지 영역 */
.award-image {
    width: 100%;
    aspect-ratio: 1 / 1.414;
    background: #fff;
    border: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 5px;
    box-sizing: border-box;
}

.award-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* 텍스트 영역 */
.award-text {
    padding: 15px 0 0 0;
    text-align: center;
}

.award-title {
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
    line-height: 1.4;
    word-break: keep-all;
    min-height: 2.8em;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

/* 상단 여백 및 탭 컨테이너 */
.award-tabs-container {
    text-align: center;
    margin-bottom: 50px;
    padding-top: 50px; /* 제목이 없으므로 상단 여백 부여 */
}

.award-tabs {
    display: inline-flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 50px;
}

/* 탭 버튼 기본 스타일 */
.tab-btn {
    padding: 12px 28px;
    border: none;
    background: transparent;
    border-radius: 30px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #666;
    transition: all 0.3s ease;
}

/* 활성화된 탭 (기본 주황색 포인트) */
.tab-btn.active {
    background: #ff6a00;
    color: #fff;
    box-shadow: 0 4px 10px rgba(255, 106, 0, 0.3);
}

.tab-btn:hover:not(.active) {
    color: #ff6a00;
}

/* --- 모바일 레이아웃 --- */

/* 태블릿 및 작은 화면: 2열 */
@media (max-width: 1024px) {
    .award-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px 15px;
    }
}

/* 모바일 화면: 상장이 너무 작아지지 않게 2열 유지 혹은 1열 */
@media (max-width: 600px) {
    .award-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 10px;
    }
    .award-title {
        font-size: 0.85rem;
    }
}