/* RevUpBrain 공통 스타일 (밝은 하늘 테마)
   하위 페이지(utility, donation, aboutus, contact)에서 함께 사용합니다. */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    font-family: 'Fredoka', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #2f3357;
    line-height: 1.6;
    padding-top: 80px;
    margin-bottom: 80px;
    overflow-x: hidden;
    background: #a8e0ff;
}

/* 고정된 하늘·언덕 배경 (모바일에서도 고정되도록 가상 요소 사용) */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: url("../images/scenery.svg") center bottom / cover no-repeat;
}

a {
    text-decoration: none;
    color: inherit;
}

button, .nav-item a {
    cursor: pointer;
    border: none;
    background: none;
    font: inherit;
    transition: all 0.2s ease;
    text-align: center;
    display: inline-block;
}

/* 상단 헤더 */
.header-placeholder {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 4px solid #ffd84d;
    box-shadow: 0 4px 20px rgba(40, 90, 160, 0.15);
    z-index: 1000;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 2.2em;
    font-weight: 700;
    letter-spacing: 1px;
}

/* 로고 글자마다 다른 색 */
.logo span:nth-child(6n+1) { color: #ff5c7a; }
.logo span:nth-child(6n+2) { color: #ff9a3d; }
.logo span:nth-child(6n+3) { color: #f5b800; }
.logo span:nth-child(6n+4) { color: #2fbf71; }
.logo span:nth-child(6n+5) { color: #3b8bff; }
.logo span:nth-child(6n+6) { color: #9b6bff; }

.header-nav {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-item a {
    font-size: 1.05em;
    font-weight: 600;
    color: #2f3357;
    padding: 8px 16px;
    border-radius: 999px;
}

.nav-item a:hover {
    background: #ffd84d;
}

.nav-item a.active {
    background: #2f3357;
    color: #fff;
}

/* 페이지 본문 */
.page-section {
    padding: 30px 15px;
    text-align: center;
    margin: 20px auto;
    max-width: 1000px;
}

.page-title {
    font-size: 3.5em;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 15px;
    -webkit-text-stroke: 2px #2f3357;
    text-shadow: 0 6px 0 #ff9a3d, 0 10px 20px rgba(0, 0, 0, 0.2);
}

.page-subtitle {
    display: inline-block;
    font-size: 1.2em;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 24px;
    border-radius: 999px;
    margin-bottom: 35px;
    box-shadow: 0 4px 12px rgba(40, 90, 160, 0.15);
}

/* 흰색 카드 패널 (색상은 --panel-color 변수로 지정) */
.panel {
    --panel-color: #3b8bff;
    --panel-dark: #1f5fc4;
    --panel-light: #dcebff;
    padding: 30px 35px 35px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.95);
    border-top: 10px solid var(--panel-color);
    box-shadow: 0 15px 35px rgba(40, 90, 160, 0.2);
    text-align: left;
    margin-bottom: 40px;
}

.panel-yellow { --panel-color: #f5a400; --panel-dark: #b36b00; --panel-light: #fff1cc; }
.panel-blue   { --panel-color: #3b8bff; --panel-dark: #1f5fc4; --panel-light: #dcebff; }
.panel-pink   { --panel-color: #ff5c9a; --panel-dark: #c22e6a; --panel-light: #ffe0ee; }
.panel-green  { --panel-color: #2fbf71; --panel-dark: #1b8a4d; --panel-light: #d9f7e6; }

.panel-title {
    font-size: 2em;
    font-weight: 700;
    color: var(--panel-dark);
    margin-bottom: 20px;
}

.panel p {
    font-size: 1.1em;
    margin-bottom: 18px;
}

.panel p a {
    color: var(--panel-dark);
    font-weight: 600;
    text-decoration: underline;
}

/* 젤리처럼 통통한 버튼 */
.candy-button {
    --btn-color: #ff7a45;
    --btn-shadow: #c94f1f;
    display: inline-block;
    padding: 12px 28px;
    font-size: 1.1em;
    background: var(--btn-color);
    color: #fff;
    font-weight: 700;
    border-radius: 999px;
    box-shadow: 0 6px 0 var(--btn-shadow), 0 10px 20px rgba(0, 0, 0, 0.15);
    text-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.candy-button:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 9px 0 var(--btn-shadow), 0 14px 24px rgba(0, 0, 0, 0.18);
}

.candy-button:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--btn-shadow), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.candy-button:focus-visible, .nav-item a:focus-visible, a:focus-visible {
    outline: 4px solid #2f3357;
    outline-offset: 3px;
}

/* 푸터 */
.site-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    color: #2f3357;
    padding: 15px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 4px solid #2fbf71;
    height: 70px;
}

.footer-brand span {
    font-size: 1.2em;
    font-weight: 700;
}

.footer-nav-footer a {
    font-weight: 600;
    text-decoration: underline;
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; }
}

/* 반응형 디자인 */
@media (max-width: 992px) {
    .header-placeholder { flex-direction: column; align-items: flex-start; padding-bottom: 10px; }
    .logo { margin-bottom: 10px; }
    .header-nav { width: 100%; flex-direction: column; align-items: flex-start; gap: 5px; }
    .nav-item a { padding: 8px 15px; width: 100%; text-align: left; }
    body { padding-top: 260px; }
}

@media (max-width: 768px) {
    .logo { font-size: 1.8em; }
    .page-title { font-size: 2.6em; }
    .panel { padding: 22px 18px 25px; }
    .panel-title { font-size: 1.6em; }
    .site-footer { padding: 10px 15px; height: auto; flex-direction: column; text-align: center; gap: 10px; }
}
