/* Since 20/Sep, 2022 Modify by K. Ji */

/* ===== Bootstrap table-dark header fix (global) ===== */
table thead.table-dark th,
.table-dark th {
    background-color: #212529 !important;
    color: #fff !important;
}

/* ===== Mega Menu ===== */
.mega-trigger { font-weight: 600; font-size: 15px; border-bottom: 3px solid transparent; margin-bottom: -3px; transition: border-color .2s, color .2s; }
.mega-trigger:hover, .mega-trigger.active-mega { color: #1a1a5e !important; border-bottom-color: #1a1a5e; }
.mega-panel { display: none; position: absolute; left: 0; right: 0; top: 0; background: #fff; border-top: 1px solid #1a1a5e; box-shadow: 0 8px 24px rgba(0,0,0,.15); z-index: 1040; animation: megaSlide .2s ease; }
.mega-panel.show { display: block; }
@keyframes megaSlide { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.mega-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px; padding: 20px 0; }
.mega-item { padding: 12px; border-radius: 8px; transition: background .2s; text-decoration: none; color: inherit; display: flex; align-items: flex-start; gap: 12px; }
.mega-item:hover { background: #f0f4ff; color: inherit; text-decoration: none; }
.mega-icon { width: 36px; height: 36px; min-width: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; color: #fff; }
.mega-item-text { flex: 1; }
.mega-item h6 { font-weight: 700; font-size: 13px; margin-bottom: 2px; color: #222; }
.mega-item p { font-size: 11px; color: #888; margin: 0; line-height: 1.3; }
.mega-overlay { display: none; position: fixed; inset: 0; z-index: 1029; background: rgba(0,0,0,.05); }
.mega-overlay.show { display: block; }

/* Search button (round pink) */
.search-submit-round { width: 34px; height: 34px; border-radius: 50%; background: #e91e63; color: #fff; border: none; font-size: 14px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.search-expand-panel { display: none; position: absolute; right: 0; top: 100%; width: 280px; padding: 10px; background: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.15); border-radius: 8px; z-index: 1050; margin-top: 4px; }
.search-expand-panel.show { display: block; }

@media (max-width: 991.98px) {
    .mega-panel { position: static; box-shadow: none; }
    .mega-inner { grid-template-columns: 1fr 1fr; padding: 12px; gap: 8px; }
    /* Mobile offcanvas: prevent body padding/shrink */
    body.offcanvas-open, body[style*="padding-right"] {
        padding-right: 0 !important;
        overflow: auto !important;
    }
    /* Position below navbar, not from top */
    #mobileMenu.offcanvas-top {
        z-index: 1045;
        top: auto !important;
        height: auto !important;
        max-height: calc(100vh - 120px);
        border-bottom: 3px solid #1a1a5e;
        box-shadow: 0 4px 12px rgba(0,0,0,.15);
    }
    #mobileMenu .offcanvas-header { display: none; }
    #mobileMenu .offcanvas-body { overflow-y: auto; }
    #mobileMenu .accordion-button { padding: 8px 16px; font-size: 15px; }
    #mobileMenu .accordion-body a { font-size: 14px; }
    #mobileMenu .text-start, #mobileMenu a.text-start { text-align: left !important; }
}
@media (max-width: 575.98px) {
    .mega-inner { grid-template-columns: 1fr; }
}

/* ===== New Footer ===== */
.site-footer { background: #1a1a2e !important; color: #ccc; }
.site-footer .footer-logo { text-align: left; }
.site-footer .footer-intro, .site-footer .footer-tagline { text-align: left; }
.site-footer a { color: #ccc; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-intro { font-size: 13px; line-height: 1.6; color: #bbb; margin-bottom: 4px; }
.footer-tagline { font-size: 12px; color: #f9a825; font-style: italic; }
.footer-heading { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-contact-wrap {
    position: relative;
    overflow: hidden;
    padding: 20px 20px 20px 0;
}
.footer-contact-wrap::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 160px;
    background: url('/assets/images/page/bg-world.png') no-repeat left center;
    background-size: contain;
    opacity: .1;
    pointer-events: none;
}
.footer-contact-list li { font-size: 13px; margin-bottom: 6px; display: flex; align-items: flex-start; gap: 8px; position: relative; z-index: 1; color: #bbb; }
.footer-contact-list li i { min-width: 16px; text-align: center; margin-top: 2px; }
.footer-contact-title { font-size: 15px; margin-bottom: 10px !important; }
.footer-contact-title i { margin-top: 1px !important; }
.footer-policy-bar { border-top: 1px solid rgba(255,255,255,.1); padding: 14px 0; text-align: center; }
.policy-links { display: flex; flex-wrap: wrap; gap: 6px 14px; justify-content: center; font-size: 12px; }
.policy-links a { color: #aaa; }
.policy-links a:hover { color: #fff; }
.cookie-settings-trigger { background: none; border: none; color: #aaa; font-size: 12px; cursor: pointer; padding: 0; }
.cookie-settings-trigger:hover { color: #fff; }
.footer-copyright { background: #111; padding: 10px 0; font-size: 11px; color: #888; text-align: center; }

@media (max-width: 575.98px) {
    .site-footer .row { text-align: left; }
    .site-footer .footer-logo { text-align: left; }
    .footer-contact-wrap::before { display: none; }
    .footer-contact-wrap { align-items: flex-start !important; }
    .footer-contact-list { margin-top: 8px; }
    .policy-links { justify-content: flex-start; padding-left: 4px; }
}

/* Language card */
.lang-card { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border: 1px solid #e5e7eb; border-radius: 20px; text-decoration: none; color: #555; transition: all .2s; font-size: 13px; }
.lang-card:hover { border-color: #1a1a5e; background: #1a1a5e; color: #fff; text-decoration: none; }
.lang-card.active { border-color: #1a1a5e; background: #1a1a5e; color: #fff; }
.lang-flag { font-size: 11px; opacity: .7; }

/* ===== Online Indicator Pulse ===== */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

/* ===== Accessibility ===== */

/* Skip to Main Content Link */
.skip-to-main {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background: #212529;
  color: #fff;
  padding: 8px 20px;
  z-index: 10000;
  border-radius: 0 0 6px 6px;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-to-main:focus {
  top: 0;
  color: #fff;
  outline: 3px solid #ffc107;
}

/* Focus Indicators - All interactive elements */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #ffc107;
  outline-offset: 2px;
}

/* ===== End Accessibility ===== */

/* Sticky Footer Support */
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body.d-flex {
  flex-direction: column;
}

body.d-flex.sticky-footer-body {
  min-height: 100vh;
}

/* font-family is defined in webfonts.css */

.fixed-top {
  top: 0px;
  z-index: 10000;
}

/* Page-specific overrides */
footer {
  color: #d9d7cf !important;
  background-color: transparent !important;
}

#navbar-top {
  position: sticky;
  top: 0;
  width: 100%;
  z-index: 10000;
  background-color: #212529 !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  vertical-align: middle;
}

#navbar-top .nav-link {
  font-size: 0.95rem;
}

/* 상단 바 모바일: 3단 세로 정렬 */
@media (max-width: 576px) {
  #navbar-info {
    flex-direction: column !important;
    align-items: center !important;
    gap: 2px;
  }
  #navbar-info .d-flex {
    justify-content: center;
  }
}

#navbar-top.fixed-top {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10000;
}

/* JavaScript에서 사용할 클래스 */
#navbar-info.hidden {
  transform: translateY(-100%);
}

#navbar-info.visible {
  transform: translateY(0);
}

body.has-fixed-navbar {
  padding-top: 0;
}

body.has-fixed-navbar.fixed-navbar-active {
  padding-top: 56px; /* navbar-top의 일반적인 높이 */
}

/* Go to Top 버튼 표시/숨김 (CSP 호환) */
#goto-btn {
  display: none; /* 기본 숨김 */
}

#goto-btn.visible {
  display: block !important;
}

#goto-btn.hidden {
  display: none !important;
}

/* Map placeholder */
.map-placeholder {
  height: 400px;
}

/* Language flag */
.language-flag {
  font-size: 1.5rem;
}

/**************  Top Info ~ Top Bar  **************/
header {
  width: 100%;
  text-align: center;
  vertical-align: middle;
  /*box-shadow: 0 0 10px 10px rgba(50, 50, 50, 0.8);
    -webkit-box-shadow:0px 0px 7px 0px rgba(50, 50, 50, 80%);
    transform: translateY(40px);
    transition: transform .3s;*/
}

#navbar-info {
  padding: 0;
  padding-top: 10px;
  position: relative;
  z-index: 9998;
  vertical-align: middle;
  /* height: 40px;*/
  background: #212529;
  font-size: 12px;
  font-family: inherit;
  font-weight: 400;
  transition: transform 0.3s ease;
  overflow: hidden;
}

#navbar-info a {
  font-size: 12px;
  color: #eee;
}

.info-table {
  display: table;
  width: 100%;
}

/* Display */
@media only screen and (min-width: 992px) {
  .info-content {
    display: table-cell;
    width: 60%;
    text-align: left;
    vertical-align: middle;
  }

  .info-txt {
    display: table-cell;
    width: 40%;
    text-align: right;
    vertical-align: middle;
  }
}

@media only screen and (max-width: 991.98px) {
  .info-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
    padding-left: 12px;
  }
  .info-content .content { padding: 0; margin: 0; }
  .info-content .content:after { display: none; }
  .info-content .content i { margin-right: 6px; min-width: 16px; }

  .info-txt {
    display: none;
    width: 0%;
  }
}

.info-content .content {
  position: relative;
  /*display: inline-block;*/
  padding: 0px 20px 0px 20px;
  margin: 0px 6px;
}

.info-content .content:first-child {
  margin-left: 0px;
}

.info-content .content:last-child {
  margin-right: 0px;
}

/* Custom Icon Styles */
.icon-email, .icon-phone, .icon-clock, .icon-location {
  display: inline-block;
  font-size: 14px;
  margin-right: 8px;
  color: #f1d20d;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  font-weight: bold;
}

.info-content .content:after {
  content: "";
  position: absolute;
  /*top: 0;*/
  right: 0;
  width: 2px;
  height: 10px;
  background-color: #000;
  transform: translateY(50%);
}

.info-content .content:last-child:after {
  width: 0px;
  height: 0px;
  background-color: transparent;
}

.info-content .content:hover {
  color: #2293dd;
}

.info-txt .text {
  padding-right: 18px;
}

.info-txt a {
  /*display: inline-block;*/
  text-align: center;
  position: relative;
  padding: 0px 15.8px;
}

.info-txt a:before {
  content: "";
  position: absolute;
  left: 0;
  width: 2px;
  height: 10px;
  background-color: #f1d20d;
  transform: translateY(50%);
}

.info-txt a:last-child {
  padding-right: 5px !important;
}

.info-txt a.content:hover {
  color: #2293dd;
}

.info-txt a:after {
  color: #2293dd;
}

/**************  Search icon ~ Form  **************/
#search {
  z-index: initial;
}

/* Search icon */
.search-icon {
  display: block;
  font-size: 16px;
  border: 0;
  text-decoration: none;
  padding: 10px 0 10px 5px;
}

/* Search Form */
.search-form {
  position: absolute;
  right: 0px;
  top: 100%;
  width: 270px;
  opacity: 0;
  visibility: hidden;
  border: 0;
}

.search-form.show {
  filter: alpha(opacity=100);
  opacity: 1;
  visibility: visible;
  border: 0;
  z-index: initial;
}

.reader-text {
  /*clip: rect(1px, 1px, 1px, 1px);*/
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  border: 0;
}

input.search-field.form-control {
  right: 10px;
  width: 160px;
  margin: 0;
  padding: 6px 28px 6px 10px;
  background-color: #fff;
  -webkit-box-shadow: none;
  border: 1px solid #2175a0;
  border-radius: 20px;
  box-shadow: none;
  font-family: inherit;
  font-size: 13px;
  color: #151414;
  z-index: initial;
}

.reader-text:focus {
  border: 0;
  clip: auto !important;
  /*display: block;*/
  height: auto;
  left: 5px;
  line-height: normal;
  padding: 15px 2px 10px 14px;
  text-decoration: none;
  top: 5px;
  z-index: initial;
}

.reader-text:active {
  border: 0;
}

.search-submit {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  margin: 0;
  padding: 2px;
  font-size: 13px;
  line-height: 1;
  border: 0;
  background-color: #ea2185;
  color: #21dcf9;
  border-radius: 50%;
  z-index: initial;
  display: flex;
  align-items: center;
  justify-content: center;
}

/**************  Main Contents  **************/
main {
  background: #ededed;
  /*color: #090909;*/
  /*text-align: center;*/
  font-size: 14px;
}

.carousel-caption .title1 {
  color: #2151a3;
  font-family: 'Red Hat Display', 'KoPub Batang', sans-serif;
}

.carousel-caption .content1 {
  color: #9af16d;
  font-size: 1.5em;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-caption .title2 {
  color: #2151a3;
  font-family: 'Red Hat Display', 'KoPub Batang', sans-serif;
}

.carousel-caption .content2 {
  color: #ec3ea4;
  font-size: 1.5em;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
}

.carousel-caption .title3 {
  color: #2151a3;
  font-family: 'Red Hat Display', 'KoPub Batang', sans-serif;
}

.carousel-caption .content3 {
  color: #f39c12;
  font-size: 1.5em;
  font-weight: 400;
  overflow: hidden;
  text-overflow: ellipsis;
}

/**************** Use svg Subject Title*****************/
section {
  position: relative;
  z-index: 299;
  padding-bottom: 30px;
}

/* ============================================
   SECTION TITLE SYSTEM - 70px HEIGHT STANDARD
   ============================================ */

/* Base Section Title Styles */
.section-title {
  width: 100%;
  height: 70px;
  margin: 0 0 10px 0 !important;
  position: relative;
  display: block;
}

/* Mobile First: Stack Layout (< 768px) */
@media only screen and (max-width: 767.98px) {
  .section-title {
    height: 140px; /* 70px * 2 for stacked layout */
    display: block;
  }
  
  .section-left {
    width: 100%;
    height: 70px;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzAiIGhlaWdodD0iNzAiIHZpZXdCb3g9IjAgMCA3MCA3MCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxwYXRoIHN0eWxlPSJkaXNwbGF5OmlubGluZTtmaWxsOiMzMDMwMzA7IiBkPSJNIDY5Ljk5OTk5OSwyLjk1OTkyNzJlLTYgViAzNS4wMDAwMDUgNzAuMDAwMDAxIEggMzQuOTk5OTk4IDIuMzQ2NzM3MWUtNiBaIiAvPgo8L3N2Zz4K");
    background-position: right bottom;
    background-repeat: no-repeat;
    background-size: 70px 70px;
    padding: 15px 85px 15px 15px;
    margin: 0;
    overflow: hidden;
    box-shadow: 0 5px 5px 0 rgba(50, 50, 50, 0.5);
    position: relative;
    z-index: 2;
  }

  .section-right {
    width: 100%;
    height: 70px;
    margin: 0;
    padding: 15px;
    overflow: hidden;
    box-shadow: 0 5px 5px 0 rgba(50, 50, 50, 0.5);
    position: relative;
    z-index: 1;
    background-color: #303030 !important;
  }
}

/* Tablet: Side by Side 50/50 Layout (768px - 991.98px) */
@media only screen and (min-width: 768px) and (max-width: 991.98px) {
  .section-title {
    display: flex;
  }
  
  .section-left {
    width: 50%;
    height: 70px;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzAiIGhlaWdodD0iNzAiIHZpZXdCb3g9IjAgMCA3MCA3MCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxwYXRoIHN0eWxlPSJkaXNwbGF5OmlubGluZTtmaWxsOiMzMDMwMzA7IiBkPSJNIDY5Ljk5OTk5OSwyLjk1OTkyNzJlLTYgViAzNS4wMDAwMDUgNzAuMDAwMDAxIEggMzQuOTk5OTk4IDIuMzQ2NzM3MWUtNiBaIiAvPgo8L3N2Zz4K");
    background-position: right bottom;
    background-repeat: no-repeat;
    background-size: 70px 70px;
    padding: 15px 85px 15px 15px;
    margin: 0;
    overflow: hidden;
    box-shadow: 0 5px 5px 0 rgba(50, 50, 50, 0.5);
    position: relative;
    z-index: 200;
  }

  .section-right {
    width: 50%;
    height: 70px;
    margin: 0;
    padding: 15px;
    overflow: hidden;
    box-shadow: 0 5px 5px 0 rgba(50, 50, 50, 0.5);
    position: relative;
    z-index: 100;
    background-color: #303030 !important;
  }
}

/* Desktop: 40/60 Layout (992px+) */
@media only screen and (min-width: 992px) {
  .section-title {
    display: flex;
  }
  
  .section-left {
    width: 40%;
    height: 70px;
    background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNzAiIGhlaWdodD0iNzAiIHZpZXdCb3g9IjAgMCA3MCA3MCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgogIDxwYXRoIHN0eWxlPSJkaXNwbGF5OmlubGluZTtmaWxsOiMzMDMwMzA7IiBkPSJNIDY5Ljk5OTk5OSwyLjk1OTkyNzJlLTYgViAzNS4wMDAwMDUgNzAuMDAwMDAxIEggMzQuOTk5OTk4IDIuMzQ2NzM3MWUtNiBaIiAvPgo8L3N2Zz4K");
    background-position: right bottom;
    background-repeat: no-repeat;
    background-size: 70px 70px;
    padding: 15px 85px 15px 15px;
    margin: 0;
    overflow: hidden;
    box-shadow: 0 5px 5px 0 rgba(50, 50, 50, 0.5);
    position: relative;
    z-index: 2;
  }

  .section-right {
    width: 60%;
    height: 70px;
    margin: 0;
    padding: 15px;
    overflow: hidden;
    box-shadow: 0 5px 5px 0 rgba(50, 50, 50, 0.5);
    position: relative;
    z-index: 1;
    background-color: #303030 !important;
  }
}

/* Common Section Styling (Applied to all breakpoints) */
.section-left {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  font-family: 'Red Hat Display', 'KoPub Batang', sans-serif;
  text-transform: uppercase;
  font-weight: 700;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.section-left h1, .section-left h2, .section-left h3 {
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: 'Red Hat Display', 'KoPub Batang', sans-serif;
  font-size: 1.1rem;
  text-transform: uppercase;
  line-height: 1.2em;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.section-left a {
  font-family: 'Red Hat Display', 'KoPub Batang', sans-serif;
  text-decoration: none;
  color: #fff;
  text-transform: uppercase;
  line-height: 1.2em;
  font-size: 1.1em;
  font-weight: 700;
  transition: color 0.3s ease;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

.section-left a:hover {
  color: #e3cf69;
}

.section-right {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-align: left;
  line-height: 1.4;
  background-color: #303030 !important;
  color: #fff;
  overflow: hidden;
}

.section-right h4, .section-right h5, .section-right h6 {
  margin: 0;
  padding: 0;
  color: #fff;
  font-weight: bold;
  line-height: 1.4;
}

.section-right p {
  margin: 0;
  padding: 0;
  color: #fff;
  line-height: 1.4;
}

.color-1 {
  background-color: #0070c0;
}

.color-2 {
  background-color: #c00000;
}

.color-3 {
  background-color: #f39c12;
}

.color-4 {
  background-color: #0dbed2;
}

.color-5 {
  background-color: #d829da;
}

.color-6 {
  background-color: #85da29;
}

.color-7 {
  background-color: #da6729;
}

.color-8 {
  background-color: #29daa2;
}

.color-9 {
  background-color: #6c29da;
}

.color-dark {
  background-color: #2d3748;
}

.color-green {
  background-color: #2e7d32;
}

.color-ruby {
  background-color: #A30A4B;
}

.color-navy {
  background-color: #044998;
}

/* ============================================
   PHOTO BANNER — full-width image with overlay
   Style: 'photo' + background_image in DB
   ============================================ */
.section-banner-photo {
  width: 100%;
  height: 200px;
  margin: 0 0 10px 0;
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}

.section-banner-photo-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(135deg, rgba(13,36,64,0.82) 0%, rgba(13,110,253,0.55) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.section-banner-photo-content {
  text-align: center;
  padding: 1rem 2rem;
}

.section-banner-photo-title {
  margin: 0;
  padding: 0;
  color: #fff;
  font-family: 'Red Hat Display', 'KoPub Batang', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.section-banner-photo-subtitle {
  margin: 0.4rem 0 0;
  padding: 0;
  color: rgba(255,255,255,0.9);
  font-size: 1rem;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

@media only screen and (max-width: 767.98px) {
  .section-banner-photo {
    height: 150px;
  }
  .section-banner-photo-title {
    font-size: 1.2rem;
  }
  .section-banner-photo-subtitle {
    font-size: 0.85rem;
  }
}

@media only screen and (min-width: 992px) {
  .section-banner-photo {
    height: 220px;
  }
  .section-banner-photo-title {
    font-size: 1.8rem;
  }
  .section-banner-photo-subtitle {
    font-size: 1.05rem;
  }
}

/* ===== Content Detail Hero (photo background) ===== */
.content-detail-hero {
  width: 100%;
  min-height: 300px;
  position: relative;
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 6px;
}
.content-detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,36,64,0.78) 0%, rgba(13,110,253,0.45) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem;
}
.content-detail-hero-content { max-width: 800px; }
.content-detail-hero-title {
  color: #fff;
  font-size: 1.8rem;
  font-weight: 700;
  margin: 0 0 0.3rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.content-detail-hero-excerpt {
  color: rgba(255,255,255,0.88);
  font-size: 1rem;
  margin: 0 0 0.6rem;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}
.content-detail-hero-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; }
.content-detail-hero-actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.4rem;
}
@media (max-width: 767.98px) {
  .content-detail-hero { min-height: 220px; }
  .content-detail-hero-overlay { padding: 1.2rem; }
  .content-detail-hero-title { font-size: 1.3rem; }
  .content-detail-hero-excerpt { font-size: 0.85rem; }
}
@media (min-width: 992px) {
  .content-detail-hero { min-height: 360px; }
  .content-detail-hero-title { font-size: 2rem; }
}

/* ============================================
   SECTION BANNER (DB-driven)
   Usage: <?= banner('about-hero') ?>
   Uses .section-title structure — same CSS applies.
   ============================================ */

.svg-color-1 {
  background-color: rgba(8, 77, 227, 0.8);
}

.svg-color-2 {
  background-color: rgba(245, 10, 113, 0.8);
}

.svg-color-3 {
  background-color: rgba(66, 206, 215, 0.8);
}

/**************  For Contents  **************/
.icon-list li::before {
  display: block;
  flex-shrink: 0;
  width: 1.5em;
  height: 1.5em;
  margin-right: 0.5rem;
  content: "";
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23212529' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM4.5 7.5a.5.5 0 0 0 0 1h5.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L10.293 7.5H4.5z'/%3E%3C/svg%3E")
    no-repeat center center / 100% auto;
}

/* Marketing Container Spacing */
.container.marketing {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.container.marketing .py-4 {
  padding-top: 1.5rem !important;
  padding-bottom: 1.5rem !important;
}

/* Responsive Card Layout */
@media (max-width: 767.98px) {
  .container.marketing .row .col-lg-4 {
    margin-bottom: 2rem;
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .container.marketing .row .col-lg-4 {
    margin-bottom: 1.5rem;
  }
}

i .hammer {
  display: block;
  flex-shrink: 0;
  width: 1.5em;
  height: 1.5em;
  margin-right: 0.5rem;
  content: "";
  /*background-image: url("paper.gif");*/
  /*background: lightblue url("img_tree.gif") no-repeat fixed center;*/
  background: url("/assets/svg/hammer-svgrepo-com.svg") no-repeat center center / 100% auto;
}
/*
.icon-list li::before {
  display: block;
  flex-shrink: 0;
  width: 1.5em;
  height: 1.5em;
  margin-right: 0.5rem;
  content: "";
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23212529' viewBox='0 0 16 16'%3E%3Cpath d='M8 0a8 8 0 1 1 0 16A8 8 0 0 1 8 0zM4.5 7.5a.5.5 0 0 0 0 1h5.793l-2.147 2.146a.5.5 0 0 0 .708.708l3-3a.5.5 0 0 0 0-.708l-3-3a.5.5 0 1 0-.708.708L10.293 7.5H4.5z'/%3E%3C/svg%3E")
    no-repeat center center / 100% auto;
}*/

/**************  Footer  **************/
footer {
  background-color: #000000;
  text-align: center;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  color: #f1d20d;
  margin: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  width: 100%;
}

.footer-content {
  color: #cccccc;
  margin: 0;
  padding: 0;
  display: table;
}

#footer-bottom {
  display: table;
  width: 100%;
}

@media only screen and (min-width: 992px) {
  #footer-left {
    display: table-cell;
    text-align: left;
    vertical-align: middle;
    margin: 0;
    padding-top: 5px;
    padding-left: 10px;
  }

  #footer-right {
    display: table-cell;
    text-align: left;
    vertical-align: middle;
    background-image: url("/assets/images/page/bg-world.png");
    background-position: right center;
    background-repeat: no-repeat;
    margin: 0;
    padding-top: 10px;
    padding-left: 50px;
  }

  #footer-links {
    display: block;
    width: 100%;
    text-align: left;
    margin: 0;
    padding: 0;
  }
}

@media only screen and (max-width: 991.98px) {
  #footer-left {
    display: block;
    text-align: left;
  }

  #footer-right {
    display: block;
    text-align: left;
    background-image: url("/assets/images/page/bg-world.png");
    background-position: right center;
    background-repeat: no-repeat;
    margin: 0;
    padding-top: 10px;
    padding-left: 50px;
  }

  #footer-bottom {
    display: none;
    width: 0%;
  }

  #footer-links {
    display: block;
    width: 100%;
  }
}

#footer-links {
  display: block !important;
  width: 100% !important;
  color: #e1c32c;
  margin: 0;
  padding: 0;
}

#footer-links a {
  display: inline-block;
  line-height: 2rem;
  text-decoration: none;
  color: #0dbed2;
}

