* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "맑은 고딕", sans-serif;

    /* 🌃 야경 느낌 배경 */
    background: linear-gradient(
        to bottom,
        #0b0f2a 0%,
        #1a1f4b 40%,
        #2b2f6a 70%,
        #0a0a1a 100%
    );

    min-height: 100vh;
}

/* 헤더 */
header {
    background-color: rgba(255, 255, 255, 0.95);
    color: #2c3e50;

    padding: 20px;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;

    border-bottom: 1px solid #ddd;
}

/* 메뉴 */
.menu {
    list-style: none;

    display: flex;
    gap: 20px;

    position: absolute;
    right: 20px;
}

.menu a {
    color: #2c3e50;
    text-decoration: none;
    font-weight: bold;
}

.menu a:hover {
    color: #f1c40f;
}

/* 카드 영역 */
.card-container {
    width: 90%;
    margin: 30px auto;

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* 카드 */
.card {
    background-color: rgba(255, 255, 255, 0.95);

    border-radius: 12px;

    overflow: hidden;

    box-shadow: 0 6px 15px rgba(0,0,0,0.25);

    transition: transform 0.3s;
}

.card:hover {
    transform: translateY(-6px);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 20px;
}

.card-body h2 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.card-body p {
    line-height: 1.6;
    margin-bottom: 15px;
    color: #555;
}

.detail-link {
    text-decoration: none;
    color: #3498db;
    font-weight: bold;
}

.detail-link:hover {
    text-decoration: underline;
}

/* 카드 하단 */
.card-footer {
    padding: 15px 20px;
    border-top: 1px solid #ddd;

    display: flex;
    justify-content: space-between;
}

.card-footer a {
    text-decoration: none;
    color: white;
    background-color: #34495e;

    padding: 8px 15px;
    border-radius: 5px;
}

.card-footer a:hover {
    background-color: #2c3e50;
}

/* 페이지 이동 */
footer {
    text-align: center;
    margin: 40px 0;
}

.pagination a {
    text-decoration: none;
    color: #333;

    border: 1px solid #ccc;
    padding: 10px 15px;
    margin: 0 5px;

    background-color: white;
}

.pagination a:hover {
    background-color: #3498db;
    color: white;
}