/* =========================
   기본 설정
========================= */

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

body{
  font-family:'SUIT', sans-serif;
  background:#f5f7fb;
  color:#222;
  overflow-x:hidden;
}

img{
  max-width:100%;
  height:auto;
}

/* =========================
   NAVBAR
========================= */

.navbar-wrap{
  width:100%;
  background:white;
  position:sticky;
  top:0;
  z-index:1000;
  box-shadow:0 2px 10px rgba(0,0,0,0.05);
}

.navbar{
  width:100%;
  max-width:1400px;
  margin:0 auto;
  padding:14px 30px;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:18px;
}

.logo{
  display:flex;
  align-items:center;
  text-decoration:none;
  flex-shrink:0;
}

.logo img{
  height:72px;
  display:block;
}

.menu{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:42px;
  list-style:none;
  flex-wrap:wrap;
}

.menu li{
  list-style:none;
  flex-shrink:0;
}

.menu a{
  text-decoration:none;
  color:#222;
  font-size:18px;
  font-weight:900;
  white-space:nowrap;
}

.menu a:hover{
  color:#4bb3ff;
}

/* 로그인 / 로그아웃 버튼 */

.menu a.login-btn,
.menu a.admin-login-btn,
.menu a#logoutBtn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:10px 18px !important;
  border:2px solid #222 !important;
  border-radius:14px !important;
  background:white !important;
  color:#222 !important;
  font-size:14px !important;
  font-weight:800 !important;
  line-height:1 !important;
  text-decoration:none !important;
  white-space:nowrap !important;
  margin-left:8px;
  transform:translateY(-1px);
}

.menu a.login-btn:hover,
.menu a.admin-login-btn:hover,
.menu a#logoutBtn:hover{
  background:#222 !important;
  color:white !important;
}

/* =========================
   서비스 페이지
========================= */

.title-section{
  text-align:center;
  padding:70px 20px 35px;
}

.title-section h1{
  font-size:56px;
  font-weight:900;
  line-height:1.2;
  margin-bottom:12px;
  white-space:nowrap;
}

.title-section p{
  font-size:17px;
  line-height:1.7;
  color:#555;
}

.service-wrap{
  width:100%;
  max-width:1100px;
  margin:0 auto 80px;
  padding:0 24px;
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:24px;
}

.service-card{
  background:white;
  border-radius:24px;
  padding:34px 32px;
  box-shadow:0 10px 28px rgba(0,0,0,0.08);
  border:1px solid #edf0f5;
}

.service-card h2{
  text-align:left;
  margin-bottom:14px;
  font-size:42px;
  font-weight:900;
  line-height:1.2;
  color:#222;
  white-space:nowrap;
}

.service-card p{
  font-size:17px;
  line-height:1.8;
  color:#555;
}

/* =========================
   모바일
========================= */

@media(max-width:768px){

  .navbar{
    flex-direction:column;
    justify-content:center;
    padding:18px 20px;
    gap:18px;
  }

  .logo img{
    height:72px;
  }

  .menu{
    width:100%;
    flex-wrap:wrap;
    justify-content:center;
    gap:16px;
  }

  .menu a{
    font-size:15px;
    white-space:nowrap;
  }

  .menu a.login-btn,
  .menu a.admin-login-btn,
  .menu a#logoutBtn{
    padding:12px 20px !important;
    font-size:15px !important;
  }

  .title-section{
    padding:48px 18px 28px;
  }

  .title-section h1{
    font-size:38px;
    white-space:nowrap;
  }

  .title-section p{
    font-size:15px;
  }

  .service-wrap{
    grid-template-columns:1fr;
    gap:20px;
    padding:0 18px 60px;
    margin:0 auto;
  }

  .service-card{
    border-radius:22px;
    padding:26px 22px;
  }

  .service-card h2{
    font-size:30px;
    line-height:1.25;
    white-space:nowrap;
  }

  .service-card p{
    font-size:16px;
    line-height:1.7;
  }
}

/* =========================
   초소형 모바일
========================= */

@media(max-width:480px){

  .menu{
    gap:14px;
  }

  .menu a{
    font-size:14px;
    white-space:nowrap;
  }

  .menu a.login-btn,
  .menu a.admin-login-btn,
  .menu a#logoutBtn{
    font-size:14px !important;
    padding:11px 18px !important;
  }

  .title-section h1{
    font-size:34px;
    white-space:nowrap;
  }

  .service-card h2{
    font-size:28px;
    white-space:nowrap;
  }

  .service-card p{
    font-size:15px;
  }
}

/* 관리자 로그인 상태 navbar */

.navbar.admin-mode{
  flex-direction:column !important;
  justify-content:center !important;
  align-items:center !important;
  gap:14px !important;
  padding:14px 30px !important;
}

.navbar.admin-mode .logo img{
  height:72px !important;
}

.navbar.admin-mode .menu{
  width:100% !important;
  justify-content:center !important;
  flex-wrap:wrap !important;
  gap:28px !important;
}

.navbar.admin-mode .menu a{
  font-size:17px !important;
}

/* 관리자 상태에서도 로그아웃 버튼 강제 적용 */

.navbar.admin-mode .menu a#logoutBtn{
  display:inline-flex !important;
  align-items:center !important;
  justify-content:center !important;
  padding:10px 18px !important;
  border:2px solid #222 !important;
  border-radius:14px !important;
  background:white !important;
  color:#222 !important;
  font-size:14px !important;
  font-weight:800 !important;
  line-height:1 !important;
  text-decoration:none !important;
}

.navbar.admin-mode .menu a#logoutBtn:hover{
  background:#222 !important;
  color:white !important;
}