footer .text {
  font-size: 12px;
  font-weight: 400;
  color: #5cb730;
  line-height: 12px;
}

/**************  Progress Scroll  **************/
.scroll-bar {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: rgba(204, 255, 102, 0.3);
  z-index: 10001;
}

.scroll-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #ff0066;
  transition: transform 0.1s ease;
  z-index: 10002;
  transform-origin: left;
  transform: scaleX(0);
}

/* 프로그레스바는 외부 JavaScript 파일(header-scroll.js)에서 transform을 설정 */
/* 외부 파일에서는 inline style이 CSP에 의해 차단되지 않음 */

/**************  Go to Top  **************/
/* Go to Top Button */
#goto-btn {
    position: fixed;
    bottom: 16px;
    right: 24px;
    width: 40px;
    height: 40px;
    background-color: #e40a90;
    color: #00a3c0;
    border: none;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

#goto-btn.visible {
    opacity: 1;
    visibility: visible;
}

#goto-btn:hover {
  background-color: #08caec;
  color: #d70988;
}

/* CSS animations for CSP compliance */
#navbar-info.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(-100%);
}

#navbar-info.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Logout button styling */
.logout-btn {
    border: none !important;
    background: none !important;
    width: 100% !important;
    text-align: left !important;
    cursor: pointer !important;
}

