@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@400;500;700&display=swap');

body {
    font-family: 'Noto Sans KR', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    margin: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23d4d8e8' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

header {
    width: 100%;
    max-width: 1000px;
    margin-bottom: 30px;
    text-align: center;
    padding-bottom: 20px;
}

header h1 {
    font-size: 3rem;
    color: #1a237e;
    margin: 0 0 20px 0;
    font-weight: 700;
}

nav {
    background-color: #ffffff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    display: inline-block;
}

nav a {
    text-decoration: none;
    color: #333;
    margin: 0 20px;
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: #3f51b5;
}

main {
    width: 100%;
    max-width: 1000px;
}

.card {
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    padding: 30px;
    margin-bottom: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.card h2 {
    font-size: 2rem;
    margin-top: 0;
    margin-bottom: 25px;
    color: #1a237e;
    border-bottom: 2px solid #e8eaf6;
    padding-bottom: 15px;
}

.exam-category {
    margin-bottom: 25px;
}

.exam-category h3 {
    font-size: 1.5rem;
    color: #3f51b5;
    margin-bottom: 15px;
}

.exam-category ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.exam-category li a {
    display: block;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    color: #3f51b5;
    background-color: #e8eaf6;
    margin-bottom: 0;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.exam-category li a:hover {
    background-color: #3f51b5;
    color: #ffffff;
}

.university-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 25px;
}

.letter-heading {
    grid-column: 1 / -1;
    font-size: 1.8rem;
    color: #1a237e;
    margin-top: 25px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 3px solid #3f51b5;
}

.uni-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: #333;
    padding: 20px;
    border-radius: 12px;
    background-color: #f8f9fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.uni-link:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(63, 81, 181, 0.2);
}

.uni-link img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 15px;
    object-fit: contain;
    background-color: #ffffff;
    border: 2px solid #e8eaf6;
    padding: 5px;
}

.uni-link span {
    font-size: 1rem;
    font-weight: 500;
}

@media (max-width: 600px) {
    header h1 {
        font-size: 2.2rem;
    }
    nav a {
        margin: 0 10px;
        font-size: 1rem;
    }
    .card h2 {
        font-size: 1.6rem;
    }
    .exam-category h3 {
        font-size: 1.3rem;
    }
    .university-grid {
        grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    }
}

/* Blog Specific Styles */
.post-meta {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.post-content {
    line-height: 1.8;
    font-size: 1.1em;
}

.post-content h3 {
    font-size: 1.5rem;
    color: #3f51b5;
    margin-top: 30px;
    margin-bottom: 15px;
}

.post-content p {
    margin-bottom: 1em;
}

.post-content ul, .post-content ol {
    margin-bottom: 1em;
    padding-left: 20px;
}

.post-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.post-content a {
    color: #3f51b5;
    text-decoration: underline;
}

.post-content a:hover {
    color: #1a237e;
}
#exam-filters {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

#exam-filters select {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #ddd;
    font-size: 1rem;
    background-color: #fff;
    cursor: pointer;
}

#exam-list {
    display: grid;
    gap: 20px;
}

.exam-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    transition: box-shadow 0.3s;
}

.exam-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.exam-info h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
}

.btn-ebsi {
    text-decoration: none;
    background-color: #3f51b5;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-ebsi:hover {
    background-color: #1a237e;
}

.btn-ebsi i {
    margin-right: 8px;
}