* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans KR", Helvetica, Arial, sans-serif;
  color: #444;
  max-width: 100%;
  overflow-x: hidden;
}
a {
  cursor: pointer;
}
.logo img {
  height: 40px; /* 필요에 따라 조정 */
  vertical-align: middle;
}
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(0, 0, 0, 0.6);
}

.nav-links {
  display: flex;
  gap: 30px;
}
.nav-links li {
  list-style: none;
}
.nav-links a {
  color: #fff;
  text-decoration: none;
}
.hamburger {
  display: none;
  font-size: 26px;
  cursor: pointer;
  color: #fff;
}

.mobile-br {
display: none */;
}

/* Responsive */
@media (max-width: 768px) {
  html, body {
  max-width: 100%;
  overflow-x: hidden;
}

  .navbar {
    display: flex;
    justify-content: space-between;
    align-items: center; /* 중요 */
    padding: 10px 20px;
  }

  .logo {
    display: flex;
    align-items: center;
    height: 35px; /* 로고 높이 제한 */
  }

  .logo img {
    height: 100%;
    object-fit: contain;
    display: block;
    margin-top: 5px;
    margin-bottom: 5px;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    background: rgba(0, 0, 0, 0.75);
    position: absolute;
    top: 70px;
    right: 20px;
    padding: 20px;
  }
  .nav-links.active {
    display: flex;
  }
  .hamburger {
    display: block;
    font-size: 24px;
    cursor: pointer;
    margin-left: auto;
    align-self: center;
    color: #fff;
  }

 /*--------------------하단 CTA 버튼들--------------------*/
   .bottom-fixed-bar {
     position: fixed;
     bottom: 0;
     left: 0;
     width: 100%;
     height: 60px;
     background-color: #2C3E50;
     box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
     display: flex;
     justify-content: space-around;
     align-items: center;
     z-index: 999;
   }

   .bottom-fixed-bar a {
     display: flex;
     align-items: center;
     justify-content: center;
     flex: 1;
     font-size: 15px;
     font-weight: 600;
     color: #FAF3E0;
     text-decoration: none;
     height: 100%;
     border-right: 1px solid rgba(255, 255, 255, 0.1);
     border-top: 1px solid rgba(255, 255, 255, 0.1);
     white-space: nowrap;
   }

   .bottom-fixed-bar a:active {
     background-color: rgba(255, 255, 255, 0.1); /* 눌린 느낌 */
     transform: scale(0.98); /* 살짝 줄어들게 */
   }

   .bottom-fixed-bar a:last-child {
     border-right: none;
   }
/*
   .bottom-fixed-bar a:nth-child(1) {
     animation: softPulse 12s infinite;
     animation-delay: 0s;
   }

   .bottom-fixed-bar a:nth-child(2) {
     animation: softPulse 12s infinite;
     animation-delay: 4s;
   }

   .bottom-fixed-bar a:nth-child(3) {
     animation: softPulse 12s infinite;
     animation-delay: 8s;
   }*/
}
/*
@keyframes softPulse {
 0%, 16.6% {
   font-size: 15px;
   text-shadow: none;
 }
 25% {
   font-size: 18px;
   text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
 }
 33.3%, 100% {
   font-size: 15px;
   text-shadow: none;
 }
}
*/
@media (min-width: 769px) {
 .bottom-fixed-bar {
   display: none;
 }
}


/* -------------------이상 공통 메뉴--------------------*/
.case-title {
  font-size: 17px;
  color: #333;
  margin: 2px 0 0 0;
  font-weight: 600;
  line-height: 1.4;
}
.case-summary {
  margin-top: 7px;
  font-size: 14px;
  color: #666;
  font-weight: 300;
  line-height: 1.5;
}

.case-title,
.case-summary {
  display: -webkit-box;
  -webkit-line-clamp: 2;       /* 최대 2줄 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.case-date {
  font-size: 14px;
  color: #999;
  margin-top: 7px;
}
/*------------- 글 페이지 ----------------*/
/* 상세 페이지 전체 레이아웃 */
.case-detail {
  background-color: #fff;
}

.case-detail .container {
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.8;
  padding: 0px 20px 0 20px;
}

/* 제목 & 날짜 */
.case-header {
  background-color: #E3E8EE;
  padding: 150px 0 20px;
  width: 100%;
  margin-bottom: 60px;
}

.case-mini-title a{
  font-size: 14px;
  color: #7A8B99;
  font-weight: bold;
  border-bottom: 2px solid #7A8B99;
  display: inline-block;
  margin-bottom: 20px;
  text-decoration: none;
}
.case-mini-title a:hover {
  color: #2C3E50;
  border-bottom: 2px solid #2C3E50;
}
.case-detail .case-title {
  font-size: 28px;
  font-weight: 400;
  margin-bottom: 15px;
  color: #2C3E50;
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  text-overflow: unset;
}

.case-detail .case-date {
  font-size: 14px;
  color: #888;
  margin-bottom: 20px;
}

/* 본문 */
.case-detail .case-summary {
  display: block;
  -webkit-line-clamp: unset;
  -webkit-box-orient: unset;
  overflow: visible;
  text-overflow: unset;
}

.case-content {
  color: #333;
  font-size: 16px;
  font-weight: 280;
  line-height: 2;
}

.case-detail .case-content p {
  color: #333;
  margin-bottom: 1.2em;
  font-size: 16px;
  font-weight: 280;
  line-height: 2;
}
.case-detail .quote-box {
  background-color: #f5f5f5;
  border-left: 4px solid #CBAE8E;
  padding: 20px 40px 20px 30px;
  margin: 24px 0;
  font-size: 15px;
  font-weight: 400;
  width: 100%;
}

.case-detail .case-content ul,
.case-detail .case-content ol {
  padding-left: 20px;
  margin-bottom: 1.2em;
}

.case-detail .case-content h2 {
  color: #2C3E50;
  padding: 10px 0;
  font-size: 22px;
  font-weight: 500;
  margin: 2.5em 0 0.8em;
}

.case-detail .case-content h3 {
  position: relative;
  padding-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
  color: #2C3E50;
}
.case-detail .case-content h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: #CBAE8E;
}