/* Dashboard Menu Management Styles */
.drag-handle {
    cursor: move;
    display: none;
}

.order-number {
    min-width: 30px;
}

.menu-icon {
    font-size: 1.2rem;
}

.sort-controls {
    display: none;
}

.arrow-top {
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIxNiIgaGVpZ2h0PSIxNiIgZmlsbD0iY3VycmVudENvbG9yIiBjbGFzcz0iYmkgYmktc2hpZnQtZmlsbCIgdmlld0JveD0iMCAwIDE2IDE2Ij4KICA8cGF0aCBkPSJNNy4yNyAyLjA0N2ExIDEgMCAwIDEgMS40NiAwbDYuMzQ1IDYuNzdjLjYuNjM4LjE0NiAxLjY4My0uNzMgMS42ODNIMTEuNXYzYTEgMSAwIDAgMS0xIDFoLTVhMSAxIDAgMCAxLTEtMXYtM0gxLjY1NEMuNzggMTAuNS4zMjYgOS40NTUuOTI0IDguODE2TDcuMjcgMi4wNDd6Ii8+Cjwvc3ZnPg==");
  background-position: center center;
  background-repeat: no-repeat;
}

/*************** Copy (fixed, bottom: 45px) *****************/
#sm-copy {
  position: fixed;
  bottom: 62px;
  right: 24px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.55;
  font-size: 0.7rem;
  color: #e1c32c;
  pointer-events: none;
}

