/* 원불교 기록관리소 아카이브 시스템 메인 페이지 스타일 */

:root {
    --primary-color: #0066cc;
    --secondary-color: #004080;
    --accent-color: #e67700;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --medium-gray: #e0e0e0;
    --dark-gray: #666;
    --white: #ffffff;
    --box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif, Arial, Helvetica;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-gray);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    flex: 1;
}

header {
    background-color: var(--white);
    box-shadow: var(--box-shadow);
    padding: 1rem 0;
}

.logo-title {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.3rem;
}

.logo {
    height: 60px; /* 또는 원하는 크기 */
    width: auto; /* 비율 유지 */
    margin-right: 1rem;
}

h1 {
    font-size: 1.8rem;
    color: var(--secondary-color);
}

.record-system-link {
    text-align: center;
    margin-bottom: 0.5rem;
}

.record-system-link a {
    font-size: 1.5rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.record-system-link a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

main {
    padding: 2rem 0;
    flex: 1;
}

.intro-section {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.intro-section h2 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.intro-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.highlight {
    color: var(--accent-color);
    font-weight: 500;
}

.archives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.archive-card {
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: var(--box-shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.archive-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card-image {
    height: 120px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

.policy-image {
    background-color: #e8f4fd;
}

.kyohwa-image {
    background-color: #e8f0ea;
}

.history-image {
    background-color: #f9f2e7;
}

.digital-image {
    background-color: #eee8f4;
}

.card-content {
    padding: 1.25rem;
}

.card-content h3 {
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.card-content p {
    color: var(--dark-gray);
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
    height: 110px;
    overflow: hidden;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    font-size: 0.9rem;
}

.btn:hover {
    background-color: var(--secondary-color);
}

.btn-icon {
    margin-left: 0.5rem;
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.coming-soon {
    position: relative;
}

.coming-soon-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(230, 119, 0, 0.9);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: bold;
}

footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 1.5rem 0;
    text-align: center;
    margin-top: auto;
}

footer p {
    margin-bottom: 0.5rem;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: var(--white);
    margin: 0 10px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

@media (max-width: 992px) {
    .archives-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }
    
    .archives-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .intro-section {
        padding: 1.5rem;
    }
    
    .card-content p {
        height: 130px;
    }
}

@media (max-width: 576px) {
    .archives-grid {
        grid-template-columns: 1fr;
    }
    
    .card-content p {
        height: auto;
    }
}

/* 아이콘 스타일 */
.card-icon {
    font-size: 2.5rem;
    color: var(--primary-color);
}
