/* static/css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
  --font-primary: 'Lato', 'Noto Sans KR', sans-serif; /* Lato for headings, Noto Sans KR for body */
  --font-korean: 'Noto Sans KR', sans-serif;

  --color-primary-dark: #0A2342; /* Dark Navy Blue */
  --color-primary-medium: #1F4E79; /* Medium Blue for accents, borders */
  --color-accent-gold: #B08D57;   /* Gold/Bronze */
  --color-accent-light-gold: #D4AC6E; /* Lighter Gold for hover */
  
  --color-text-light: #F8F9FA;    /* Light Gray / Off-White for dark backgrounds */
  --color-text-dark: #212529;     /* Dark Gray for light backgrounds */
  --color-text-muted: #6c757d;    /* Muted Gray */

  --color-background-light: #FFFFFF;
  --color-background-medium: #F8F9FA; /* Light Gray for sections */
  --color-background-dark: var(--color-primary-dark);

  --navbar-height: 70px; /* Adjust as needed */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --box-shadow-sm: 0 .125rem .25rem rgba(0,0,0,.075);
  --box-shadow-md: 0 .5rem 1rem rgba(0,0,0,.15);
}

html {
  height: 100%;
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  -webkit-overflow-scrolling: touch;
}

/* Reset and Global Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-korean); /* Noto Sans KR for body */
  background-color: var(--color-background-light);
  color: var(--color-text-dark);
  line-height: 1.7; /* Increased for readability */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden; /* Prevent horizontal scrollbars from minor overflows */
  overscroll-behavior: none;
  overscroll-behavior-y: none;
  display: flex;
  flex-direction: column;
  min-height: 100%; /* Use 100% as html is 100% */
  margin: 0;
  padding: 0;
}

.container, .container-fluid {
  padding-top: 6rem;

}

.main-page-content {
  flex: 1 0 auto;
  /* padding-top: var(--navbar-height); */ /* Offset for fixed navbar - Handled by base.css */
  width: 100%; /* Ensure main content also tries to be full width */
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary); /* Lato for headings */
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
  line-height: 1.3;
}

p {
  margin-bottom: 1rem;
  font-family: var(--font-korean); /* Ensure paragraphs use Noto Sans KR */
}

a {
  color: var(--color-accent-gold);
  text-decoration: none;
  transition: color 0.2s ease-in-out, text-decoration 0.2s ease-in-out;
}

a:hover {
  color: var(--color-accent-light-gold);
  text-decoration: underline;
}

/* Tab System Styles */
.tab-system-section {
  background-color: #f8f9fa;
  padding: 2rem 0 2rem 0;
}

.main-title-section {
  margin-bottom: 3rem;
  text-align: left;
}

.main-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0;
  text-align: left;
}

.tab-navigation {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3rem;
  padding-bottom: 0;
  width: 100%;
  gap: 20px;
}

.tab-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0;
  margin: 0;
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  color: #6c757d;
  font-size: 1.75rem;
  font-weight: 500;
  border-bottom: 2px solid #e9ecef;
  flex: 1;
}

.tab-button:hover {
  color: var(--color-primary-dark);
}

.tab-button.active {
  color: var(--color-primary-dark);
  font-weight: 700;
  border-bottom: 4px solid var(--color-primary-dark);
}

.tab-text {
  font-size: 1.25rem;
  font-weight: inherit;
  white-space: nowrap;
}

.tab-content {
  position: relative;
  min-height: 500px;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease-in-out;
}

.tab-panel.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.tab-panel-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  min-height: 500px;
  padding: 2rem 0;
}

.content-left {
  flex: 1;
  padding-right: 2rem;
}