/*************** Utility ***************/
/* text left top */
.text-align-left {
  text-align: start;
}

.text-title {
  font-family: 'Red Hat Display', 'KoPub Batang', sans-serif;
  text-decoration: none;
  text-transform: uppercase;
}

.img-round {
  outline: none;
  border: none;
  border-radius: 10px;
}

/*************** Sticky Meno ***********/
/* content */
#sticky-box {
  top: 350px;
  transform: translateY(-50%);
  /*display: flex;*/
  z-index: 3000;
  pointer-events: none;
  position: fixed;
  bottom: 20px;
  right: 50px;
  font-size: 12px;
  color: #e1c32c;
  border: none;
  outline: none;
  cursor: pointer;
  padding: 0;
  text-align: left;
  margin: auto;
}

#sticky-box .sticky-button {
  display: none !important;
}

#sticky-box .sticky-content {
  position: relative;
  max-width: 246px;
  padding: 25px;
  transform: translateX(100%);
  transition: 0.4s ease;
  z-index: 3100;
  pointer-events: auto;
}

#sticky-box .sticky-content.bg-blue {
  background: #366ce1;
}

#sticky-box .sticky-content.bg-skyblue {
  background: #55c0eb;
}

#sticky-box .sticky-content.bg-yellow {
  background: #fac90f;
}

