/* 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%;
}

/* 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 */
  display: flex;
  flex-direction: column;
  min-height: 100%; /* Use 100% as html is 100% */
}

.main-page-content {
  flex: 1 0 auto;
  padding-top: var(--navbar-height); /* Offset for fixed navbar */
  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;
}

.container, .container-fluid {
    padding-left: 1rem;
    padding-right: 2rem;
    padding-top: 11rem;
    padding-bottom: 9rem;
}

/* Navigation Bar */
.navbar { /* Bootstrap class .navbar-dark .bg-dark is on the HTML element */
  background-color: var(--color-primary-dark) !important; /* Override Bootstrap's bg-dark */
  height: var(--navbar-height);
  display: flex;
  align-items: center;
  padding-bottom: 2.1rem;
}

.navbar .container-fluid {
  display: flex;
  align-items: center;
  height: 100%;
}

.navbar .navbar-brand {
  display: flex;
  align-items: center;
  height: var(--navbar-height); /* Consistent height */
  padding-top: 0.5rem;
  padding-bottom: 0;
  /* Horizontal padding will use Bootstrap default or can be set if needed */
}

.navbar .navbar-brand img.logo-img {
  height: 4rem; /* Standardized height */
  filter: brightness(0) invert(1); /* Make logo white for dark background */
  /* vertical-align: middle; Removed, rely on parent flex alignment */
  padding-bottom: 1rem;
}

/* Ensure no lines/underlines on the logo link */
.navbar .navbar-brand,
.navbar .navbar-brand:hover,
.navbar .navbar-brand:focus {
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important; /* Explicitly remove bottom border */
    box-shadow: none !important;
    /* display: inline-block; was conflicting with flex display, removed */
}

/* Ensure no lines/underlines on the profile/login dropdown toggle link and its caret */
.navbar .d-flex .dropdown > a.dropdown-toggle,
.navbar .d-flex .dropdown > a.dropdown-toggle:hover,
.navbar .d-flex .dropdown > a.dropdown-toggle:focus {
    text-decoration: none !important;
    border: none !important;
    border-bottom: none !important; /* Explicitly remove bottom border */
    box-shadow: none !important;
    outline: none !important; /* Remove outline too, just in case */
}

.navbar .d-flex .dropdown > a.dropdown-toggle::after {
    border: none !important; /* Remove any borders from the caret itself */
    border-top: 0.3em solid transparent !important; /* Re-style caret if borders are removed, or adjust as needed */
    border-right: 0.3em solid transparent !important;
    border-bottom: 0 !important;
    border-left: 0.3em solid transparent !important;
    box-shadow: none !important; /* Just in case */
    /* If the default Bootstrap caret is made of borders, this might make it disappear or look odd. */
    /* We might need to reconstruct it if this is the case, or target the line more specifically. */
    /* For now, the priority is to remove the unwanted line. */
}

.navbar-nav {
  display: flex;
  align-items: center;
  height: 100%;
  margin: 0;
  padding: 0;
}

.navbar .nav-link {
  font-family: var(--font-primary); /* Lato for nav links */
  color: var(--color-text-light) !important;
  font-weight: 500; /* Slightly bolder */
  height: auto; /* Allow natural height */
  display: flex;
  align-items: center;
  padding: 0.5rem 1rem; /* Even padding all around */
  transition: color 0.2s ease, background-color 0.2s ease;
  border-radius: var(--border-radius-sm);
  margin: 0 0.25rem;
  line-height: 1.5;
}

.navbar .nav-link:hover,
.navbar .nav-link.active, /* For active page indication if used */
.navbar .nav-item.dropdown:hover .nav-link { /* Highlight dropdown toggle on hover */
  color: var(--color-accent-gold) !important;
  background-color: rgba(255, 255, 255, 0.05); /* Subtle hover background */
}

.navbar .dropdown-menu {
  background-color: var(--color-primary-dark);
  border: 1px solid var(--color-primary-medium);
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-md);
  margin-top: 0.25rem; /* Align better with navbar */
}

