/* 기본 스타일 리셋 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #323130;
    background: 
        linear-gradient(135deg, rgba(0, 120, 212, 0.05) 0%, rgba(0, 188, 242, 0.03) 100%),
        linear-gradient(45deg, #fafbfc 0%, #f3f4f6 50%, #ffffff 100%);
    min-height: 100vh;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 120, 212, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 188, 242, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(106, 90, 205, 0.04) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
}

/* 헤더 스타일 */
.header {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #1a1a1a;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 16px rgba(31, 38, 135, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.logo-section {
    display: flex;
    flex-direction: column;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 2px;
    color: #323130;
}

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.logo a:hover {
    opacity: 0.8;
}

.logo img {
    height: 40px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
}

.logo i {
    margin-right: 12px;
    color: #0078d4;
    font-size: 24px;
}

.subtitle {
    font-size: 11px;
    opacity: 0.7;
    font-weight: 400;
    letter-spacing: 0.5px;
    color: #605e5c;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 8px;
}

.nav a {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 500;
    padding: 10px 18px;
    border-radius: 12px;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 14px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid transparent;
}

.nav a:hover {
    background: rgba(0, 120, 212, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #0078d4;
    border: 1px solid rgba(0, 120, 212, 0.2);
    box-shadow: 
        0 4px 12px rgba(0, 120, 212, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.nav a.active {
    background: linear-gradient(135deg, 
        rgba(0, 120, 212, 0.9), 
        rgba(0, 188, 242, 0.9)
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 4px 16px rgba(0, 120, 212, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 메인 컨텐츠 */
.main {
    min-height: calc(100vh - 80px - 200px);
}

/* 메인 컨텐츠 스타일 */
.main-content {
    min-height: calc(100vh - 160px);
    padding: 0 0 60px 0;
}

.main-content::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 120, 212, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(0, 188, 242, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(106, 90, 205, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* 히어로 섹션 */
.hero {
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section {
    text-align: center;
    margin-bottom: 60px;
    padding: 80px 0;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-radius: 0;
    border: none;
    box-shadow: none;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.02) 0%, 
        rgba(0, 120, 212, 0.01) 50%,
        rgba(255, 255, 255, 0.02) 100%
    );
    pointer-events: none;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    50% { transform: translateX(-50%) translateY(-50%) rotate(45deg); }
    100% { transform: translateX(0%) translateY(0%) rotate(45deg); }
}

.hero-section h1 {
    font-size: 42px;
    font-weight: 300;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.2;
    position: relative;
    z-index: 1;
    letter-spacing: -0.5px;
}

.hero-section p {
    font-size: 18px;
    color: #666;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    opacity: 0.8;
    font-weight: 300;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/><circle cx="20" cy="60" r="0.5" fill="white" opacity="0.1"/><circle cx="80" cy="40" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    z-index: 1;
}

.hero-container {
    position: relative;
    z-index: 2;
}

.hero-container h1 {
    font-size: 48px;
    font-weight: 600;
    margin-bottom: 20px;
    text-shadow: none;
    letter-spacing: -0.5px;
}

.hero-container p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
    font-weight: 400;
}

/* 검색 섹션 */
.search-section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 32px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin: -40px 0 40px 0;
    position: relative;
    z-index: 10;
}

.search-box {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 12px 16px;
    width: 100%;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-input-group:focus-within {
    border-color: #0078d4;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
}

.search-input-group i {
    color: #605e5c;
    margin-right: 12px;
    font-size: 16px;
}

.search-input-group input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 14px;
    background: transparent;
    color: #323130;
}

.search-input-group input::placeholder {
    color: #a19f9d;
}

.search-btn {
    background: #0078d4;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 8px;
}

.search-btn:hover {
    background: #106ebe;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 120, 212, 0.3);
}

.search-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 120, 212, 0.3);
}

.filter-group {
    display: flex;
    gap: 12px;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 6px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 120px;
    color: #323130;
    font-weight: 400;
}

.filter-select:focus {
    border-color: #0078d4;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
}

/* 공고 목록 섹션 */
.announcements-section {
    padding: 32px 0;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.section-header h2 {
    font-size: 24px;
    font-weight: 600;
    color: #323130;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-header h2::before {
    content: '';
    width: 3px;
    height: 24px;
    background: #0078d4;
    border-radius: 2px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.excel-download-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #107c10;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.excel-download-btn:hover {
    background: #0e6e0e;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(16, 124, 16, 0.3);
}

.excel-download-btn i {
    font-size: 14px;
}

.result-info {
    display: flex;
    gap: 16px;
    font-size: 13px;
    color: #605e5c;
    font-weight: 400;
}

/* 로딩 스피너 */
.loading-spinner {
    text-align: center;
    padding: 64px 0;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 120, 212, 0.1);
    border-top: 3px solid #0078d4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

.loading-spinner p {
    color: #605e5c;
    font-weight: 400;
    font-size: 14px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* 공고 목록 */
.announcements-list {
    display: grid;
    gap: 16px;
    margin-bottom: 32px;
}

.announcement-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.announcement-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #0078d4;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.announcement-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 120, 212, 0.2);
}

.announcement-item:hover::before {
    transform: scaleY(1);
}

.announcement-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
    gap: 16px;
}

.announcement-title-link {
    text-decoration: none;
    color: inherit;
    flex: 1;
    margin-right: 16px;
}

.announcement-title-link:hover .announcement-title {
    color: #0078d4;
}

.announcement-title {
    font-size: 16px;
    font-weight: 500;
    color: #323130;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.announcement-date {
    color: #605e5c;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
    min-width: fit-content;
    text-align: center;
    background: rgba(0, 120, 212, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.announcement-org {
    color: #605e5c;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    font-weight: 400;
}

.announcement-org i {
    margin-right: 6px;
    color: #0078d4;
    font-size: 12px;
}



/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
}

.pagination button {
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: white;
    color: #323130;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 400;
    font-size: 14px;
    min-width: 32px;
}

.pagination button:hover {
    background: rgba(0, 120, 212, 0.1);
    color: #0078d4;
    border-color: rgba(0, 120, 212, 0.3);
}

.pagination button.active {
    background: #0078d4;
    color: white;
    border-color: #0078d4;
    font-weight: 500;
}

.pagination button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #f3f2f1;
    color: #a19f9d;
}

/* 푸터 */
.footer {
    background: #323130;
    color: white;
    padding: 48px 0 16px;
    margin-top: 64px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 16px;
    color: #0078d4;
    font-weight: 500;
}

.footer-section h3 {
    font-size: 18px;
}

.footer-section h4 {
    font-size: 16px;
}

.footer-section p {
    margin-bottom: 8px;
    opacity: 0.8;
    line-height: 1.5;
    font-size: 14px;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    font-size: 14px;
}

.footer-section ul li a:hover {
    opacity: 1;
    color: #0078d4;
    transform: translateX(4px);
}

.footer-bottom {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    font-size: 13px;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.modal-body {
    padding: 24px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}


.modal-description {
    margin-bottom: 20px;
    color: #605e5e;
}

.source-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.source-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e4e8;
}

.source-number {
    background: #0078d4;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.source-info {
    flex: 1;
}

.source-info strong {
    display: block;
    color: #323130;
    margin-bottom: 4px;
    font-size: 14px;
}

.source-info a {
    color: #0078d4;
    text-decoration: none;
    font-size: 13px;
    word-break: break-all;
}

.source-info a:hover {
    text-decoration: underline;
}

/* 서비스 그리드 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 0;
    perspective: 1000px;
}

/* 서비스 카드 - 직사각형 버튼 스타일 */
.service-card {
    background: linear-gradient(135deg, 
        rgba(0, 120, 212, 0.9) 0%, 
        rgba(0, 188, 242, 0.9) 50%,
        rgba(106, 90, 205, 0.9) 100%
    );
    border-radius: 0;
    padding: 32px 24px;
    box-shadow: 
        0 8px 24px rgba(0, 120, 212, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 200px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: white;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%
    );
    transition: left 0.5s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 32px rgba(0, 120, 212, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, 
        rgba(0, 120, 212, 0.95) 0%, 
        rgba(0, 188, 242, 0.95) 50%,
        rgba(106, 90, 205, 0.95) 100%
    );
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover::after {
    opacity: 1;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.service-card:hover .card-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.card-icon i {
    font-size: 22px;
    color: white;
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
    line-height: 1.3;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.service-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin-bottom: 0;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 기존 card-button 스타일 제거 - 카드 자체가 버튼이 됨 */
.card-button {
    display: none;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
        min-height: auto;
    }
    
    .nav ul {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 48px 0;
    }
    
    .hero-container h1 {
        font-size: 32px;
    }
    
    .hero-container p {
        font-size: 16px;
    }
    
    .search-section {
        padding: 24px 0;
        margin: -32px 0 32px 0;
    }
    
    .search-box {
        gap: 16px;
    }
    
    .search-input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-btn {
        width: 100%;
        margin-left: 0;
        padding: 12px;
    }
    
    .filter-group {
        flex-direction: column;
        width: 100%;
    }
    
    .section-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .excel-download-btn {
        width: 100%;
        justify-content: center;
    }
    
    .announcement-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .announcement-title {
        margin-right: 0;
    }
    
    .announcement-item {
        padding: 16px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .pagination {
        gap: 4px;
    }
    
    .pagination button {
        padding: 6px 8px;
        min-width: 28px;
        font-size: 12px;
    }
    
    .main-content {
        padding: 30px 0;
    }
    
    .hero-section {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .hero-section h1 {
        font-size: 24px;
    }
    
    .hero-section p {
        font-size: 14px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .service-card {
        padding: 16px;
        height: 180px;
    }
}

/* 반응형 디자인 - 히어로 섹션 */
@media (max-width: 768px) {
    .main-content {
        padding: 0 0 40px 0;
    }
    
    .hero-section {
        padding: 60px 20px;
        margin-bottom: 40px;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        padding: 0 20px;
    }
    
    .service-card {
        padding: 24px;
        height: 180px;
    }
    
    .card-icon {
        width: 45px;
        height: 45px;
    }
    
    .card-icon i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero-container h1 {
        font-size: 28px;
    }
    
    .hero-container p {
        font-size: 14px;
    }
    
    .announcement-item {
        padding: 12px;
    }
    
    .search-section {
        padding: 16px 0;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .announcements-section {
        padding: 24px 0;
    }
    
    .hero-section h1 {
        font-size: 24px;
    }
    
    .service-card {
        padding: 20px;
    }
}

/* 추가된 스타일 */

/* 소스 정보 버튼 */
.source-info-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0078d4;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 8px;
}

.source-info-btn:hover {
    background: #106ebe;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 120, 212, 0.3);
}

.source-info-btn i {
    font-size: 14px;
}

/* 모달 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #0078d4 0%, #106ebe 100%);
    color: white;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
}

.close {
    color: white;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
}

.close:hover {
    opacity: 0.7;
    transform: scale(1.1);
}

.modal-body {
    padding: 24px;
    max-height: calc(90vh - 120px);
    overflow-y: auto;
}

.modal-description {
    margin-bottom: 20px;
    color: #605e5e;
}

.source-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.source-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e4e8;
}

.source-number {
    background: #0078d4;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

.source-info {
    flex: 1;
}

.source-info strong {
    display: block;
    color: #323130;
    margin-bottom: 4px;
    font-size: 14px;
}

.source-info a {
    color: #0078d4;
    text-decoration: none;
    font-size: 13px;
    word-break: break-all;
}

.source-info a:hover {
    text-decoration: underline;
}

/* 서비스 그리드 */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-top: 0;
    perspective: 1000px;
}

/* 서비스 카드 - 직사각형 버튼 스타일 */
.service-card {
    background: linear-gradient(135deg, 
        rgba(0, 120, 212, 0.9) 0%, 
        rgba(0, 188, 242, 0.9) 50%,
        rgba(106, 90, 205, 0.9) 100%
    );
    border-radius: 0;
    padding: 32px 24px;
    box-shadow: 
        0 8px 24px rgba(0, 120, 212, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    height: 200px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: white;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%
    );
    transition: left 0.5s ease;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 32px rgba(0, 120, 212, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    background: linear-gradient(135deg, 
        rgba(0, 120, 212, 0.95) 0%, 
        rgba(0, 188, 242, 0.95) 50%,
        rgba(106, 90, 205, 0.95) 100%
    );
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover::after {
    opacity: 1;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
}

.service-card:hover .card-icon {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.card-icon i {
    font-size: 22px;
    color: white;
    position: relative;
    z-index: 1;
}

.service-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 12px;
    line-height: 1.3;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.service-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.4;
    margin-bottom: 0;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

/* 기존 card-button 스타일 제거 - 카드 자체가 버튼이 됨 */
.card-button {
    display: none;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
        min-height: auto;
    }
    
    .nav ul {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .hero {
        padding: 48px 0;
    }
    
    .hero-container h1 {
        font-size: 32px;
    }
    
    .hero-container p {
        font-size: 16px;
    }
    
    .search-section {
        padding: 24px 0;
        margin: -32px 0 32px 0;
    }
    
    .search-box {
        gap: 16px;
    }
    
    .search-input-group {
        flex-direction: column;
        gap: 12px;
    }
    
    .search-btn {
        width: 100%;
        margin-left: 0;
        padding: 12px;
    }
    
    .filter-group {
        flex-direction: column;
        width: 100%;
    }
    
    .section-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 12px;
        width: 100%;
    }
    
    .excel-download-btn {
        width: 100%;
        justify-content: center;
    }
    
    .announcement-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .announcement-title {
        margin-right: 0;
    }
    
    .announcement-item {
        padding: 16px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .pagination {
        gap: 4px;
    }
    
    .pagination button {
        padding: 6px 8px;
        min-width: 28px;
        font-size: 12px;
    }
    
    .main-content {
        padding: 30px 0;
    }
    
    .hero-section {
        padding: 20px;
        margin-bottom: 30px;
    }
    
    .hero-section h1 {
        font-size: 24px;
    }
    
    .hero-section p {
        font-size: 14px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 16px;
    }
    
    .service-card {
        padding: 16px;
        height: 180px;
    }
}

/* 반응형 디자인 - 히어로 섹션 */
@media (max-width: 768px) {
    .main-content {
        padding: 0 0 40px 0;
    }
    
    .hero-section {
        padding: 60px 20px;
        margin-bottom: 40px;
    }
    
    .hero-section h1 {
        font-size: 32px;
    }
    
    .hero-section p {
        font-size: 16px;
    }
    
    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 20px;
        padding: 0 20px;
    }
    
    .service-card {
        padding: 24px;
        height: 180px;
    }
    
    .card-icon {
        width: 45px;
        height: 45px;
    }
    
    .card-icon i {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 40px 0;
    }
    
    .hero-container h1 {
        font-size: 28px;
    }
    
    .hero-container p {
        font-size: 14px;
    }
    
    .announcement-item {
        padding: 12px;
    }
    
    .search-section {
        padding: 16px 0;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .announcements-section {
        padding: 24px 0;
    }
    
    .hero-section h1 {
        font-size: 24px;
    }
    
    .service-card {
        padding: 20px;
    }
}

/* 추가된 서비스 카드 스타일 */

/* 교육 카드 - 파란색 계열 (신뢰와 안정) */
.service-card.caio {
    background: 
        linear-gradient(135deg, 
            rgba(185, 120, 41, 0.9) 0%, 
            rgba(219, 172, 52, 0.9) 50%,
            rgba(226, 170, 74, 0.9) 100%
        ),
        url('https://framerusercontent.com/images/AmU7c41wOROdeMX26MajZ5JYWZU.png') center/cover no-repeat;
    background-blend-mode: multiply;
    box-shadow: 
        0 8px 24px rgba(41, 128, 185, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.service-card.caio:hover {
    background: 
        linear-gradient(135deg, 
            rgba(185, 113, 41, 0.95) 0%, 
            rgba(219, 127, 52, 0.95) 50%,
            rgba(226, 208, 74, 0.95) 100%
        ),
        url('https://framerusercontent.com/images/AmU7c41wOROdeMX26MajZ5JYWZU.png') center/cover no-repeat;
    box-shadow: 
        0 12px 32px rgba(41, 128, 185, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}


.service-card.education {
    background: 
        linear-gradient(135deg, 
            rgba(41, 128, 185, 0.9) 0%, 
            rgba(52, 152, 219, 0.9) 50%,
            rgba(74, 144, 226, 0.9) 100%
        ),
        url('https://images.unsplash.com/photo-1557683316-973673baf926?w=800&q=80') center/cover no-repeat;
    background-blend-mode: multiply;
    box-shadow: 
        0 8px 24px rgba(41, 128, 185, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.service-card.education:hover {
    background: 
        linear-gradient(135deg, 
            rgba(41, 128, 185, 0.95) 0%, 
            rgba(52, 152, 219, 0.95) 50%,
            rgba(74, 144, 226, 0.95) 100%
        ),
}


.service-category {
    margin-bottom: 30px;
}

/* 정책 및 연구 카드 - 초록색 계열 (성장과 혁신) */
.service-card.policy2 {
    background: 
        linear-gradient(135deg, 
            rgba(15, 83, 44, 0.9) 0%, 
            rgba(17, 72, 40, 0.9) 50%,
            rgba(5, 38, 31, 0.9) 100%
        ),
}


.service-card.policy {
    background: 
        linear-gradient(135deg, 
            rgba(15, 83, 44, 0.9) 0%, 
            rgba(17, 72, 40, 0.9) 50%,
            rgba(5, 38, 31, 0.9) 100%
        ),
        url('https://cdn.pixabay.com/photo/2015/09/08/04/34/korea-929495_1280.jpg') center/cover no-repeat;
    background-blend-mode: multiply;
    box-shadow: 
        0 8px 24px rgba(46, 204, 113, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.service-card.policy:hover {
    background: 
        linear-gradient(135deg, 
            rgba(46, 204, 113, 0.95) 0%, 
            rgba(39, 174, 96, 0.95) 50%,
            rgba(26, 188, 156, 0.95) 100%
        ),
        url('https://cdn.pixabay.com/photo/2015/09/08/04/34/korea-929495_1280.jpg') center/cover no-repeat;
    box-shadow: 
        0 12px 32px rgba(46, 204, 113, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 행사 및 전시 카드 - 주황/빨강 계열 (역동성과 열정) */
.service-card.event2 {
    background: 
        linear-gradient(135deg, 
            rgba(111, 61, 17, 0.9) 0%, 
            rgba(112, 39, 30, 0.9) 50%,
            rgba(97, 32, 25, 0.9) 100%
        ),
        url('https://raw.githubusercontent.com/startups-koraia/startups/refs/heads/main/home_25_AIEXPO.png') center/cover no-repeat;
    background-blend-mode: multiply;
    box-shadow: 
        0 8px 24px rgba(230, 126, 34, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.service-card.event2:hover {
    background: 
        linear-gradient(135deg, 
            rgba(11, 126, 34, 0.95) 0%, 
            rgba(11, 76, 60, 0.95) 50%,
            rgba(11, 57, 43, 0.95) 100%
        ),
        url('https://raw.githubusercontent.com/startups-koraia/startups/refs/heads/main/home_25_AIEXPO.png') center/cover no-repeat;
    box-shadow: 
        0 12px 32px rgba(230, 126, 34, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}


.service-card.event {
    background: 
        linear-gradient(135deg, 
            rgba(19, 33, 137, 0.9) 0%, 
            rgba(45, 100, 79, 0.9) 50%,
            rgba(59, 92, 70, 0.9) 100%
        ),
        url('https://ces.koraia.org/images/ces_las_vegas_2024_945x430.jpg') center/cover no-repeat;
    background-blend-mode: multiply;
    box-shadow: 
        0 8px 24px rgba(230, 126, 34, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.service-card.event:hover {
    background: 
        linear-gradient(135deg, 
            rgba(11, 126, 34, 0.95) 0%, 
            rgba(11, 76, 60, 0.95) 50%,
            rgba(11, 57, 43, 0.95) 100%
        ),
        url('https://ces.koraia.org/images/ces_las_vegas_2024_945x430.jpg') center/cover no-repeat;
    box-shadow: 
        0 12px 32px rgba(230, 126, 34, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 정보 및 소통 카드 - 보라색 계열 (창의성과 소통) */

.service-card.communication2 {
    background: 
        linear-gradient(135deg, 
            rgba(182, 89, 162, 0.9) 0%, 
            rgba(173, 68, 159, 0.9) 50%,
            rgba(205, 90, 186, 0.9) 100%
        ),
}

.service-card.communication2:hover {
    background: 
        linear-gradient(135deg, 
            rgba(155, 89, 182, 0.95) 0%, 
            rgba(142, 68, 173, 0.95) 50%,
            rgba(106, 90, 205, 0.95) 100%
        ),
}


.service-card.communication {
    background: 
        linear-gradient(135deg, 
            rgba(155, 89, 182, 0.9) 0%, 
            rgba(142, 68, 173, 0.9) 50%,
            rgba(106, 90, 205, 0.9) 100%
        ),
        url('https://cdn.pixabay.com/photo/2018/01/16/09/53/the-golden-gate-bridge-3085626_1280.jpg') center/cover no-repeat;
    background-blend-mode: multiply;
    box-shadow: 
        0 8px 24px rgba(155, 89, 182, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.service-card.communication:hover {
    background: 
        linear-gradient(135deg, 
            rgba(155, 89, 182, 0.95) 0%, 
            rgba(142, 68, 173, 0.95) 50%,
            rgba(106, 90, 205, 0.95) 100%
        ),
        url('https://cdn.pixabay.com/photo/2018/01/16/09/53/the-golden-gate-bridge-3085626_1280.jpg') center/cover no-repeat;
    box-shadow: 
        0 12px 32px rgba(155, 89, 182, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.service-card h3,
.service-card p,
.service-card .card-icon {
    position: relative;
    z-index: 2;
}