@media (max-width: 767px) {
  #sticky-box .sticky-content {
    /*width: 100%;*/
    padding: 40px 25px 30px 25px;
  }
}

@media (max-width: 400px) {
  #sticky-box .sticky-content {
    max-width: 100%;
  }
}

#sticky-box .sticky-content.is-show {
  transform: translateX(0);
}

#sticky-box .sticky-content * {
  color: #fff;
}

#sticky-box .sticky-content.bg-yellow * {
  color: #4b525c;
}

@media (max-width: 767px) {
  #sticky-box .sticky-content .tag {
    margin-bottom: 0;
  }
}

#sticky-box .sticky-content .h6 {
  margin-bottom: 15px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  line-height: 1.3;
}

#sticky-box .sticky-content h5 {
  margin-bottom: 15px;
  font-size: 18px;
  line-height: 1.5em;
  font-weight: 400;
}

#sticky-box .sticky-content p {
  line-height: 1.5;
  font-size: 16px;
  margin-bottom: 30px;
}

#sticky-box .sticky-content p + a {
  margin-left: 13px;
  display: block;
  width: 28px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='23' height='12' viewBox='0 0 23 12' fill='%23FFF'%3E%3Cpath d='M0.410156 6.43589C0.410156 6.12494 0.641219 5.86797 0.941007 5.8273L1.02435 5.82169L20.821 5.82219L16.9205 1.9376C16.6801 1.69826 16.6793 1.30937 16.9186 1.069C17.1362 0.850479 17.4774 0.829922 17.7182 1.00781L17.7872 1.06713L22.7417 6.00032C22.7734 6.03187 22.8009 6.06602 22.8243 6.10207C22.8309 6.11293 22.8376 6.12403 22.844 6.13536C22.8498 6.14507 22.8551 6.15515 22.8601 6.16534C22.867 6.18017 22.8738 6.19549 22.88 6.21113C22.885 6.22318 22.8891 6.2349 22.8929 6.24672C22.8975 6.26138 22.9019 6.27699 22.9056 6.29284C22.9085 6.30391 22.9107 6.31457 22.9126 6.32526C22.9154 6.34117 22.9177 6.35764 22.9193 6.3743C22.9208 6.38701 22.9216 6.3996 22.9221 6.41221C22.9222 6.41985 22.9224 6.42785 22.9224 6.43589L22.9221 6.45968C22.9216 6.47173 22.9208 6.48378 22.9196 6.49579L22.9224 6.43589C22.9224 6.47464 22.9188 6.51256 22.9119 6.54933C22.9103 6.55811 22.9084 6.56713 22.9063 6.5761C22.902 6.59459 22.8969 6.6124 22.8911 6.62985C22.8883 6.63853 22.885 6.64779 22.8814 6.65699C22.8742 6.67547 22.8664 6.69309 22.8579 6.71025C22.8539 6.71832 22.8494 6.72677 22.8447 6.73513C22.8371 6.74877 22.8291 6.76173 22.8208 6.77437C22.8149 6.78331 22.8084 6.79262 22.8015 6.80178L22.7962 6.80886C22.7797 6.83048 22.7617 6.85097 22.7425 6.87019L17.7873 11.8048C17.5469 12.0441 17.158 12.0433 16.9187 11.803C16.7011 11.5845 16.682 11.2432 16.8609 11.0031L16.9205 10.9344L20.8194 7.05057L1.02435 7.05008C0.68514 7.05008 0.410156 6.77509 0.410156 6.43589Z'/%3E%3C/svg%3E")
    no-repeat center center;
  background-size: 100%;
  margin-bottom: 10px;
}