.navbar .dropdown-item {
  color: var(--color-text-light) !important; /* Ensure our color overrides Bootstrap defaults */
  font-family: var(--font-korean); /* Noto Sans KR for dropdown items */
  padding: 0.5rem 1rem;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background-color: var(--color-background-medium);
  color: var(--color-text-dark) !important; /* Use dark text on light hover bg */
}

.navbar .navbar-toggler {
  border-color: rgba(255,255,255,0.25);
}
.navbar-collapse {
  z-index: 1031; /* Ensure it's above other content, Bootstrap's fixed-top is 1030 */
  padding: 0;
}

.navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28248, 249, 250, 0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* User profile/login icon in navbar */

@media (max-width: 991.98px) { /* Bootstrap lg breakpoint for navbar collapse */
  .navbar-collapse {
    background-color: var(--color-primary-dark); /* Match navbar background */
    padding-bottom: 1rem; /* Add some padding at the bottom when expanded */
  }

  .navbar-nav {
    align-items: center; /* Center nav items when stacked */
  }

  .navbar .nav-item {
    width: 100%; /* Make nav items take full width */
    text-align: center; /* Center text in nav items */
  }

  .navbar .nav-item .nav-link {
    display: block; /* Make links take full width of nav-item */
    width: 100%;
  }

  /* Ensure dropdown menus in mobile view behave correctly */
  .navbar .nav-item.dropdown .dropdown-menu {
    position: absolute; /* 필요 시 relative로 조정 */
    float: none;
    width: 100%; /* 모바일에서 꽉 차게 */
    margin-top: 0;
    background-color: white; /* 또는 원하는 색상 */
    border: 1px solid #ccc;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    z-index: 999; /* 다른 요소 위로 */
  }

  .container, .container-fluid {
    padding-left: 1rem;
    padding-right: 2rem;
    padding-top: 0rem;   /* ← 여기가 문제! */
    padding-bottom: 0rem; /* ← 이건 footer 때문에 너무 크면 안 됨 */
  }

  .dropdown-menu li{
    background-color: black;
    color:white;
  }

  .navbar .nav-item.dropdown .dropdown-menu .dropdown-item {
    padding-left: 2rem; /* Indent dropdown items slightly */
    color: var(--color-text-light); /* Ensure text color is visible */
  }
  
  .navbar .nav-item.dropdown .dropdown-menu .dropdown-item:hover {
    background-color: var(--color-primary-medium); /* Hover effect */
  }

  /* Profile section alignment in mobile view */
  .navbar .d-flex.align-items-center {
    width: 100%;
    justify-content: center !important; /* Center the profile/login section */
    margin-top: 1rem; /* Add some space above it */
    padding-top: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Separator line */
  }

  .navbar .d-flex.align-items-center .dropdown {
    text-align: center; /* Center the dropdown toggle itself */
  }
}

.navbar .d-flex .dropdown .fa-user-circle {
  color: var(--color-text-light) !important;
  font-size: 1.8rem;
}
/* Apply consistent height and zero vertical padding to the profile link */
.navbar .d-flex .dropdown > a.dropdown-toggle {
    height: 2.5rem; /* Consistent height */
    padding-top: 0;
    padding-bottom: 0;
    /* d-flex align-items-center is on this element via HTML classes, which will center the image */
    /* Horizontal padding will be from Bootstrap defaults for dropdown-toggle */
}

.navbar .d-flex .dropdown img.rounded-circle {
  height: 32px; /* Standardized height */
  border: 1px solid var(--color-primary-medium);
  /* vertical-align: middle; Removed, rely on parent flex alignment */
}

.footer-custom {
  background-color: var(--color-primary-dark) !important; /* Ensure dark background */
  color: var(--color-text-light);
  padding-top: 4rem; /* Increased padding */
  padding-bottom: 3rem; /* Increased padding */
  flex-shrink: 0; /* Prevent footer from shrinking */
  width: 100%; /* Ensure footer spans full width */
}

/* Override global .container padding for the footer's container */
/* and ensure it also has the dark background */
/* IMPORTANT: These styles ensure the footer looks identical across all pages */
.footer-custom > .container {
  padding-top: 0 !important; /* Resetting the huge global padding */
  padding-bottom: 0 !important; /* Resetting the huge global padding */
  /* Horizontal padding will be inherited from global .container or can be set here if needed */
  background-color: var(--color-primary-dark) !important; /* Make this dark too */
}