.content-right {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.content-header {
  max-width: 500px;
}

.content-subtitle {
  display: inline-block;
  color: var(--color-text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.content-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  line-height: 1.2;
  margin-bottom: 1.5rem;
}

.content-description {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 2rem;
}

.content-button {
  display: inline-block;
  background-color: #1c3f73;
  color: white;
  padding: 0.5rem 2rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  height: 2.75rem;
  line-height: 1.5rem;
  display: inline-flex;
  align-items: center;
}

.content-button:hover {
  background-color: #0f2a4f;
  color: white;
  text-decoration: none;
}

.content-image {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.content-image:hover {
  transform: scale(1.02);
}

/* Responsive Design */
@media (max-width: 768px) {
  .main-title {
    font-size: 1.5rem; /* 모바일에서 글씨 크기 축소 */
  }
  
  .tab-navigation {
    flex-wrap: wrap;
    gap: 0.5rem;
  }
  
  .tab-button {
    padding: 0.8rem 1rem;
    margin: 0.2rem;
    flex: 1;
    min-width: 120px;
  }
  
  .tab-text {
    font-size: 1.2rem;
  }
  
  .tab-panel-content {
    flex-direction: column;
    gap: 2rem;
    text-align: center;
  }
  
  .content-left {
    padding-right: 0;
  }
  
  .content-title {
    font-size: 1.8rem;
  }
  
  .content-description {
    font-size: 1rem;
  }
  
  .content-image {
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  .tab-button {
    padding: 0.6rem 0.8rem;
    margin: 0.1rem;
  }
  
  .tab-icon {
    font-size: 1.2rem;
  }
  
  .tab-text {
    font-size: 1rem;
  }
  
  .content-title {
    font-size: 1.5rem;
  }
  
  .content-description {
    font-size: 0.9rem;
  }
  
  .content-button {
    padding: 0.8rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Verification Section Styles */
.verification-section {
  background-color: var(--color-background-light);
  padding: 0rem 0 4rem 0;
}

.verification-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 3rem;
}

.normal-text {
  font-weight: 400;
}

/* Main Content Grid */
.main-content-grid {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

/* Middle Section */
.middle-section {
  display: grid;
  grid-template-columns: 1fr 2.3fr;
  gap: 1.25rem;
  margin: 1.25rem 0 2rem 0;
  align-items: stretch;
}

/* Right Column */
.right-column {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  min-width: 500px;
  flex: 2;
}

/* Verification Bar */
.verification-bar {
  background: #363c52;
  border-radius: 1rem;
  padding: 1.5rem 2rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 120px;
}

.verification-bar-text {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  margin: 0;
}

.highlight-text {
  color: #FFD700;
  font-weight: 800;
}

.trust-text {
  color: #edb95b;
  font-weight: 800;
}

.white-text {
  color: white;
}

/* Story Block */
.story-block {
  background-image: url('/static/images/ulleng3.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  position: relative;
  height: 24.375rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  width: 40%;
  flex: 1;
}

.story-block:hover {
  transform: translateY(-2px);
}

.story-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.story-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 1rem;
  border-radius: 0 0 1rem 1rem;
}

.story-description {
  color: white;
  font-size: 0.9rem;
  margin: 0;
  font-weight: 500;
}

/* Visualization Block */
.visualization-block {
  background: var(--color-primary-dark);
  border-radius: 1rem;
  padding: 2rem;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  min-height: 200px;
}

.visualization-title {
  color: white;
  font-size: 2rem;
  font-weight: 700;
  text-align: left;
  margin: 0;
  align-self: flex-end;
}

/* Growth Block */
.growth-block {
  background: white;
  border-radius: 1rem;
  padding: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.growth-block:hover {
  transform: translateY(-2px);
}

.growth-image-container {
  position: relative;
  height: 500px;
}

.growth-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.growth-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  padding: 1rem;
}

.growth-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: white;
  margin: 0;
}

/* Review Block */
.review-block {
  background: #f9f7f3;
  border-radius: 1rem;
  padding: 1rem 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.review-block:hover {
  transform: translateY(-2px);
}

.review-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #656565;
  margin: 2rem 0 2rem 0;
}

.review-text {
  color: var(--color-text-dark);
  font-size: 1.5rem;
  line-height: 1.6;
  margin: 0 0 1rem 0;
}

.review-signature {
  color: var(--color-primary-dark);
  font-weight: 600;
  font-size: 0.9rem;
  text-align: right;
}

/* FAQ & Dashboard Section */
.faq-dashboard-section {
  background: white;
  padding: 4rem 0;
}

.faq-dashboard-grid {
  display: grid;
  grid-template-columns: 0.86fr 1fr;
  gap: 4rem;
  align-items: stretch;
}

/* FAQ Section */
.faq-section {
  padding-right: 2rem;
}

.faq-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.faq-subtitle {
  font-size: 1rem;
  color: #535353;
  margin-bottom: 3.4rem;
  line-height: 1.4;
}

/* FAQ Tabs */
.faq-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  margin-top: 1rem;
}

.faq-tab {
  background: #f8f9fa;
  border: 1px solid #dee2e6;
  padding: 0.5rem 1rem;
  border-radius: 1.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 80px;
  text-align: center;
  white-space: nowrap;
}

.faq-tab.active {
  background: #0d6efd;
  color: white;
  border-color: #0d6efd;
}

.faq-tab:hover:not(.active) {
  background: #e9ecef;
  border-color: #adb5bd;
  color: #495057;
}

/* FAQ Accordion */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-item {
  border-bottom: 1px solid #949494;
  transition: all 0.3s ease;
}

.faq-item:first-child {
  border-top: 1px solid #949494;
}

.faq-item:last-child {
  border-bottom: 1px solid #949494;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question h3 {
  font-size: 1rem;
  font-weight: 600;
  color: #212529;
  margin: 0;
  flex: 1;
  line-height: 1.4;
}

.faq-icon {
  font-size: 1.2rem;
  font-weight: 400;
  color: #0d6efd;
  transition: transform 0.3s ease;
  min-width: 20px;
  text-align: center;
}

.faq-item.active .faq-icon {
  transform: rotate(0deg);
}

.faq-item:not(.active) .faq-icon {
  transform: rotate(0deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: #535353; 
}

.faq-item.active .faq-answer {
  max-height: 200px;
  padding-bottom: 1.5rem;
  color: #535353; 
}

.faq-answer p {
  color: #535353;
  line-height: 1.6;
  margin: 0;
}

/* Dashboard Section */
.dashboard-section {
  position: sticky;
  top: 2rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.faq-image {
  width: 100%;
  min-height: 450px;
  object-fit: cover;
  border-radius: 2rem;
  display: block;
  flex: 1;
}

.dashboard-section .faq-tabs-desktop {
  margin-bottom: 1rem;
  margin-top: 0;
  padding: 1rem 0 1rem 0;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
}

/* Mobile tabs - shown only on mobile */
.faq-tabs-mobile {
  display: none;
  margin-bottom: 1.5rem;
  margin-top: 1rem;
  padding: 0;
  gap: 0.4rem;
  justify-content: flex-start;
  width: 100%;
  box-sizing: border-box;
}

.faq-tab {
  padding: 0;
  border: none;
  background: #e5e7eb;
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1rem;
  font-weight: 500;
  color: #666;
  height: 2.125rem;
  width: 8.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-tab:hover {
  background: #d1d5db;
}

.faq-tab.active {
  background: #4da6ff;
  color: white;
}

/* 영어일 때 FAQ 탭 글씨 크기 줄이기 */
html[lang="en"] .dashboard-section .faq-tab,
html[lang="en"] .faq-tabs-mobile .faq-tab {
  font-size: 0.85rem;
}

.dashboard-container {
  background: #1a1a1a;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  min-height: 500px;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #333;
}

.dashboard-title {
  color: white;
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0;
}

.dashboard-icon {
  font-size: 1.5rem;
}

.dashboard-content {
  color: white;
}

.dashboard-tabs {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dashboard-tab {
  color: #888;
  font-size: 0.9rem;
  cursor: pointer;
  transition: color 0.3s ease;
}

.dashboard-tab.active {
  color: white;
  font-weight: 600;
}

.dashboard-search {
  margin-bottom: 1.5rem;
}

.search-input {
  width: 100%;
  background: #333;
  border: 1px solid #555;
  border-radius: 0.5rem;
  padding: 0.75rem;
  color: white;
  font-size: 0.9rem;
}

.search-input::placeholder {
  color: #888;
}

.dashboard-categories {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.category {
  background: #333;
  color: #ccc;
  padding: 0.5rem 1rem;
  border-radius: 1rem;
  font-size: 0.8rem;
}

.dashboard-data {
  margin-bottom: 1.5rem;
}

.data-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid #333;
}

.data-item:last-child {
  border-bottom: none;
}

.data-name {
  color: #ccc;
  font-size: 0.9rem;
}

.data-value {
  color: white;
  font-weight: 600;
  font-size: 1rem;
}

.data-change {
  font-size: 0.8rem;
  font-weight: 500;
}

.data-change.positive {
  color: #4ade80;
}

.data-change.negative {
  color: #f87171;
}

.dashboard-chart {
  background: #222;
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  color: #888;
}

.chart-placeholder {
  font-size: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
    max-width: 100vw;
  }
  
  .container {
    max-width: 100%;
    padding: 0 1em;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .main-content-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
  }
  
  .middle-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
  }
  
  .right-column {
    gap: 1.5rem;
    width: 100%;
    max-width: 100%;
    min-width: auto;
    flex: none;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .faq-dashboard-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 100%;
    padding: 0;
    box-sizing: border-box;
  }
  
  .faq-dashboard-section .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .faq-section {
    padding-right: 0;
    padding-left: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .faq-title {
    font-size: 2rem;
  }
  
  .dashboard-section {
    display: none !important; /* Hide entire dashboard section on mobile */
  }
  
  .verification-title {
    font-size: 1.8rem;
  }
  
  .story-block,
  .visualization-block,
  .review-block {
    padding: 1rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .story-block {
    width: 100%;
    height: auto;
    min-height: 200px;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .visualization-block {
    min-height: 150px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .growth-block {
    padding: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .verification-bar {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding: 1rem;
  }
  
  .review-block {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    padding: 1rem;
  }
  
  .story-image-container,
  .growth-image-container {
    height: 150px;
  }
  
  .story-title,
  .visualization-title,
  .growth-title,
  .review-title {
    font-size: 1rem;
  }
  
  .verification-bar-text {
    font-size: 0.8rem;
    line-height: 1.2;
    word-wrap: break-word;
    padding: 0.5rem;
  }
  
  .review-text {
    font-size: 0.8rem;
    line-height: 1.3;
    word-wrap: break-word;
  }
  
  .review-title {
    font-size: 0.9rem;
  }
  
  .faq-image {
    display: none; /* Hide image on mobile */
  }
  
  .faq-tabs-desktop {
    display: none !important; /* Hide desktop tabs on mobile */
  }
  
  .faq-tabs-mobile {
    display: flex !important; /* Show mobile tabs */
  }
  
  /* Mobile tab styling - smaller size */
  .faq-tabs-mobile .faq-tab {
    font-size: 0.75rem;
    height: 1.75rem;
    width: 6.5rem;
    padding: 0.25rem 0.5rem;
    min-width: auto;
  }
  
  .faq-section {
    padding-left: 0;
    padding-right: 0;
    width: 100%;
    box-sizing: border-box;
  }
}

@media (max-width: 480px) {
  .verification-title {
    font-size: 1.5rem;
  }
  
  .story-title,
  .visualization-title,
  .growth-title,
  .review-title {
    font-size: 1rem;
  }
  
  .verification-bar-text {
    font-size: 1.2rem;
  }
  
  .story-description,
  .review-text {
    font-size: 0.8rem;
  }
  
  .story-block {
    padding: 1rem;
    min-height: 150px;
  }
  
  .visualization-block {
    padding: 1rem;
    min-height: 120px;
  }

  /* Intro Message Section - Ultra Mobile */
  .intro-message {
    padding: 2.5rem 0.75rem;
  }

  .intro-content {
    padding: 0 0.25rem;
  }

  .intro-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
    padding: 0 0.25rem;
  }

  .intro-subtitle {
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    padding: 0 0.25rem;
  }

  .intro-description {
    font-size: 0.85rem;
    margin-bottom: 2rem;
    padding: 0 0.25rem;
    line-height: 1.5;
  }

  .feature-cards {
    gap: 0.4rem;
    padding: 0 0.25rem;
    flex-direction: row; /* 한 줄로 배치 유지 */
    flex-wrap: nowrap; /* 줄바꿈 방지 */
  }

  .feature-card {
    min-height: 8.5rem;
    padding: 0.75rem 0.4rem;
    max-width: calc(33.333% - 0.27rem); /* 3개 카드가 한 줄에 맞도록 */
  }

  .feature-svg {
    width: 2.5rem;
    height: 2.5rem;
  }

  .feature-title {
    font-size: 0.7rem;
    padding: 0 0.2rem;
    line-height: 1.2;
  }
}

/* Container styles - excluding navbar to avoid conflicts with base.css */
.hero-section .container,
.intro-message .container,
.whatwedo .container,
#about .container {

    margin: 0 auto;
    max-width: 1400px;
}

/* Mobile container overflow handling */
@media (max-width: 768px) {
  .intro-message .container {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    overflow-x: hidden;
    max-width: 100%;
    box-sizing: border-box;
  }
}

/* Mobile navbar styles removed - using base.css only */

/* Hero Section */
.hero-section.start { /* .start class is from original HTML */
  background: radial-gradient(circle at 40% 70%, #0b2242 0%, #15161b 100%);
  color: var(--color-text-light);
  min-height: 100dvh; /* 동적 뷰포트 높이 - Chrome 북마크 바 대응, 내용이 많을 때 자동 확장 */
  display: flex;
  align-items: flex-start; /* 상단 정렬로 변경 */
  justify-content: flex-start; /* 왼쪽 정렬로 변경 */
  position: relative;
  padding: 4rem 0 2rem 0; /* 상단 패딩 7.5rem으로 설정 */
  text-align: left; /* 왼쪽 정렬로 변경 */
  z-index: 1; /* 배경 레이어 */
  overflow-x: hidden; /* 가로 스크롤만 방지, 세로는 내용에 맞게 확장 */
  overflow-y: visible; /* 세로 오버플로우 허용 - 텍스트 잘림 방지 */
  margin-top: calc(-1 * var(--navbar-height)); /* 네비게이션 바 높이만큼 위로 확장 */
  padding-top: calc(var(--navbar-height) + 2rem); /* 네비게이션 바 높이 + 2rem으로 줄임 */
}

/* CC SVG Overlay - 중간 레이어 */
.cc-svg-overlay {
  position: absolute;
  top: calc(-1 * var(--navbar-height)); /* 네비게이션 바 영역까지 확장 */
  left: 0;
  width: 100%;
  height: calc(100% + var(--navbar-height)); /* 네비게이션 바 높이만큼 높이 증가 */
  z-index: 10; /* 배경 위, 텍스트 아래 - 중간 레이어 */
  pointer-events: none; /* 클릭 이벤트 통과 */
  display: flex;
  align-items: center;
  justify-content: center;
}

.cc-svg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.6; /* 더 명확하게 보이도록 투명도 증가 */
  filter: brightness(1.0);
}

/* Hero Section Content - 최상위 레이어 */
.hero-section .container {
  position: relative;
  z-index: 50 !important; /* SVG 위, 최상위 레이어 */
  margin-left: 8.75rem !important; /* 왼쪽 마진 8.75rem */
  text-align: left !important; /* 왼쪽 정렬 */
}

/* Hero Section Container Override - Mobile Only */
@media (max-width: 768px) {
  .hero-section .container {
    padding-top: 0 !important; /* 상단 패딩 제거 (hero-section에서 처리) */
    padding-bottom: 1rem !important; /* 하단 패딩 추가 */
  }
}

.hero-section .headline-big {
  font-family: var(--font-primary); /* Lato */
  font-size: 4rem; /* 4rem으로 변경 */
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 3rem !important; /* 메인 헤드라인과 설명 사이 간격 3rem으로 설정 */
  margin-top: 0 !important; /* 상단 마진 제거 */
  text-shadow: 2px 2px 8px rgba(0,0,0,0.8), 0 0 10px rgba(0,0,0,0.5);
  position: relative;
  z-index: 50 !important; /* SVG 위, 최상위 레이어 */
  line-height: 1.2; /* 줄 간격 조정 */
}

.hero-section .headline-small {
  font-family: var(--font-primary); /* Lato */
  font-size: 2rem;
  font-weight: 400;
  color: var(--color-text-light);
  opacity: 0.9;
  margin-bottom: 0.3rem; /* 1.5rem에서 대폭 축소 */
  margin-top: 0; /* 상단 마진 제거 */
  text-shadow: 2px 2px 6px rgba(0,0,0,0.7), 0 0 8px rgba(0,0,0,0.4);
  position: relative;
  z-index: 50 !important; /* SVG 위, 최상위 레이어 */
}

.hero-section .small_words h4 { 
  font-family: var(--font-korean); 
  font-size: 1.25rem;
  font-weight: 300; 
  color: var(--color-text-light);
  opacity: 0.85;
  line-height: 1.6;
  margin-bottom: 0; /* 서브헤드라인 두 줄 사이 간격 제거 */
  margin-top: 0; /* 상단 마진 제거 */
  text-shadow: 1px 1px 4px rgba(0,0,0,0.6), 0 0 6px rgba(0,0,0,0.3);
  position: relative;
  z-index: 50 !important; /* SVG 위, 최상위 레이어 */
}

/* 서브헤드라인 컨테이너의 마진 설정 */
.hero-section .small_words {
  margin-bottom: 3rem !important; /* 서브헤드라인 전체와 버튼 사이 간격 3rem으로 설정 */
  margin-top: 0 !important; /* 상단 마진 제거 */
}

.hero-section .btn.start_b { /* Targeting .start_b button */
  font-family: var(--font-primary); /* Lato */
  font-size: 1.1rem;
  font-weight: 700;
  padding: 0.9rem 2.2rem;
  background-color: #ffffff !important; /* 흰색 배경 */
  border: 2px solid #87CEEB !important; /* 연한 파란색 테두리 */
  border-radius: 25px !important; /* 둥근 모서리 */
  color: #000000 !important; /* 검은색 텍스트 */
  text-transform: none; /* 대문자 변환 제거 */
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
  box-shadow: none !important; /* 글로우 효과 제거 */
  opacity: 1 !important; /* 버튼이 보이도록 강제 설정 */
  transform: translateY(0) !important; /* 위치 초기화 */
  position: relative;
  z-index: 50 !important; /* 최상위 레이어 */
  animation: riseFadeIn 1s ease-out 0.4s forwards;
}

@keyframes riseFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-section .btn.start_b:hover {
  background-color: #4da6ff !important; /* 호버 시 배경색 */
  color: #ffffff !important; /* 호버 시 글씨색 */
  border-color: #4da6ff !important; /* 호버 시 테두리색 */
  transform: translateY(-2px);
  box-shadow: none !important; /* 글로우 효과 제거 */
}

/* Hero CTA Buttons */
.hero-cta-buttons {
  display: flex;
  justify-content: flex-start; /* 왼쪽 정렬로 변경 */
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 50 !important; /* SVG 위, 최상위 레이어 */
}

.hero-cta-buttons .btn {
  font-family: var(--font-primary);
  font-weight: 600;
  padding: 0.8rem 1.4rem;
  border-radius: var(--border-radius-md);
  transition: all 0.3s ease;
  text-decoration: none;
  border-width: 2px;
  font-size: 0.95rem;
  min-width: 140px;
  position: relative;
  z-index: 50 !important; /* SVG 위, 최상위 레이어 */
}

.hero-cta-buttons .btn-outline-light {
  color: var(--color-text-light) !important;
  border-color: rgba(255, 255, 255, 0.8) !important;
  background-color: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(10px); /* 블러 효과로 가독성 향상 */
}

.hero-cta-buttons .btn-outline-light:hover {
  color: var(--color-primary-dark);
  background-color: var(--color-text-light);
  border-color: var(--color-text-light);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-md);
}

/* Hero Stats Bar */
.hero-stats-bar {
  margin-top: 2rem; /* 버튼과 통계 사이 간격 축소 */
  position: relative;
  z-index: 50 !important; /* SVG 위, 최상위 레이어 */
  overflow: visible !important; /* 텍스트 잘림 방지 */
}

.stats-container {
  display: flex;
  justify-content: flex-start; /* 왼쪽 정렬로 변경 */
  align-items: center;
  gap: 3rem; /* 통계 항목 간 간격 증가 */
  flex-wrap: wrap;
  padding: 1rem 0; /* 상하 패딩만 */
  overflow: visible !important; /* 텍스트 잘림 방지 */
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 100px; /* 통계 항목 최소 너비 증가 */
  position: relative;
  z-index: 50 !important; /* SVG 위, 최상위 레이어 */
  padding: 0.5rem;
  overflow: visible !important; /* 텍스트 잘림 방지 */
  min-height: auto; /* 최소 높이 자동 */
}

.stat-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  overflow: visible !important; /* 텍스트 잘림 방지 */
  min-height: auto; /* 최소 높이 자동 */
}

/* 통계 숫자와 글자 간격 강제 설정 */
.hero-section .stats-container .stat-item .stat-content .stat-number {
  margin: 0 !important;
  padding: 0 !important;
  margin-bottom: 0.5rem !important; /* 숫자와 라벨 사이 간격 추가 */
}

.stat-icon {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.stat-number {
  font-family: var(--font-primary);
  font-size: 5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 !important;
  padding: 0 !important;
  text-shadow: none;
  line-height: 1.1; /* 숫자 줄 간격 설정 */
}

.stat-label {
  font-family: var(--font-korean);
  font-size: 1rem;
  color: #bebebe;
  font-weight: 400;
  margin: 0 !important;
  padding: 0 !important;
  text-shadow: none;
  line-height: 1.5 !important; /* 라벨 줄 간격 설정 - 텍스트 잘림 방지 */
  white-space: normal !important; /* 텍스트 줄바꿈 허용 */
  overflow: visible !important; /* 텍스트 잘림 방지 */
  word-wrap: break-word; /* 긴 단어 줄바꿈 */
  word-break: keep-all; /* 한글 단어 단위 줄바꿈 */
}

/* Mobile Performance and Accessibility Optimizations */
@media (max-width: 768px) {
  /* Improve text readability on mobile */
  .hero-section .headline-big,
  .hero-section .headline-small,
  .hero-section .small_words h4 {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
  }
  
  /* Optimize animations for mobile performance */
  .fade-in-delay {
    animation-duration: 0.6s; /* Faster animations on mobile */
  }
  
  /* Improve tap targets and spacing */
  .hero-cta-buttons .btn {
    margin: 0.2rem 0; /* Add vertical margin for easier tapping */
  }
  
  /* Reduce motion for users who prefer it */
  @media (prefers-reduced-motion: reduce) {
    .fade-in-delay,
    .hero-cta-buttons .btn,
    .stat-item {
      animation: none;
      transition: none;
    }
  }
}

/* Responsive Design for Hero Section */
@media (max-width: 768px) {
  /* Hero Section Layout */
  .hero-section.start {
    background: radial-gradient(circle at 40% 70%, #0b2242 0%, #15161b 100%);
    min-height: 100dvh; /* 동적 뷰포트 높이 - Chrome 북마크 바 대응 */
    padding: calc(var(--navbar-height) + 1rem) 0 4rem 0; /* 패딩 더 축소 */
    align-items: flex-start; /* 상단 정렬로 변경 */
    justify-content: flex-start; /* 왼쪽 정렬 유지 */
    margin-top: calc(-1 * var(--navbar-height)); /* 네비게이션 바 높이만큼 위로 확장 */
    padding-top: calc(var(--navbar-height) + 2rem); /* 네비게이션 바 높이 + 2rem 패딩 */
  }
  
  /* 모바일에서 컨테이너 마진 조정 */
  .hero-section .container {
    margin-left: 2rem !important; /* 모바일에서 왼쪽 마진 축소 */
    text-align: left !important; /* 왼쪽 정렬 유지 */
  }
  
  /* CC SVG Mobile Adjustments */
  .cc-svg-overlay {
    top: calc(-1 * var(--navbar-height)); /* 네비게이션 바 영역까지 확장 */
    height: calc(100% + var(--navbar-height)); /* 네비게이션 바 높이만큼 높이 증가 */
  }
  
  .cc-svg-image {
    opacity: 0.4; /* 모바일에서 적절한 투명도 */
  }
  
  /* Hero Text Improvements */
  .hero-section .headline-big {
    font-size: 2.5rem !important; /* 모바일에서 적절한 크기 */
    line-height: 1.2;
    margin-bottom: 3rem !important; /* 모바일에서도 3rem으로 통일 */
    margin-top: 0 !important; /* 상단 마진 제거 */
  }
  
  .hero-section .headline-small {
    font-size: 1.35rem !important; /* 살짝 더 축소 */
    line-height: 1.3;
    margin-bottom: 0.3rem; /* 0.8rem에서 더 축소 */
    margin-top: 0; /* 상단 마진 제거 */
  }
  
  .hero-section .small_words h4 {
    font-size: 1.05rem !important; /* 살짝 더 축소 */
    line-height: 1.6;
    margin-bottom: 0; /* 서브헤드라인 두 줄 사이 간격 제거 */
    margin-top: 0; /* 상단 마진 제거 */
  }
  
  /* 모바일에서 서브헤드라인 컨테이너의 마진 설정 */
  .hero-section .small_words {
    margin-bottom: 3rem !important; /* 모바일에서도 서브헤드라인 전체와 버튼 사이 간격 3rem으로 통일 */
    margin-top: 0 !important; /* 상단 마진 제거 */
  }
  
  /* CTA Buttons Improvements */
  .hero-cta-buttons {
    flex-direction: column;
    gap: 1.2rem; /* 0.8rem에서 증가 */
    margin-top: 2rem; /* 버튼과 설명 사이 간격 */
    align-items: center; /* 중앙 정렬 강화 */
  }
  
  .hero-cta-buttons .btn {
    width: 100%;
    max-width: 320px; /* 280px에서 증가 */
    padding: 1rem 2rem; /* 더 큰 터치 영역 */
    font-size: 1rem;
    font-weight: 600;
    margin: 0 auto; /* 개별 버튼 중앙 정렬 */
    display: block; /* 블록 레벨로 설정 */
    border-radius: 25px !important; /* 둥근 모서리 유지 */
  }
  
  /* Stats Container Grid Layout - 2x2 Grid */
  .stats-container {
    display: grid; /* 그리드로 변경 */
    grid-template-columns: 1fr 1fr; /* 2열 그리드 */
    gap: 1rem; /* 간격 증가 */
    padding: 1rem; /* 패딩 증가 */
    margin-top: 1.5rem; /* 상단 마진 축소 */
    margin-bottom: 2rem; /* 하단 마진 축소 */
    justify-content: center; /* 중앙 정렬 */
    max-width: 400px; /* 최대 너비 제한 */
    margin-left: auto; /* 중앙 정렬 */
    margin-right: auto; /* 중앙 정렬 */
    overflow: visible !important; /* 텍스트 잘림 방지 */
  }
  
  .stat-item {
    min-width: 120px; /* 최소 너비 증가 */
    flex-shrink: 0; /* 축소 방지 */
    padding: 0.8rem; /* 패딩 증가 */
    background: none !important; /* 배경색 완전 제거 */
    text-align: center; /* 중앙 정렬 */
    overflow: visible !important; /* 텍스트 잘림 방지 */
    min-height: auto; /* 최소 높이 자동 */
  }
  
  .stat-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* 중앙 정렬로 변경 */
    text-align: center; /* 중앙 정렬로 변경 */
    overflow: visible !important; /* 텍스트 잘림 방지 */
    min-height: auto; /* 최소 높이 자동 */
  }
  
  /* 모바일에서 통계 숫자와 글자 간격 강제 설정 */
  .hero-section .stats-container .stat-item .stat-content .stat-number {
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 0.5rem !important; /* 숫자와 라벨 사이 간격 추가 */
  }
  
  .stat-icon {
    font-size: 1.8rem; /* 아이콘 크기 증가 */
    margin-bottom: 0.6rem;
  }
  
  .stat-number {
    font-size: 1.8rem; /* 숫자 크기 증가 */
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.5rem; /* 하단 마진 축소 */
    line-height: 1.2; /* 숫자 줄 간격 설정 */
  }
  
  .stat-label {
    font-size: 1rem; /* 라벨 크기 증가 */
    color: #bebebe;
    opacity: 1;
    font-weight: 500; /* 중간 굵기 */
    line-height: 1.5 !important; /* 라벨 줄 간격 설정 - 텍스트 잘림 방지 */
    white-space: normal !important; /* 텍스트 줄바꿈 허용 */
    overflow: visible !important; /* 텍스트 잘림 방지 */
    word-wrap: break-word; /* 긴 단어 줄바꿈 */
    word-break: keep-all; /* 한글 단어 단위 줄바꿈 */
  }
  
/* Mobile-only line break after "투자부터 회계까지" */
.hero-section .headline-big .mobile-br-after::after {
  content: "\A";
  white-space: pre; /* respect newline */
}

/* Default: Show <br> tags by default */
.hero-section .headline-big br {
  display: inline;
}

/* Desktop: Hide <br> tags in Korean version, show in English */
@media (min-width: 769px) {
  /* Korean version - hide <br> tags on desktop */
  html[lang="ko"] .hero-section .headline-big br {
    display: none;
  }
  
  /* English version - show <br> tags on desktop */
  html[lang="en"] .hero-section .headline-big br {
    display: inline;
  }
}

/* Mobile: Hide <br> tags in English version, show in Korean */
@media (max-width: 768px) {
  /* English version - hide <br> tags on mobile */
  html[lang="en"] .hero-section .headline-big br {
    display: none;
  }
  
  /* Korean version - show <br> tags on mobile */
  html[lang="ko"] .hero-section .headline-big br {
    display: inline;
  }
}

}

@media (max-width: 480px) {
  /* Ultra Mobile Optimizations */
  .hero-section.start {
    background: radial-gradient(circle at 40% 70%, #0b2242 0%, #15161b 100%);
    min-height: 100dvh; /* 동적 뷰포트 높이 - Chrome 북마크 바 대응 */
    padding: calc(var(--navbar-height) + 0.5rem) 0 3rem 0; /* 패딩 더 축소 */
    align-items: flex-start; /* 상단 정렬로 변경 */
    justify-content: flex-start; /* 왼쪽 정렬 유지 */
    margin-top: calc(-1 * var(--navbar-height)); /* 네비게이션 바 높이만큼 위로 확장 */
    padding-top: calc(var(--navbar-height) + 1.5rem); /* 네비게이션 바 높이 + 1.5rem 패딩 */
  }
  
  /* 소형 모바일에서 컨테이너 마진 조정 */
  .hero-section .container {
    margin-left: 1rem !important; /* 소형 모바일에서 왼쪽 마진 더 축소 */
    text-align: left !important; /* 왼쪽 정렬 유지 */
  }
  
  /* CC SVG Ultra Mobile Adjustments */
  .cc-svg-overlay {
    top: calc(-1 * var(--navbar-height)); /* 네비게이션 바 영역까지 확장 */
    height: calc(100% + var(--navbar-height)); /* 네비게이션 바 높이만큼 높이 증가 */
  }
  
  .cc-svg-image {
    opacity: 0.3; /* 소형 모바일에서 적당한 투명도 */
  }
  
  .hero-section .container {
    padding-top: 0 !important; /* 상단 패딩 제거 (hero-section에서 처리) */
    padding-bottom: 0.5rem !important; /* 하단 패딩 추가 */
  }
  
  /* Text Size for Small Screens */
  .hero-section .headline-big {
    font-size: 2rem !important; /* 소형 모바일에서 적절한 크기 */
    line-height: 1.1;
    margin-bottom: 3rem !important; /* 소형 모바일에서도 3rem으로 통일 */
    margin-top: 0 !important; /* 상단 마진 제거 */
  }
  
  .hero-section .headline-small {
    font-size: 1.05rem !important; /* 살짝 더 축소 */
    line-height: 1.2;
    margin-bottom: 0.2rem; /* 0.5rem에서 더 축소 */
    margin-top: 0; /* 상단 마진 제거 */
  }
  
  .hero-section .small_words h4 {
    font-size: 0.95rem !important; /* 살짝 더 축소 */
    line-height: 1.5;
    margin-bottom: 0; /* 서브헤드라인 두 줄 사이 간격 제거 */
    margin-top: 0; /* 상단 마진 제거 */
  }
  
  /* 소형 모바일에서 서브헤드라인 컨테이너의 마진 설정 */
  .hero-section .small_words {
    margin-bottom: 3rem !important; /* 소형 모바일에서도 서브헤드라인 전체와 버튼 사이 간격 3rem으로 통일 */
    margin-top: 0 !important; /* 상단 마진 제거 */
  }
  
  /* 2x2 Grid Stats Layout for Small Mobile */
  .stats-container {
    display: grid; /* 그리드로 변경 */
    grid-template-columns: 1fr 1fr; /* 2열 그리드 */
    gap: 0.8rem; /* 간격 */
    padding: 0.8rem; /* 패딩 */
    margin-bottom: 2rem; /* 하단 마진 축소 */
    justify-content: center; /* 중앙 정렬 */
    max-width: 350px; /* 최대 너비 제한 */
    margin-left: auto; /* 중앙 정렬 */
    margin-right: auto; /* 중앙 정렬 */
    overflow: visible !important; /* 텍스트 잘림 방지 */
  }
  
  .stat-item {
    display: flex; /* 플렉스로 변경 */
    flex-direction: column; /* 세로 배열로 변경 */
    justify-content: center;
    align-items: center;
    gap: 0.3rem; /* 간격 */
    padding: 0.6rem; /* 패딩 */
    background: none !important; /* 배경색 완전 제거 */
    border-radius: 0; /* 둥근 모서리 제거 */
    min-height: auto; /* 최소 높이 자동 - 텍스트 잘림 방지 */
    min-width: 100px; /* 최소 너비 설정 */
    flex-shrink: 0; /* 축소 방지 */
    text-align: center;
    overflow: visible !important; /* 텍스트 잘림 방지 */
  }
  
  .stat-icon {
    font-size: 1.6rem; /* 아이콘 크기 증가 */
    margin-bottom: 0.4rem;
  }
  
  .stat-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* 중앙 정렬로 변경 */
    text-align: center; /* 중앙 정렬로 변경 */
    overflow: visible !important; /* 텍스트 잘림 방지 */
    min-height: auto; /* 최소 높이 자동 */
  }
  
  /* 소형 모바일에서 통계 숫자와 글자 간격 강제 설정 */
  .hero-section .stats-container .stat-item .stat-content .stat-number {
    margin: 0 !important;
    padding: 0 !important;
    margin-bottom: 0.5rem !important; /* 숫자와 라벨 사이 간격 추가 */
  }
  
  .stat-number {
    font-size: 1.5rem; /* 숫자 크기 증가 */
    margin: 0 !important;
    padding: 0 !important;
    color: #ffffff;
    font-weight: 700; /* 굵게 */
    line-height: 1.2; /* 숫자 줄 간격 설정 */
  }
  
  .stat-label {
    font-size: 0.9rem; /* 라벨 크기 증가 */
    line-height: 1.5 !important; /* 라벨 줄 간격 증가 - 텍스트 잘림 방지 */
    font-weight: 500; /* 중간 굵기 */
    word-wrap: break-word;
    word-break: keep-all;
    color: #bebebe;
    margin: 0 !important;
    padding: 0 !important;
    white-space: normal !important; /* 텍스트 줄바꿈 허용 */
    overflow: visible !important; /* 텍스트 잘림 방지 */
  }
  
  /* Button Optimizations */
  .hero-cta-buttons .btn {
    max-width: 100%;
    padding: 1.1rem 1.5rem;
    font-size: 0.95rem;
    min-height: 44px; /* Minimum touch target size */
    touch-action: manipulation; /* Optimize for touch */
    border-radius: 25px !important; /* 둥근 모서리 유지 */
  }
  
  /* Touch-friendly interactions */
  .hero-cta-buttons .btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  }
  
  .stat-item:active {
    transform: scale(0.98);
    transition: transform 0.1s ease;
  }
} 

/* Service Cards Interactivity */
.whatwedo .card.rise {
  transition: 
    transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1),
    box-shadow 1s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.whatwedo .card.rise:hover {
  transform: translateY(-8px); /* Lift the card up slightly */
  box-shadow: var(--box-shadow-md); /* Use pre-defined medium shadow for more depth */
}

/*  Message Section */
.intro-message,
.intro-message.bg-light {
  background: #ffffff !important; /* 흰색 배경 강제 적용 */
  color: #333;
  padding: 6rem 0;
  text-align: center;
}

.intro-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0rem;
}

.intro-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 1.5rem;
  line-height: 1.3;
  font-family: var(--font-primary);
}

.intro-subtitle {
  font-size: 1.2rem;
  color: #666;
  margin-bottom: 2rem;
  font-weight: 500;
  font-family: var(--font-korean);
}

.intro-description {
  font-size: 1rem;
  color: #555;
  line-height: 1.7;
  margin-bottom: 4rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  font-family: var(--font-korean);
}

.feature-cards {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.feature-card {
  background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 50%, #f8f9fa 100%);
  border-radius: 16px;
  padding: 0.5rem;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05), inset 0 0 0.2rem 0.2rem rgba(11, 34, 66, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  flex: 1;
  min-width: 21rem;
  max-width: 21rem;
  height: 16.75rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}


.feature-icon {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature-svg {
  width: 9rem;
  height: 9.5rem;
  object-fit: contain;
}

.feature-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin: 0;
  line-height: 1.4;
  font-family: var(--font-korean);
}

/* Services Section (whatwedo) & Cards */
.whatwedo {
  padding: 4rem 1rem;
}

/* 모바일에서 가치 평가 모델링 섹션 상단 마진 증가 */
@media (max-width: 768px) {
  .whatwedo {
    padding-top: 6rem; /* 모바일에서 상단 패딩 증가 */
  }
}
.whatwedo.bg-light { /* For alternating sections */
    background-color: #ffffff;
}

.section-title {
  font-family: var(--font-primary); /* Lato */
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 2rem;
}

.section-hook {
  font-family: var(--font-korean);
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 5rem;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.card {
  border: 1px solid #e0e0e0;
  border-radius: var(--border-radius-md);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  background-color: var(--color-background-light);
  overflow: hidden; /* Ensures image corners are rounded if .card has border-radius */
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-md) !important;
}

.card .card-title {
  font-family: var(--font-primary); /* Lato */
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.75rem;
}

.card .card-text {
  font-family: var(--font-korean);
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.card .btn-outline-primary {
  font-family: var(--font-primary); /* Lato */
  color: var(--color-accent-gold);
  border-color: var(--color-accent-gold);
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  font-size: 0.9rem;
}

.card .btn-outline-primary:hover {
  background-color: var(--color-accent-gold);
  color: var(--color-background-light);
  border-color: var(--color-accent-gold);
}

.card img.img-fluid {
  max-height: 70px; /* Adjust icon size */
  object-fit: contain;
}

/* About Section */
#about {
    padding: 4rem 1rem;
    background-color: var(--color-background-medium);
}

/* Footer styles removed - using base.css only */

/* Scroll-based animations (existing from index.html) */
.rise {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}
.rise.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-delay {
  opacity: 0;
  transform: translateY(20px); /* 아래에서 시작 */
  filter: blur(4px);           /* 흐림 효과 시작 */
  animation: fadeInSmooth 1s ease-out 0.5s forwards;
}

@keyframes fadeInSmooth {
  to {
    opacity: 1;
    transform: translateY(0);   /* 제자리로 */
    filter: blur(0);            /* 또렷하게 */
  }
}

/* Navbar shrink effect (existing from index.html) */
/* .navbar.scrolled ruleset removed as it was empty */
/* Responsive adjustments */
@media (max-width: 992px) {
    .hero-section .headline-big {
        font-size: 3rem; /* 2.8rem에서 증가 */
        line-height: 1.2;
    }
    .hero-section .headline-small {
        font-size: 1.8rem; /* 1.7rem에서 증가 */
        line-height: 1.3;
    }
    
    .hero-section .small_words h4 {
        font-size: 1.15rem;
        line-height: 1.7;
    }
}

/* Mobile styles moved to consolidated media query below */

/* About Section Styles */
#about .section-title { /* h2 in HTML */
  color: #333;
  margin-bottom: 2.5rem; /* Increased for more separation from the paragraph below */
  font-weight: 700;
}

/* The main intro paragraph under h2 */
#about p.text-center.lead.mb-5 {
  color: #555;
  line-height: 1.7;
  /* mb-5 (3rem) from HTML is good for spacing to the two columns */
}

#about h3.fw-semibold { /* "누구를 위한 서비스인가요?", "FACCTing의 차별점" */
  color: #343a40; /* Bootstrap's default dark color */
  font-size: 1.75rem; /* Make section sub-headers prominent */
  margin-bottom: 1.5rem; /* Bootstrap mb-3 is 1rem in HTML, this gives more space */
}

/* Styling for the list items under '누구를 위한 서비스인가요?' */
#about ul.list-unstyled.lead li {
  font-size: 1.1rem; /* Override lead's 1.25rem if too large, make it substantial */
  font-weight: 400;   /* Override lead's 300 weight for better readability */
  color: #495057;     /* Bootstrap's gray-700 for good readability */
  padding: 0.4rem 0;
  line-height: 1.6;
}

/* Styling for the paragraph under 'FACCTing의 차별점' */
#about .col-md-6:last-child p.lead {
  font-size: 1.1rem; /* Consistent with list items */
  font-weight: 400;   /* Consistent with list items */
  color: #495057;     /* Consistent with list items */
  line-height: 1.6;
}

#about .col-md-6 p.lead strong { /* The emphasized text with emoji */
  color: #0d6efd; /* Bootstrap primary blue for strong emphasis */
  font-weight: 700; /* Make it clearly bold */
}