.case-detail .case-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin: 20px 0;
}

.case-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1000px;
  margin: 3rem auto;
}

.case-tags {
  padding-left: 20px;
}

.tag {
  display: inline-block;
  background-color: #f1f1f1;
  color: #333;
  border-radius: 5px;
  padding: 4px 8px;
  font-size: 14px;
  margin: 2px 6px 2px 0;
}

.tag:first-of-type {
  background-color: #2FA1D6;
  color: #fff;
  font-weight: 600;
}

.case-nav {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1000px;
  margin: 70px auto 80px;
  padding: 1.6rem 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
}

.nav-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 45%;
  flex-shrink: 1;
  overflow: hidden;
}

.nav-box .title {
  display: -webkit-box;
  -webkit-line-clamp: 2;       /* 최대 2줄 */
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
  font-size: 0.95rem;
  color: #666;
  font-size: 15px;
  line-height: 1.3rem;
  text-decoration: none;
}
.nav-box .title:hover {
  color: #E0C7A5;
}

.nav-box .arrow {
  color: #E0C7A5;
  padding: 8px 14px;
  text-decoration: none;
  font-size: 36px;
  font-weight: bold;
}
.nav-box .arrow:hover {
  color: #2C3E50;
}

/*--------------------푸터--------------------*/
.site-footer {
  background-color: #2C3E50;
  color: #FAF3E0;
  padding: 60px 20px;
  font-size: 14px;
  line-height: 1.6;
}

.footer-container {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.footer-logo img {
  max-height: 50px;
  margin-bottom: 20px;
}

/* 네비게이션 메뉴
.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 20px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-nav a {
  color: #FAF3E0;
  text-decoration: none;
  font-weight: 500;
}

.footer-nav a:hover {
  text-decoration: underline;
}*/

/* 블로그 아이콘 */
.footer-icons a {
  text-decoration: none;
}

.footer-icons img {
  height: 30px;
  margin: 0 5px;
  filter: brightness(95%);
  transition: transform 0.2s ease;
}
.footer-icons img:hover {
  transform: scale(1.1);
}

.footer-map-btn img {
  width: 30px;
  border-radius: 50%;
}

/* 면책공고 */
.footer-disclaimer {
  font-size: 13px;
  margin: 20px auto 10px;
  max-width: 100%;
  color: #cccccc;
}

/* 카피라이트 */
.footer-copy {
  margin-top: 10px;
  font-size: 12px;
  color: #999999;
}

/*--------------둥둥----------------*/
.floating-icons {
  position: fixed;
  top: 70%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  z-index: 999;
}

.floating-icons a {
  display: block;
  width: 60px;
  height: 60px;
  background-color: #f7f7f7;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.2s ease;
}

.floating-icons a:hover {
  transform: scale(1.1);
}

.floating-icons a:not(:first-child) {
  margin-top: 15px;
}

.floating-icons img {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  opacity: 85%;
}
.floating-icons a:first-child img {
  width: 35px;
  height: 35px;
  border-radius: 0%;
  transform: translateY(7%);
}
.pc-only {
  display: block;
}
.mo-only {
  display: none !important;
}

/* 모바일 대응 */
@media (max-width: 768px) {
  html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}
.pc-only {
  display: none !important;
}
.mo-only {
  display: block !important;
}
.mobile-br {
  display: inline;
}
  .case-list-intro {
    background-image: url('/files/cases/casebg2.png');
    background-size: cover;
    background-position: center;
    width: 100%;
    min-height: 230px;
  }

  .intro-text {
    padding-top: 100px; /* ✅ 너무 위로 밀리지 않게 조정 */
    text-align: center;
    color: white;
    z-index: 100;
  }
  .case-detail .container {
    max-width: 768px;
    margin: 0 auto;
    line-height: 1.8;
    padding: 0px 20px 0 20px;
  }
  .case-header {
    padding: 110px 0 20px;
    width: 100%;
  }
  .case-mini-title p{
    margin-bottom: 20px;
  }
  .case-detail .case-title {
    font-size: 24px;
  }

  .case-detail .container {
    padding: 0 20px;
  }
  .case-nav {
    align-items: center;
    gap: 1.2rem;
  }
  .next-title {
    padding-right: 0.5rem;
    text-align: left;
  }

  .prev-title {
    padding-left: 0.5rem;
    text-align: left;
  }
  .site-footer {
    margin-bottom: 60px;
  }
  .footer-logo img {
    max-height: 40px;
  }

  .footer-icons img {
    height: 28px;
  }

  .footer-disclaimer {
    font-size: 12px;
    padding: 0 10px;
  }

  .footer-copy {
    font-size: 11px;
  }
}
/*===================== pc버전 대응 ======================*/
/* @media (min-width: 768px) {
 .intro-text {
    display: flex;
    flex-direction: column;
    max-width: 768px;
    text-align: left;
    margin: 200px auto;
  }
*/
/*----애니메이션----*/
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