#sticky-box .sticky-content.bg-yellow p + a {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='23' height='12' viewBox='0 0 23 12' fill='%234b525c'%3E%3Cpath d='M0.410156 6.43589C0.410156 6.12494 0.641219 5.86797 0.941007 5.8273L1.02435 5.82169L20.821 5.82219L16.9205 1.9376C16.6801 1.69826 16.6793 1.30937 16.9186 1.069C17.1362 0.850479 17.4774 0.829922 17.7182 1.00781L17.7872 1.06713L22.7417 6.00032C22.7734 6.03187 22.8009 6.06602 22.8243 6.10207C22.8309 6.11293 22.8376 6.12403 22.844 6.13536C22.8498 6.14507 22.8551 6.15515 22.8601 6.16534C22.867 6.18017 22.8738 6.19549 22.88 6.21113C22.885 6.22318 22.8891 6.2349 22.8929 6.24672C22.8975 6.26138 22.9019 6.27699 22.9056 6.29284C22.9085 6.30391 22.9107 6.31457 22.9126 6.32526C22.9154 6.34117 22.9177 6.35764 22.9193 6.3743C22.9208 6.38701 22.9216 6.3996 22.9221 6.41221C22.9222 6.41985 22.9224 6.42785 22.9224 6.43589L22.9221 6.45968C22.9216 6.47173 22.9208 6.48378 22.9196 6.49579L22.9224 6.43589C22.9224 6.47464 22.9188 6.51256 22.9119 6.54933C22.9103 6.55811 22.9084 6.56713 22.9063 6.5761C22.902 6.59459 22.8969 6.6124 22.8911 6.62985C22.8883 6.63853 22.885 6.64779 22.8814 6.65699C22.8742 6.67547 22.8664 6.69309 22.8579 6.71025C22.8539 6.71832 22.8494 6.72677 22.8447 6.73513C22.8371 6.74877 22.8291 6.76173 22.8208 6.77437C22.8149 6.78331 22.8084 6.79262 22.8015 6.80178L22.7962 6.80886C22.7797 6.83048 22.7617 6.85097 22.7425 6.87019L17.7873 11.8048C17.5469 12.0441 17.158 12.0433 16.9187 11.803C16.7011 11.5845 16.682 11.2432 16.8609 11.0031L16.9205 10.9344L20.8194 7.05057L1.02435 7.05008C0.68514 7.05008 0.410156 6.77509 0.410156 6.43589Z'/%3E%3C/svg%3E")
    no-repeat center center;
}

#sticky-box .sticky-content .close {
  position: absolute;
  top: 12px;
  right: 19px;
  text-decoration: none;
  width: 30px;
  height: 30px;
  border: 1px solid #fff;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' version='1' viewBox='0 0 24 24' fill='%23FFF'%3E%3Cpath d='M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z'%3E%3C/path%3E%3C/svg%3E")
    no-repeat center center;
  background-size: 80%;
}

#sticky-box .sticky-content.bg-yellow .close {
  border-color: #4b525c;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' version='1' viewBox='0 0 24 24' fill='%234b525c'%3E%3Cpath d='M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z'%3E%3C/path%3E%3C/svg%3E")
    no-repeat center center;
}

#sticky-box .sticky-content .close:hover {
  text-decoration: none;
  color: #000;
}

#sticky-box .sticky-content .btn-link:hover {
  color: #000;
}

#sticky-box .sticky-content .btn-link::after {
  color: inherit;
}

/* Login, Registor, etc. Back ground image */
.bg-login-image {
  background: url("/assets/images/page/water-lilies.jpg");
  background-position: center;
  background-size: cover;
}

.bg-register-image {
  background: url("/assets/images/page/sunflower.jpg");
  background-position: center;
  background-size: cover;
}

.bg-password-image {
  background: url("/assets/images/page/pinkFlower.jpg");
  background-position: center;
  background-size: cover;
}

.bg-write-image {
  background: url("/assets/images/page/cherry.jpg");
  background-position: center;
  background-size: cover;
}

.custom-checkbox.small label {
  line-height: 2rem;
}

.btn-user {
  font-size: 1rem !important;
  border-radius: 2rem !important;
  padding: 0.5rem 0.5rem !important;
}

.form-control-user {
  font-size: 1rem !important;
  border-radius: 2rem !important;
  padding: 0.5rem 0.5rem !important;
}

.btn-google {
  color: #fff !important;
  background-color: #ea4335 !important;
  border-color: #fff !important;
}

.btn-google:hover {
  color: #fff !important;
  background-color: #e12717 !important;
  border-color: #e6e6e6 !important;
}

.btn-google:focus,
.btn-google.focus {
  color: #fff !important;
  background-color: #e12717 !important;
  border-color: #e6e6e6 !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5) !important;
}

.btn-google.disabled,
.btn-google:disabled {
  color: #fff !important;
  background-color: #ea4335 !important;
  border-color: #fff !important;
}

.btn-google:not(:disabled):not(.disabled):active,
.btn-google:not(:disabled):not(.disabled).active,
.show > .btn-google.dropdown-toggle {
  color: #fff !important;
  background-color: #d62516 !important;
  border-color: #dfdfdf !important;
}

.btn-google:not(:disabled):not(.disabled):active:focus,
.btn-google:not(:disabled):not(.disabled).active:focus,
.show > .btn-google.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5) !important;
}

.btn-facebook {
  color: #fff !important;
  background-color: #3b5998 !important;
  border-color: #fff !important;
}

.btn-facebook:hover {
  color: #fff !important;
  background-color: #30497c !important;
  border-color: #e6e6e6 !important;
}

.btn-facebook:focus,
.btn-facebook.focus {
  color: #fff !important;
  background-color: #30497c !important;
  border-color: #e6e6e6 !important;
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5) !important;
}

.btn-facebook.disabled,
.btn-facebook:disabled {
  color: #fff !important;
  background-color: #3b5998 !important;
  border-color: #fff !important;
}

.btn-facebook:not(:disabled):not(.disabled):active,
.btn-facebook:not(:disabled):not(.disabled).active,
.show > .btn-facebook.dropdown-toggle {
  color: #fff !important;
  background-color: #2d4373 !important;
  border-color: #dfdfdf !important;
}

