:root {
    --real-blue: #0f289e;
    --main-blue: #004ea2; /* 더불어민주당 상징색 */
    --sub-blue: #0076be;
    --light-gray: #f4f4f4;
    --white: #ffffff;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: var(--light-gray);
    padding-bottom: 70px; /* 하단 탭 바 공간 */
}
/* 헤더 */
header {
    background-color: var(--real-blue);
    color: var(--white);
    padding: 1.2rem;
    text-align: center;
    word-break : keep-all;
    position: sticky;
}

/* 상단 탭 바 스타일 */
.tab-bar {
    position: sticky; /* 스크롤 시 상단에 고정 */
    top: 0;
    width: 100%;
    background: var(--white);
    display: flex;
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.tab-btn {
    background: none;
    border: none;
    flex: 1;
    padding: 15px 0;
    color: #666;
    font-size: 1.5rem;
    font-weight: 500;
    cursor: pointer;
    transition: 0.2s;
    position: relative;
}

/* 활성화된 탭 하단에 강조 선 추가 */
.tab-btn.active {
    color: var(--main-blue);
    font-weight: 700;
}

.tab-btn.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--main-blue);
}

/* 컨텐츠 섹션 */
.container {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}
/* 탭 제어 */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}
.active-content {
    display: block;
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 아코디언 스타일 */
.accordion-container { display: flex; flex-direction: column; gap: 10px; }
.pledge-group { background: white; border-radius: 10px; border: 1px solid #ddd; overflow: hidden; }
.pledge-header {
    padding: 15px 20px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    cursor: pointer;
    color: var(--main-blue);
}
.pledge-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 20px;
    word-break : keep-all;
    background-color: #fafafa;
}
.pledge-body li {
    list-style: none;
    position: relative;
    padding-left: 25px;
}

.pledge-body li::before {
    /* Font Awesome 6 무료 버전 기준 */
    font-family: "Font Awesome 6 Free";
    content: "\f00c"; /* 체크 모양 아이콘 코드 */
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #004ea2; /* 민주당 메인 블루 */
}
.pledge-group.active .pledge-body {
    max-height: 300px; 
    padding: 15px 20px; 
    border-top: 1px solid #eee; 
}
.pledge-group.active .icon { 
    transform: rotate(45deg); 
    color: #ff4d4d; 
    transition: 0.3s; 
}

/* 갤러리 */
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.gallery-item { width: 100%; border-radius: 10px; }



/* 탭 1: 홈 (메인 비주얼) */
.hero-img {
    width: 100%;
    height: auto;
    aspect-ratio: 5/3;
    background: #ccc url('hero-img2.jpg') no-repeat center center/cover;
    border-radius: 15px;
    margin-bottom: 20px;
}

.hero-text {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 15px;
}

/* 탭 2: 약력 */
.profile-card {
    background: white;
    padding: 20px;
    border-radius: 15px;
    border-left: 5px solid var(--main-blue);
}

.profile-list {
    list-style: none;
    margin-top: 15px;
}

.profile-list li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
    word-break : keep-all;
}

.profile-list li::before {
    content: "•";
    color: var(--main-blue);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* 탭 3: 공약 */
.pledge-item {
    background: white;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

.pledge-item h3 {
    color: var(--main-blue);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