#about .row > .col-md-6 {
  background-color: #ffffff;
  padding: 2.5rem 2rem; /* Increased padding */
  border-radius: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
  margin-bottom: 2rem; /* Ensure consistent spacing if mb-4 from HTML isn't enough */
}

#about .row > .col-md-6:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}
/* End of About Section Styles */


/* 좌우 버튼 스타일 */
.scroll-btn {
  background: none;
  border: none;
  color: #333;
  font-size: 2rem;
  cursor: pointer;
  padding: 0;
  margin: 0;
  line-height: 1;
  transition: color 0.3s ease;
}

.scroll-btn:hover {
  color: #555;
}

.rise {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s ease-out, transform 1.2s ease-out;
}
.rise.visible {
  opacity: 1;
  transform: translateY(0);
}

.whatwedo {
  padding-top: 4rem;
}
.whatwedo-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin: 0.5rem auto;
  width: 85%;
  max-width: 1200px;
  padding: 0.5rem 0;
}

.whatwedo-text {
  flex: 1;
}
.whatwedo-text h3 {
  font-size: 2rem;
  margin-bottom: 1rem;
}
.whatwedo-text p {
  font-size: 1.2rem;
  color: #444;
  line-height: 1.6;
}

.whatwedo-img {
  flex: 1;
  text-align: center;
}
.whatwedo-img img {
  width: 100%;
  max-width: 360px;
  max-height: 200px;
  object-fit: contain;
}