.btn-facebook:not(:disabled):not(.disabled):active:focus,
.btn-facebook:not(:disabled):not(.disabled).active:focus,
.show > .btn-facebook.dropdown-toggle:focus {
  box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5) !important;
}

.error {
  color: #5a5c69;
  font-size: 7rem;
  position: relative;
  line-height: 1;
  width: 12.5rem;
}

li.dropdown-item {
  color: #041896;
  font-size: 12px;
}

.navbar .nav-link i.bi { font-size: 0.95rem; }
.navbar .nav-link .bi-house-door-fill { color: #2e7d32; }
.navbar .nav-link .bi-info-circle-fill { color: #1565c0; }
.navbar .nav-link .bi-wrench-adjustable { color: #5d4037; }
.navbar .nav-link .bi-images { color: #7b1fa2; }
.navbar .nav-link .bi-megaphone-fill { color: #e65100; }
.navbar .nav-link .bi-cone-striped { color: #ef6c00; }
.navbar .nav-link .bi-envelope-fill { color: #c62828; }
.navbar .nav-link .bi-speedometer2 { color: #00838f; }
.navbar .dropdown-menu .dropdown-item {
  font-size: 0.85rem;
  padding: 0.35rem 1rem;
}

li.dropdown-item a {
  text-decoration: none !important;
}

/* Language switcher dropdown items */
[aria-labelledby="header-language-dropdown"] .dropdown-item {
  font-size: 0.85rem;
  padding: 0.3rem 1rem;
}

/**************  Footer Map Container  **************/
.map-container {
  height: 200px;
  background-color: #555;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.location-display {
  height: 200px;
  background: linear-gradient(135deg, #0070c0, #0dbed2);
  border-radius: 8px;
  color: white;
}

.location-display .icon-location {
  font-size: 3rem;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

/**************  Footer Styling  **************/
#footer-company, #footer-links, #footer-contact, #footer-map {
  color: #fff;
  text-align: left;
}

/* 회사 컬럼 레이아웃 */
.footer-logo {
  margin-bottom: 16px;
}

.footer-company-text {
  text-align: left;
}

.footer-intro-text {
  color: #ffffff;
  font-size: 13px;
  line-height: 1.55;
  margin-bottom: 10px;
}

.footer-company-name {
  color: #f0f0f0;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.footer-tagline-text {
  color: #aaaaaa;
  font-size: 12px;
  margin-bottom: 0;
}

#footer-company .icon-location,
#footer-contact .icon-location,
#footer-contact .icon-phone,
#footer-contact .icon-email,
#footer-contact .icon-clock {
  color: #f1d20d;
  margin-right: 8px;
  font-size: 1.1em;
}

#footer-links ul li a:hover {
  color: #f1d20d !important;
}

/* Footer Contact Info Spacing (legacy) */
#footer-contact .contact-info div {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

/* 섹션 제목 (Quick Links, Contact Info 공통) */
.footer-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 0.6rem;
  padding-left: 30px;
}

/* Quick Links: 3열 레이아웃 */
.footer-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 4px;
  row-gap: 0;
  margin-bottom: 0;
  padding: 4px 2px;
  width: 100%;
}

.footer-quick-grid li {
  text-align: center;
}

.footer-quick-grid li a {
  display: block;
  font-size: 14px;
  line-height: 1.9;
}

/* Footer Contact: 세계지도(배경) + 연락처 레이아웃 */
.footer-contact-inner {
  position: relative;
  min-height: 95px;
  padding-left: 46%;
}

.footer-contact-inner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 44%;
  height: 100%;
  background-image: url('/assets/images/page/bg-world.png');
  background-position: left center;
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.45;
  filter: brightness(1.1) saturate(0.7);
}

.footer-contact-details {
  text-align: left;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin-bottom: 9px;
  color: #cccccc;
  font-size: 13px;
  line-height: 1.4;
}

.contact-item i {
  flex-shrink: 0;
  margin-top: 2px;
}

/* Footer responsive height fix */
.footer-wrapper {
  width: 100vw !important;
  background-color: #0e0e0e !important;
  margin-left: calc(-50vw + 50%) !important;
  padding: 0 !important;
  margin-bottom: 0 !important;
}

.footer-wrapper.sticky-footer {
  margin-top: auto;
}

footer {
  height: auto !important;
  min-height: 200px !important;
  width: 100% !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

/* Legacy footer styles (kept for compatibility) */

footer .footer-quick-grid li a:hover,
footer .footer-link:hover {
  color: #e8e8e8 !important;
}

.footer-intro-text  { color: #b8b8b8 !important; }
.footer-company-name { color: #d0d0d0 !important; }
.footer-tagline-text { color: #888888 !important; }
.footer-section-title { color: #c8c8c8 !important; }

/* Footer menu (div.footer-menu) — 3열 그리드 */
#footer-links .footer-menu {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  column-gap: 4px;
  row-gap: 0;
  padding: 4px 2px;
  width: 100%;
}

#footer-links .footer-menu .footer-link {
  display: block;
  font-size: 14px;
  line-height: 1.9;
  text-align: center;
  color: #b8b8b8;
  text-decoration: none;
  transition: color 0.2s ease;
}

#footer-links .footer-menu .footer-link:hover {
  color: #e8e8e8;
}

/* Copyright Bar (최하단 회색 바) */
#copyright-bar {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  background-color: #1a1a1a;
  border-top: 1px solid #333;
  padding: 6px 0;
}

.copyright-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.copyright-text {
  font-size: 0.78rem;
  color: #777;
}

.copyright-links {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.copyright-links a {
  font-size: 0.78rem;
  color: #777;
  text-decoration: none;
  transition: color 0.2s;
}

.copyright-links a:hover {
  color: #bbb;
}

.copyright-sep {
  color: #444;
  font-size: 0.75rem;
}

.cookie-settings-trigger {
  background: none;
  border: none;
  padding: 0;
  font-size: 0.78rem;
  color: #777;
  cursor: pointer;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cookie-settings-trigger:hover {
  color: #bbb;
}

@media (max-width: 576px) {
  .copyright-bar-inner {
    flex-direction: column;
    text-align: center;
  }
  .copyright-links {
    justify-content: center;
  }
  /* Footer contact: 모바일에서 세계지도 숨기고 패딩 제거 */
  .footer-contact-inner {
    padding-left: 0;
  }
  .footer-contact-inner::before {
    display: none;
  }
  /* Footer menu: 3열 → 2열 */
  #footer-links .footer-menu {
    grid-template-columns: 1fr 1fr;
  }
}

/* 모바일 헤더: 온라인/알림/유저/검색 한 줄 정렬 */
@media (max-width: 991.98px) {
  .navbar-collapse .navbar-nav:last-child {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0;
    border-top: 1px solid #eee;
    margin-top: 0.5rem;
  }
  .navbar-collapse form[role="search"] {
    width: auto;
    flex: 1;
    min-width: 100px;
  }
}
@media (max-width: 767.98px) {
  .search-field {
    width: 120px;
    font-size: 12px;
    padding: 4px 24px 4px 8px;
  }
  .search-submit {
    width: 22px;
    height: 22px;
  }
}

/* ---------------------------------------------------------------
   Content body / Quill output — responsive media constraints
   Quill editor saves raw HTML; images/videos must not overflow the column.
--------------------------------------------------------------- */
.page-content img,
.content-body img,
.ql-editor img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 4px;
  cursor: zoom-in;
}

/* Center stand-alone images and add breathing room */
.page-content p > img:only-child,
.content-body p > img:only-child {
  margin: 1rem auto;
}

/* Videos and iframes (e.g. YouTube embeds) */
.page-content video,
.content-body video {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1rem auto;
}

.page-content iframe,
.content-body iframe {
  max-width: 100%;
  width: 100%;
  display: block;
  margin: 1rem auto;
}

/* Quill snow renderer (dashboard preview / frontend) */
.ql-snow .ql-editor img {
  max-width: 100%;
  height: auto;
}

/* Lightbox modal — dark backdrop, no white card background */
#imgLightbox .modal-content {
  background: transparent !important;
}
#imgLightbox .modal-backdrop,
.modal-backdrop {
  --bs-backdrop-opacity: 0.88;
}

/* Pagination spacing */
.pagination {
  gap: 0.25rem;
}
.pagination .page-link {
  min-width: 2.2rem;
  text-align: center;
  padding: 0.375rem 0.65rem;
  border-radius: 0.25rem;
}

/* ==============================
   Timeline (History page)
   ============================== */
.hsc-timeline {
  position: relative;
  padding: 1rem 0;
}
.hsc-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #2175a0;
  transform: translateX(-50%);
}
.hsc-timeline-item {
  position: relative;
  width: 50%;
  padding: 0.5rem 2rem 1.5rem;
}
.hsc-timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
  padding-right: 2.5rem;
}
.hsc-timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
  padding-left: 2.5rem;
}
.hsc-timeline-item::after {
  content: '';
  position: absolute;
  top: 0.7rem;
  width: 14px;
  height: 14px;
  background: #2175a0;
  border: 3px solid #fff;
  border-radius: 50%;
  box-shadow: 0 0 0 2px #2175a0;
}
.hsc-timeline-item:nth-child(odd)::after {
  right: -7px;
}
.hsc-timeline-item:nth-child(even)::after {
  left: -7px;
}
.hsc-timeline-year {
  font-size: 1.1rem;
  font-weight: 700;
  color: #2175a0;
  margin-bottom: 0.25rem;
}
.hsc-timeline-text {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .hsc-timeline::before { left: 20px; }
  .hsc-timeline-item { width: 100%; left: 0 !important; text-align: left !important; padding-left: 50px !important; padding-right: 1rem !important; }
  .hsc-timeline-item::after { left: 13px !important; right: auto !important; }
}

/* ===== Chatbot Widget ===== */
.chatbot-bubble {
    position: fixed;
    bottom: 110px;
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1a1a5e;
    color: #fff;
    border: none;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(26,26,94,.4);
    z-index: 8000;
    transition: transform .2s, opacity .2s, box-shadow .2s;
}
.chatbot-bubble:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(26,26,94,.5);
}
.chatbot-bubble-hidden {
    transform: scale(0);
    opacity: 0;
    pointer-events: none;
}