/* Ensure the copyright div itself also has the dark background */
.footer-custom .text-center.small {
  background-color: var(--color-primary-dark) !important; /* Explicitly dark */
}

/* Ensure consistent footer text styling across all pages */
.footer-custom h5 {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  margin-bottom: 1rem !important;
  color: var(--color-text-light) !important;
}

.footer-custom p.small,
.footer-custom .small {
  font-size: 0.8125rem !important;
  line-height: 1.5 !important;
  color: var(--color-text-light) !important;
}

.footer-custom ul.list-unstyled li {
  margin-bottom: 0.5rem !important;
}

.footer-custom .newsletter-section .form-control {
  height: calc(1.5em + 0.5rem + 2px) !important;
  padding: 0.25rem 0.5rem !important;
  font-size: 0.8125rem !important;
  border-radius: 0.2rem !important;
}

.footer-custom .newsletter-section .btn-primary {
  color: #fff !important;
  background-color: var(--color-primary-medium) !important;
  border-color: var(--color-primary-medium) !important;
  padding: 0.25rem 0.5rem !important;
  font-size: 0.8125rem !important;
  border-radius: 0.2rem !important;
}

.footer-custom .newsletter-section .btn-primary:hover {
  background-color: var(--color-accent-gold) !important;
  border-color: var(--color-accent-gold) !important;
}

.footer-custom .social-icons a {
  margin-right: 0.75rem !important;
  font-size: 1rem !important;
}

/* Ensure text and links in the copyright section are light and override other specificities */
footer.footer-custom .container a, footer.footer-custom .container-fluid a {
  color: var(--color-text-light) !important;
  text-decoration: none;
  transition: color 0.2s ease;
  background-color: transparent !important;
}

footer.footer-custom .container .text-center.small a, footer.footer-custom .container-fluid .text-center.small a { /* Links in copyright section */
    color: #ccc !important; /* Lighter grey for links here */
    background-color: transparent !important;
}

footer.footer-custom .container a:hover, footer.footer-custom .container-fluid a:hover {
  color: var(--color-accent-gold) !important;
  text-decoration: underline;
  background-color: transparent !important;
}

footer.footer-custom .container a:focus, footer.footer-custom .container-fluid a:focus,
footer.footer-custom .container a:focus-visible, footer.footer-custom .container-fluid a:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    background-color: transparent !important;
}

footer.footer-custom .container-fluid a i { /* Ensure icons inherit link color */
    color: inherit !important;
}

@media (max-width: 767.98px) { /* md breakpoint 미만 - 모바일 뷰 */
  .footer-custom .row > div[class*="col-"] { /* 푸터의 모든 컬럼 */
    margin-bottom: 1.5rem; /* 각 컬럼 하단에 여백 추가 */
    text-align: center;    /* 모바일에서 푸터 컬럼 내용 중앙 정렬 */
  }

  .footer-custom .input-group { /* 뉴스레터 입력 그룹 */
    flex-direction: column; /* 이메일 입력창과 버튼을 세로로 쌓음 */
    align-items: stretch;   /* 내부 요소들을 가로로 꽉 채움 */
  }

  .footer-custom .input-group .form-control {
    margin-bottom: 0.5rem; /* 입력창과 버튼 사이 여백 */
    width: 100%;           /* 입력창 너비 100% */
  }

  .footer-custom .input-group .btn {
    width: 100%;           /* 버튼 너비 100% */
  }
  
  .footer-custom .social-icons {
    justify-content: center; /* 소셜 아이콘 중앙 정렬 */
    margin-top: 1rem;        /* 소셜 아이콘 상단 여백 */
  }

  .footer-custom .text-center.small p { /* 저작권 및 고지 사항 텍스트 */
    font-size: 0.8rem; /* 모바일에서 폰트 크기 약간 줄임 (필요시) */
    line-height: 1.5;  /* 줄 간격 조정 */
  }
  .footer-custom .text-center.small p:last-child {
      margin-bottom: 0;
  }
  /* 모바일에서 컨테이너 패딩 제거 */
  .footer-custom > .container {
    width: 100%;
    padding-left: 0;
    padding-right: 0;
    max-width: none;
  }
  
  /* 모바일에서 푸터 행(row) 마진 제거 */
  .footer-custom .row {
    margin-left: 0;
    margin-right: 0;
  }
}