/*
footer {
  text-align: center;
  padding: 1rem;
  background-color: black;
  font-size: 0.8rem;
  color: white;
  height: 25rem;
}
.footer .footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
}
.footer .section {
  flex: 1;
  margin: 10px;
  min-width: 200px;
}
.footer .section h3 {
  border-bottom: 2px solid #575757;
  padding-bottom: 5px;
  margin-bottom: 10px;
}
.footer .section ul {
  list-style: none;
  padding: 0;
}
.footer .section ul li {
  margin: 5px 0;
}
.footer .section ul li a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}
.footer .section ul li a:hover {
  color: #00bcd4;
}
.footer .social-icons {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.footer .social-icons a {
  color: white;
  margin: 0 10px;
  font-size: 20px;
  text-decoration: none;
}
.footer .social-icons a:hover {
  color: #00bcd4;
}
*/

/* Navbar styles removed - using base.css only for consistency */
/* Nav-link hover styles removed - using base.css only */

.hamburger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}
.hamburger .bar {
  height: 1rem;
  width: 3rem;
  background-color: black; /* ✅ 기존엔 white였음 */
  margin: 4px 0;
  transition: all 0.3s;
}


/* Dropdown styles removed - using base.css only for consistency */

.intro-message,
.intro-message.bg-light {
  background: #ffffff !important; /* 흰색 배경 강제 적용 */
  color: black !important;
  
  display: flex;
  justify-content: center;  /* 세로 중앙 */
  align-items: center;      /* 가로 중앙 */
  text-align: center;
  width: 100%;
  height: auto;               /* 높이 고정 해제하면 더 유연해져 */
  padding: 1rem 1rem;         /* 모바일에서 적절한 패딩 */
  margin-bottom: 5rem;    
}