.chatbot-window {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 380px;
    height: 500px;
    max-height: calc(100vh - 80px);
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.2);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.5) translateY(40px);
    opacity: 0;
    pointer-events: none;
    transform-origin: bottom right;
    transition: transform .3s cubic-bezier(.34,1.56,.64,1), opacity .2s;
}
.chatbot-window.chatbot-open {
    transform: scale(1) translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.chatbot-header {
    background: #1a1a2e;
    color: #fff;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}
.chatbot-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.chatbot-header-info > i {
    font-size: 24px;
    opacity: .9;
}
.chatbot-header-title {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
}
.chatbot-header-subtitle {
    font-size: 11px;
    opacity: .7;
}
.chatbot-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    opacity: .7;
    transition: opacity .2s;
}
.chatbot-close:hover { opacity: 1; }

.chatbot-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f7f8fa;
}
.chatbot-msg { display: flex; }
.chatbot-msg-user { justify-content: flex-end; }
.chatbot-msg-ai { justify-content: flex-start; }
.chatbot-msg-bubble {
    max-width: 80%;
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 13px;
    line-height: 1.5;
    word-break: break-word;
}
.chatbot-msg-user .chatbot-msg-bubble {
    background: #1a1a5e;
    color: #fff;
    border-bottom-right-radius: 4px;
}
.chatbot-msg-ai .chatbot-msg-bubble {
    background: #e9ecef;
    color: #222;
    border-bottom-left-radius: 4px;
}

/* Typing indicator */
.chatbot-typing .chatbot-msg-bubble {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 12px 18px;
}
.chatbot-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #999;
    animation: chatbotBounce .6s infinite alternate;
}
.chatbot-dot:nth-child(2) { animation-delay: .2s; }
.chatbot-dot:nth-child(3) { animation-delay: .4s; }
@keyframes chatbotBounce {
    from { transform: translateY(0); opacity: .4; }
    to { transform: translateY(-6px); opacity: 1; }
}

.chatbot-disclaimer {
    padding: 4px 16px;
    font-size: 10px;
    color: #999;
    text-align: center;
    background: #fff;
    flex-shrink: 0;
    border-top: 1px solid #eee;
}

.chatbot-input-wrap {
    display: flex;
    padding: 10px 12px;
    gap: 8px;
    background: #fff;
    border-top: 1px solid #eee;
    flex-shrink: 0;
}
.chatbot-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 13px;
    outline: none;
    transition: border-color .2s;
}
.chatbot-input:focus { border-color: #1a1a5e; }
.chatbot-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #1a1a5e;
    color: #fff;
    border: none;
    font-size: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background .2s;
    flex-shrink: 0;
}
.chatbot-send:hover { background: #2a2a7e; }
.chatbot-send:disabled { background: #aaa; cursor: not-allowed; }

/* Mobile: full-width chat */
@media (max-width: 575.98px) {
    .chatbot-bubble { bottom: 100px; right: 16px; width: 48px; height: 48px; font-size: 20px; }
    .chatbot-window {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 70dvh;
        max-height: 70dvh;
        border-radius: 16px 16px 0 0;
        transform-origin: bottom center;
    }
}
