:root {
    --main-color: #4A90E2;
    --accent-color: #50E3C2;
    --bg-color: #F0F4F8;
    --text-color: #333;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    color: var(--text-color);
}

/* a 태그 전역 스타일 */
a {
    text-decoration: none; /* 밑줄 제거 */
    color: inherit; /* 부모 요소의 색상 상속 */
}

/* 방문한 링크의 색상 유지 */
a:visited {
    color: inherit;
}

/* 호버 시 스타일 (선택사항) */
a:hover {
    opacity: 0.8; /* 약간 투명해지는 효과 */
}

.navbar {
    background: linear-gradient(to right, var(--main-color), var(--accent-color));
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    height: 55px; /* 모든 페이지에서 동일한 높이 */
}

.nav-links a {
    color: white;
    text-decoration: none;
    margin-right: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.nav-links a:hover {
    text-shadow: 0 0 10px rgba(255,255,255,0.8);
}

.auth-buttons button {
    background-color: white;
    color: var(--main-color);
    border: 1px solid white;
    padding: 10px 20px;
    margin-left: 10px;
    cursor: pointer;
    border-radius: 20px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.auth-buttons button:hover {
    background-color: var(--accent-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.maintitle {
    padding-bottom: 30px;
}

.main-content {
    padding: 60px;
    padding-bottom: 150px;
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

#sub {
    font-size: 25px;
}

h1, h2 {
    color: var(--main-color);
    font-size: 50px;
}

.sub-content {
    text-align: center;
}

#subtitle {
    padding-bottom: 20px;
}

.notice {
    height: 300px;
    padding-top: 30px;
    padding-bottom: 30px;
    border-top: 2px solid #000;
    display: flex;
    align-items: center; /* 수직 중앙 정렬 */
    justify-content: center;
}

#subtitle {
    font-size: 40px;
}

.sub-notice {
    border-top: 2px solid #000;
}

#notice-cost {
    font-size: 45px;
}

#cost-sub {
    font-size: 20px;
    color: lightgray;
}

.cost-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
    max-width: 1400px; /* 최대 너비 설정 */
    margin-left: auto;
    margin-right: auto;
}

.cost-card {
    flex: 1; /* 각 카드가 동일한 비율로 공간을 차지하도록 설정 */
    margin: 0 10px; /* 카드 간 간격 설정 */
    padding: 20px;
    background-color: white;
    text-align: center;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

.cost-notice {
    list-style-type: none;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 30px;
    max-width: 1500px; /* 최대 너비 설정 */
    margin-left: auto;
    margin-right: auto;
}

.service-card {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 70%; /* 카드 높이를 동일하게 유지 */
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}

.service-card h3 {
    margin-bottom: 5px;
    margin-top: 0;
    font-size: 23px;
    color: var(--main-color);
}

.service-card p {
    margin-top: 3px;
    margin-bottom: -10px;
    font-size: 1em;
}

.null-box {
    height: 150px;
}

#bottom-bar {
    height: 80px;
    background-color: black;
    text-align: center;
    position: relative;
}

.copyright {
    color: white;
    margin: 0;
    position: absolute; 
    left: 50%; 
    top: 50%; 
    transform: translate(-50%, -50%);
}