.message-box {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.7;
}


/* 반응형 미디어 쿼리 */
/* Consolidated Mobile Navigation Styles */
@media (max-width: 768px) {
  /* Mobile navbar styles removed - using base.css only */
  /* Legacy styles removed - Hero Section styles now handled in main responsive section above */
  
  /* Graph and Chart Elements */
  .bar-chart-wrapper {
    display: none;
  }

  /* Intro Message Section */
  .intro-message {
    padding: 3rem 1rem;
    overflow-x: hidden; /* 가로 스크롤 방지 */
  }

  .intro-content {
    padding: 0 0.5rem;
    max-width: 100%;
    overflow-x: hidden; /* 가로 스크롤 방지 */
  }

  .intro-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    max-width: 100%; /* 최대 너비를 100%로 설정 */
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 0 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .intro-subtitle {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    max-width: 100%; /* 최대 너비를 100%로 설정 */
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 0 0.5rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .intro-description {
    font-size: 0.9rem;
    margin-bottom: 2.5rem;
    max-width: 100%; /* 최대 너비를 100%로 설정 */
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 0 0.5rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .feature-cards {
    gap: 0.5rem;
    flex-direction: row; /* 한 줄로 배치 */
    align-items: stretch;
    justify-content: center;
    flex-wrap: nowrap; /* 줄바꿈 방지 - 한 줄 유지 */
    overflow-x: visible; /* 가로 스크롤 제거 */
    padding: 0 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .feature-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 50%, #f8f9fa 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05), inset 0 0 0.2rem 0.2rem rgba(11, 34, 66, 0.04);
    flex: 1; /* 동일한 크기로 분배 */
    min-width: 0; /* flexbox에서 최소 너비 제약 제거 */
    max-width: calc(33.333% - 0.34rem); /* 3개 카드가 한 줄에 맞도록 (gap 고려) */
    width: auto;
    height: auto; /* 높이 자동 조정 */
    min-height: 9rem; /* 최소 높이 설정 */
    padding: 1rem 0.5rem;
    flex-shrink: 1; /* 필요시 축소 허용 */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .feature-icon {
    margin-bottom: 0.75rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
  }

  .feature-svg {
    width: 3rem; /* 모바일에서 적절한 크기 */
    height: 3rem;
    max-width: 100%;
    object-fit: contain;
  }

  .feature-title {
    font-size: 0.75rem; /* 작은 화면에 맞게 조정 */
    line-height: 1.3;
    margin-top: 0.25rem;
    word-wrap: break-word;
    overflow-wrap: break-word;
    padding: 0 0.25rem;
    text-align: center;
    flex-shrink: 0;
  }

  /* 📌 이미지 슬라이더 */
  .image-container figure {
    flex: 0 0 80%;
    width: auto;
  }

  .image-container img {
    height: auto;
    max-height: 250px;
  }

 

  /* Footer mobile styles removed - using base.css only */
}


/* 기존 스타일 유지 */

/* 프로필 아이콘 영역 */
.profile-icon {
  margin-left: 1rem;
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.profile-icon img {
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #4682B4;
}

/* 드롭다운 스타일: 프로필 아이콘에 마우스 오버하면 나타남 */
.profile-dropdown {
  position: relative;
  display: inline-block;
}

/* Finance Feature Card Styles */
.finance-feature-card {
  background-color: var(--color-primary-dark); /* Using existing dark navy */
  color: var(--color-text-light);
  border: 1px solid var(--color-primary-medium);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: var(--border-radius-md); /* Using existing medium border radius */
  overflow: hidden; /* Ensures child elements conform to border radius */
}

.finance-feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.finance-feature-card .finance-icon-bg {
  background-color: var(--color-primary-medium); /* Slightly lighter than card bg */
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px; /* Ensure a consistent height for the icon area */
}

.finance-feature-card .finance-icon-bg i {
  font-size: 3rem; /* Larger icons */
  color: var(--color-accent-gold);
}

.finance-feature-card .card-body {
  padding: 1.75rem;
}

.finance-feature-card .card-title {
  color: var(--color-accent-gold); /* Gold for titles */
  font-family: var(--font-primary); /* Lato */
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.finance-feature-card .card-text {
  color: var(--color-text-light); /* Light text for readability on dark bg */
  font-family: var(--font-korean);
  font-size: 0.95rem;
}

/* English version - smaller text for better fit */
html[lang="en"] .finance-feature-card .card-title {
  font-size: 1.1rem; /* Slightly smaller title */
}

html[lang="en"] .finance-feature-card .card-text {
  font-size: 0.85rem; /* Smaller description text */
  line-height: 1.5; /* Tighter line height */
}

.finance-feature-card .btn-outline-primary {
  font-family: var(--font-primary);
  font-weight: 500;
  color: var(--color-accent-light-gold);
  border-color: var(--color-accent-light-gold);
  background-color: transparent;
  padding: 0.6rem 1.2rem;
  border-radius: var(--border-radius-sm);
  transition: background-color 0.2s ease, color 0.2s ease;
}

.finance-feature-card .btn-outline-primary:hover {
  background-color: var(--color-accent-gold);
  color: var(--color-primary-dark); /* Dark text on gold hover */
  border-color: var(--color-accent-gold);
}

/* Adjustments for horizontal layout if used (icon left, text right) */
.finance-feature-card.horizontal-card .row > .col-lg-4, /* Icon column */
.finance-feature-card.horizontal-card .row > .col-lg-8 { /* Text column */
  padding-left: 0;
  padding-right: 0;
}

.finance-feature-card.horizontal-card .finance-icon-bg {
  border-top-left-radius: var(--border-radius-md);
  border-bottom-left-radius: var(--border-radius-md);
  border-top-right-radius: 0; /* Reset for horizontal */
  border-bottom-right-radius: 0; /* Reset for horizontal */
  min-height: 100%; /* Make icon background take full height of card */
}

.finance-feature-card.horizontal-card .card-body {
  border-top-right-radius: var(--border-radius-md);
  border-bottom-right-radius: var(--border-radius-md);
}

/* Ensure the section titles and hooks are visible on potentially new section backgrounds */
.whatwedo .section-title {
  color: var(--color-primary-dark); /* Or a color that contrasts with section bg */
}
.whatwedo .section-hook {
  color: var(--color-text-muted); /* Or a color that contrasts */
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #fff;
  min-width: 100px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 5px;
  overflow: hidden;
}

.profile-dropdown:hover .dropdown-content {
  display: block;
}

.dropdown-content a {
  color: #000;
  padding: 8px 12px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

@media (max-width: 767.98px) { /* Bootstrap md breakpoint for mobile */
  .finance-feature-card.horizontal-card .finance-icon-bg {
    min-height: auto;    /* Allow height to be more flexible */
    padding: 1.5rem;     /* Reduce padding */
    flex-basis: auto; /* Allow Bootstrap's column stacking to dictate width */
    width: 100%; /* Make it full width when stacked */
    /* Ensure border radius is correct when stacked */
    border-top-left-radius: var(--border-radius-md);
    border-top-right-radius: var(--border-radius-md);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }

  .finance-feature-card.horizontal-card .finance-icon-bg i {
    font-size: 2.5rem;   /* Reduce icon size */
  }

  .finance-feature-card.horizontal-card .card-body {
    /* Ensure border radius is correct when stacked below icon */
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: var(--border-radius-md);
    border-bottom-right-radius: var(--border-radius-md);
  }

  .finance-feature-card.horizontal-card .col-lg-8 { /* This is the text content part */
     width: 100%; /* Ensure it takes full width when stacked */
  }
}

/* ===== PLATFORM TOUR MODAL STYLES ===== */
.tour-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 35, 66, 0.95);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  padding: 2rem;
  overflow-y: auto;
}

.tour-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.tour-modal-container {
  background: var(--color-background-light);
  border-radius: 1.5rem;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  transform: translateY(30px);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tour-modal-overlay.active .tour-modal-container {
  transform: translateY(0);
}

.tour-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--color-text-muted);
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.3s ease;
  z-index: 10;
  line-height: 1;
}

.tour-modal-close:hover {
  background-color: var(--color-background-medium);
  color: var(--color-primary-dark);
  transform: rotate(90deg);
}

.tour-modal-header {
  padding: 2.5rem 3rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--color-background-medium);
}

.tour-modal-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
  font-family: var(--font-primary);
}

.tour-modal-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  font-family: var(--font-korean);
}

  .tour-slider-container {
    position: relative;
    flex: 1;
    overflow: hidden;
    min-height: 500px;
  }
  
  @media (max-width: 768px) {
    .tour-slider-container {
      min-height: 300px;
      max-height: 60vh;
    }
  }