/* Hero Section */
.hero-section.start { /* .start class is from original HTML */
  background: linear-gradient(180deg, var(--color-primary-dark) 20%, #6c8299 100%);
  color: var(--color-text-light);
  min-height: calc(85vh - var(--navbar-height)); /* Adjust height */
  padding: 5rem 1rem; /* More padding */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.hero-section .headline-big {
  font-family: var(--font-primary); /* Lato */
  font-size: 3.5rem; /* Slightly adjusted */
  font-weight: 700;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
}

.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: 1.5rem;
}

.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.8;
  margin-bottom: 2rem;
}

.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: var(--color-accent-gold);
  border: none;
  border-radius: var(--border-radius-md);
  color: var(--color-primary-dark); /* Dark text on gold button */
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: var(--box-shadow-sm);
  opacity: 0;
  transform: translateY(30px);
  animation: riseFadeIn 1s ease-out 0.4s forwards;
}

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

.hero-section .btn.start_b:hover {
  background-color: var(--color-accent-light-gold);
  color: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-md);
}

/* 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 {
  background-color: var(--color-background-medium);
  padding: 4rem 1rem;
}

.intro-message .lead {
  margin-bottom: 2rem; /* Increased spacing for lead paragraphs */
}

.intro-message h3.fw-bold {
  margin-top: 2.5rem; /* Add top margin to the h3 in this section */
}
.intro-message .message-box .lead {
  font-family: var(--font-korean);
  font-size: 1.25rem;
  color: var(--color-text-muted);
}
.intro-message .message-box h3 {
  font-family: var(--font-primary); /* Lato */
  color: var(--color-primary-dark);
  font-weight: 700;
}

/* Services Section (whatwedo) & Cards */
.whatwedo {
  padding: 4rem 1rem;
}
.whatwedo.bg-light { /* For alternating sections */
    background-color: var(--color-background-medium);
}

.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 */
.footer {
  background-color: var(--color-primary-dark);
  color: var(--color-text-light);
  padding-top: 4rem;
  padding-bottom: 2rem;
  font-family: var(--font-korean);
}

.footer h5 {
  font-family: var(--font-primary); /* Lato */
  color: var(--color-text-light);
  text-transform: uppercase;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.footer h5 img { /* For logo in footer */
    filter: brightness(0) invert(1); /* Ensure logo is white */
}

.footer p, .footer li {
  font-size: 0.9rem;
  color: var(--color-text-muted); /* Light gray for less emphasis */
}
.footer a {
  color: var(--color-text-muted);
}
.footer a:hover {
  color: var(--color-accent-gold);
  text-decoration: none;
}
.footer .list-unstyled li {
    margin-bottom: 0.5rem;
}
.footer .social-icons a {
  font-size: 1.5rem;
  margin-right: 1rem;
  color: var(--color-text-muted);
}
.footer .social-icons a:hover {
  color: var(--color-accent-gold);
}
.footer .form-control {
    background-color: var(--color-primary-medium);
    border-color: var(--color-primary-medium);
    color: var(--color-text-light);
}
.footer .form-control::placeholder {
    color: var(--color-text-muted);
}
.footer .btn-primary {
    background-color: var(--color-accent-gold);
    border-color: var(--color-accent-gold);
    color: var(--color-primary-dark);
}
.footer .btn-primary:hover {
    background-color: var(--color-accent-light-gold);
    border-color: var(--color-accent-light-gold);
}
.footer hr {
    border-color: rgba(255,255,255,0.1);
}
.footer .text-center.small p {
    margin-bottom: 0.25rem;
}

/* 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: 2.8rem;
    }
    .hero-section .headline-small {
        font-size: 1.7rem;
    }
}

@media (max-width: 768px) {
  body {
    padding-top: var(--navbar-height); /* Ensure this matches navbar height */
    
  }
  .hero-section .headline-big {
    font-size: 2.2rem;
  }
}