.tour-slider-wrapper {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  height: 100%;
}

.tour-slide {
  min-width: 100%;
  display: none;
  padding: 2rem 3rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tour-slide.active {
  display: block;
  opacity: 1;
}

.tour-slide-content {
  display: flex;
  align-items: center;
  gap: 4rem;
  height: 100%;
  max-width: 1000px;
  margin: 0 auto;
}

.tour-slide-left {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.tour-slide-icon {
  width: 240px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(31, 78, 121, 0.1) 0%, rgba(176, 141, 87, 0.1) 100%);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 8px 24px rgba(10, 35, 66, 0.1);
}

.tour-slide-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.tour-slide-image {
  background: none;
  box-shadow: none;
  padding: 0;
  width: 100%;
  height: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tour-slide-img {
  width: 100%;
  height: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 12px;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.15));
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
  cursor: pointer;
}

.tour-slide-img:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.25));
}

.tour-slide-right {
  flex: 1.2;
}

.tour-slide-number {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-accent-gold);
  margin-bottom: 0.5rem;
  font-family: var(--font-primary);
  letter-spacing: 2px;
  position: relative;
  display: inline-block;
  padding-left: 2.5rem;
}

.tour-slide-number::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2rem;
  border: 3px solid var(--color-accent-gold);
  border-radius: 50%;
  background: transparent;
}

.tour-slide-number::after {
  content: '';
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: var(--color-accent-gold);
  opacity: 0.3;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: translateY(-50%) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-50%) scale(1.2);
    opacity: 0.1;
  }
}

.tour-slide-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
  font-family: var(--font-primary);
  line-height: 1.2;
  opacity: 1;
  transform: translateY(0);
}

.tour-slide.active .tour-slide-title {
  opacity: 1;
  transform: translateY(0);
}

.tour-slide-description {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  font-family: var(--font-korean);
  opacity: 1;
  transform: translateY(0);
}

.tour-slide.active .tour-slide-description {
  opacity: 1;
  transform: translateY(0);
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.tour-slide-features {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
}

.tour-slide-features li {
  font-size: 1rem;
  color: var(--color-text-dark);
  padding: 0.5rem 0;
  padding-left: 1.5rem;
  position: relative;
  font-family: var(--font-korean);
  opacity: 1;
  transform: translateX(0);
  transition: all 0.4s ease;
}

.tour-slide:not(.active) .tour-slide-features li {
  opacity: 0;
  transform: translateX(-20px);
}

.tour-slide-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent-gold);
  font-weight: 700;
  font-size: 1.2rem;
  transition: transform 0.3s ease;
}

.tour-slide-features li:hover::before {
  transform: scale(1.2) rotate(5deg);
}