/* 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: 12rem;
}
.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 {
  background-color: white;
  transition: background-color 0.4s ease;
  color: #000000;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
}


.navbar.scrolled {
  background: white;
  backdrop-filter: blur(5px); /* 부드러운 전환 효과 */
}

.navbar-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo a {
  color: #000000;
  font-size: 1.5rem;
  text-decoration: none;
  font-weight: bold;
}
.logo-img {
  height: 40px;
  object-fit: contain;
  display: block;
}

.nav-menu {
  list-style: none;
  display: flex;
}
.nav-item {
  margin-left: 2rem;
}
.nav-link {
  color: #000000;
  text-decoration: none;
  font-size: 1rem;
  transition: color 0.3s;
}
.nav-link:hover {
  color: #4682B4;  /* 원하는 색상으로 변경 */
}

.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;
}


/* 드롭다운 메뉴 스타일 */
.nav-item.dropdown {
  position: relative;
}
.nav-item.dropdown .dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: black;
  list-style: none;
  padding: 0;
  margin: 0;
  min-width: 150px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.nav-item.dropdown .dropdown-menu li {
  width: 100%;
}
.nav-item.dropdown .dropdown-menu li a {
  display: block;
  padding: 10px 15px;
  color: #333;
  text-decoration: none;
  transition: background-color 0.3s;
}
.nav-item.dropdown .dropdown-menu li a:hover {
  background-color: #ffffff;
}
.nav-item.dropdown:hover .dropdown-menu {
  display: block;
}

.intro-message {
  background: linear-gradient(to bottom, #6c8299 0%, #ffffff 100%);
  color: black !important;
  
  display: flex;
  justify-content: center;  /* 세로 중앙 */
  align-items: center;      /* 가로 중앙 */
  text-align: center;
  width: 100%;
  height: auto;               /* 높이 고정 해제하면 더 유연해져 */
  padding: 15rem 6rem;         /* ⬅️ 안쪽 여백 (위아래 4rem) */
  margin-bottom: 5rem;    
}

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


/* 반응형 미디어 쿼리 */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: column;
    width: 100%;
  }
  .nav-menu.active {
    display: flex;
  }
  .hamburger {
    display: flex;
  }
  .navbar-container {
    flex-wrap: wrap;
  }
  .nav-item {
    margin: 1rem 0;
    text-align: center;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px; /* 고정 내비게이션 바 공간 확보 */
  }

  

  /* 📌 NAVIGATION */
  .navbar-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }

  .hamburger {
    display: flex;
    position: absolute;
    right: 1rem;
    top: 1.2rem;
    z-index: 999;
  }

  .nav-menu {
    flex-direction: column;
    background-color: white;
    width: 100%;
    text-align: center;
    position: absolute;
    top: 60px;
    left: 0;
    z-index: 998;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-item {
    margin: 1rem 0;
  }

  /* 📌 START SECTION */
  .start {
    display: flex;
    flex-direction: column;
    justify-content: center;  /* 세로 중앙 정렬 */
    align-items: center;      /* 가로 중앙 정렬 */
    text-align: center;
    padding: 4rem 1.5rem;
    min-height: 100vh;        /* 화면 높이 전체 */
  }

  .start_words h1 {
    margin-top: 4rem;
    font-size: 2rem;
    line-height: 1.3;
  }

  .headline-big {
    font-size: 2rem;
    display: block;
  }

  .headline-small {
    font-size: 1.4rem;
    display: block;
    margin-top: 0.2rem;
  }

  .small_words h4 {
    font-size: 1rem;
    line-height: 1.6;
    margin-top: 1.5rem;
  }

  .start_b {
    font-size: 1rem;
    padding: 0.6rem 1.4rem;
    margin-top: 30rem;
  }
  
  /* 📌 GRAPH */
  .bar-chart-wrapper {
    display: none;
  }

  /* 📌 인트로 메세지 */
  .intro-message {
    padding: 4rem 1.5rem;
  }

  .message-box {
    font-size: 1.1rem;
    line-height: 1.6;
    gap: 1rem;
  }

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

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

 

  /* 📌 Footer */
  .footer .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}


/* 기존 스타일 유지 */

/* 프로필 아이콘 영역 */
.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;
  line-height: 1.6;
}

.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 */
  }
}