.tour-slide-features li:hover {
  color: var(--color-primary-dark);
  padding-left: 1.8rem;
}

.tour-slide-features li {
  position: relative;
  cursor: help;
}

.tour-feature-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background-color: var(--color-primary-dark);
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
  white-space: nowrap;
  max-width: 300px;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  pointer-events: none;
  font-family: var(--font-korean);
}

.tour-feature-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--color-primary-dark);
}

.tour-slide-features li:hover .tour-feature-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(-12px);
}

@media (max-width: 768px) {
  .tour-feature-tooltip {
    display: none;
  }
}

.tour-slide-button {
  display: inline-block;
  background-color: var(--color-primary-dark);
  color: white;
  padding: 0.9rem 2.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  font-family: var(--font-primary);
  position: relative;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
}

.tour-slide-button:hover {
  background-color: var(--color-primary-medium);
  color: white;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(10, 35, 66, 0.3);
}

.tour-button-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transform: scale(0);
  animation: ripple 0.6s ease-out;
  pointer-events: none;
}

@keyframes ripple {
  to {
    transform: scale(4);
    opacity: 0;
  }
}

.tour-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 2px solid var(--color-primary-dark);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  color: var(--color-primary-dark);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tour-slider-nav:hover {
  background-color: var(--color-primary-dark);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tour-slider-nav svg {
  width: 24px;
  height: 24px;
}

.tour-slider-prev {
  left: 1.5rem;
}

.tour-slider-next {
  right: 1.5rem;
}

.tour-slider-indicators {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  border-top: 1px solid var(--color-background-medium);
}

.tour-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--color-primary-dark);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.tour-indicator:hover {
  transform: scale(1.2);
  background-color: var(--color-primary-medium);
}

.tour-indicator.active {
  background-color: var(--color-primary-dark);
  width: 32px;
  border-radius: 6px;
}

.tour-indicator {
  position: relative;
}

.tour-indicator-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary-dark);
  color: white;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  white-space: nowrap;
  margin-bottom: 0.5rem;
  opacity: 0;
  animation: tooltipFadeIn 0.2s ease forwards;
  pointer-events: none;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.tour-indicator-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--color-primary-dark);
}

@keyframes tooltipFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Responsive Design for Tour Modal */
@media (max-width: 1024px) {
  .tour-modal-container {
    max-width: 95%;
  }
  
  .tour-slide-content {
    gap: 2.5rem;
  }
  
  .tour-slide-icon {
    width: 180px;
    height: 180px;
    padding: 1.5rem;
  }
  
  .tour-slide-left {
    min-height: 300px;
    width: 100%;
  }
  
  .tour-slide-image {
    min-height: 300px;
    width: 100%;
    max-width: 100%;
  }
  
  .tour-slide-img {
    max-height: 300px;
    width: 100%;
    object-fit: contain;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .tour-modal-overlay {
    padding: 1rem;
    align-items: center;
    justify-content: center;
  }
  
  .tour-modal-container {
    max-width: 100%;
    width: 100%;
    max-height: 70vh;
    height: 70vh;
    border-radius: 1rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0;
  }
  
  .tour-modal-header {
    padding: 1rem 0.75rem 0.5rem;
    flex-shrink: 0;
  }
  
  .tour-modal-title {
    font-size: 1.5rem;
  }
  
  .tour-modal-subtitle {
    font-size: 0.9rem;
  }
  
  .tour-modal-close {
    top: 0.75rem;
    right: 0.75rem;
    width: 32px;
    height: 32px;
    font-size: 1.3rem;
  }
  
  .tour-slider-container {
    min-height: 0;
    max-height: none;
    flex: 1 1 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
  }
  
  .tour-slide {
    padding: 0.75rem;
    max-height: none;
    overflow-y: auto;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch;
  }
  
  .tour-slide-content {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    min-height: auto;
    flex: 1;
    display: flex;
  }
  
  .tour-slide-left {
    width: 100%;
    max-width: 100%;
    flex: none;
    min-height: auto;
    max-height: 150px;
  }
  
  .tour-slide-icon {
    width: 100px;
    height: 100px;
    padding: 0.75rem;
    border-radius: 12px;
  }
  
  .tour-slide-image {
    width: 100%;
    max-width: 100%;
    min-height: auto;
    height: auto;
    max-height: 150px;
  }
  
  .tour-slide-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 150px;
    object-fit: contain;
  }
  
  .tour-slide-title {
    font-size: 1.1rem;
    margin-bottom: 0.4rem;
  }
  
  .tour-slide-description {
    font-size: 0.75rem;
    margin-bottom: 0.6rem;
    line-height: 1.35;
  }
  
  .tour-slide-features {
    margin-bottom: 0.6rem;
  }
  
  .tour-slide-features li {
    font-size: 0.7rem;
    padding: 0.2rem 0;
  }
  
  .tour-slide-number {
    padding-left: 2rem;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
  }
  
  .tour-slide-number::before {
    width: 1.5rem;
    height: 1.5rem;
    border-width: 2px;
  }
  
  .tour-slide-number::after {
    width: 0.75rem;
    height: 0.75rem;
    left: 0.375rem;
  }
  
  .tour-slide-button {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    width: 100%;
    text-align: center;
  }
  
  .tour-slider-indicators {
    padding: 0.75rem;
    flex-shrink: 0;
    border-top: 1px solid var(--color-background-medium);
    min-height: auto;
  }
  
  .tour-slider-nav {
    display: none;
  }
  
  .tour-indicator {
    width: 10px;
    height: 10px;
  }
  
  .tour-indicator.active {
    width: 24px;
  }
}

@media (max-width: 480px) {
  .tour-modal-header {
    padding: 0.75rem 0.5rem 0.4rem;
  }
  
  .tour-modal-title {
    font-size: 1.2rem;
  }
  
  .tour-modal-subtitle {
    font-size: 0.8rem;
  }
  
  .tour-modal-close {
    top: 0.5rem;
    right: 0.5rem;
    width: 28px;
    height: 28px;
    font-size: 1.1rem;
  }
  
  .tour-slide {
    padding: 0.5rem;
  }
  
  .tour-slide-content {
    gap: 0.5rem;
  }
  
  .tour-slide-title {
    font-size: 0.95rem;
  }
  
  .tour-slide-description {
    font-size: 0.65rem;
  }
  
  .tour-slide-features li {
    font-size: 0.6rem;
  }
  
  .tour-slide-button {
    padding: 0.4rem 0.8rem;
    font-size: 0.65rem;
  }
  
  .tour-slider-indicators {
    padding: 0.5rem;
  }
}