/*
Theme Name: 우리들새마을금고
Theme URI: https://kfcc0339.com
Author: 애드하라
Author URI: https://kfcc0339.com
Description: 우리들새마을금고 커스텀 워드프레스 테마 - 하나은행 스타일 + MG블루 + Pretendard
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: Private
Text Domain: kfcc0339
*/

/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --mg-sky: #44C7F4;
  --mg-blue: #0071BC;
  --mg-navy: #0B3876;
  --mg-navy-deep: #061F45;
  --bg-page: #F5F7FA;
  --bg-card: #FFFFFF;
  --text-primary: #1A1A2E;
  --text-secondary: #4A5568;
  --text-light: #8896A6;
  --border-light: #E8ECF1;
  --accent-warm: #F0A830;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-card: 0 1px 3px rgba(11,56,118,0.06), 0 6px 24px rgba(11,56,118,0.04);
  --shadow-hover: 0 4px 12px rgba(11,56,118,0.10), 0 12px 36px rgba(11,56,118,0.06);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
ul, li { list-style: none; }
img { max-width: 100%; display: block; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; color: var(--mg-blue); text-transform: uppercase; margin-bottom: 8px; }
.section-title { font-size: 28px; font-weight: 700; color: var(--mg-navy); line-height: 1.3; margin-bottom: 16px; }
.section-desc { font-size: 15px; color: var(--text-secondary); max-width: 520px; line-height: 1.7; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.animate { animation: fadeUp 0.7s ease both; }
.animate-d1 { animation-delay: 0.1s; }
.animate-d2 { animation-delay: 0.2s; }
.animate-d3 { animation-delay: 0.3s; }
.animate-d4 { animation-delay: 0.4s; }
.animate-d5 { animation-delay: 0.5s; }
.animate-d6 { animation-delay: 0.6s; }

/* TOP BAR */
.top-bar { background: var(--mg-navy-deep); font-size: 12px; color: rgba(255,255,255,0.55); }
.top-bar .container { display: flex; justify-content: flex-end; align-items: center; gap: 4px; height: 36px; }
.top-bar a { color: rgba(255,255,255,0.55); padding: 4px 10px; transition: color var(--transition); }
.top-bar a:hover { color: #fff; }
.top-bar .sep { color: rgba(255,255,255,0.2); }

/* HEADER */
.site-header { background: #fff; border-bottom: 1px solid var(--border-light); position: sticky; top: 0; z-index: 100; }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 700; color: var(--mg-navy); }
.logo-img { height: 40px; width: auto; border-radius: 6px; object-fit: contain; }
.logo-mark { display: none; }
.logo .sky { color: var(--mg-sky); }
.logo .brand-uri { color: var(--mg-sky); }

.gnb { display: flex; gap: 0; }
.gnb > li { position: relative; }
.gnb > li > a { display: block; padding: 24px 20px; font-size: 15px; font-weight: 500; color: var(--text-primary); transition: color var(--transition); position: relative; }
.gnb > li > a::after { content: ''; position: absolute; bottom: 0; left: 20px; right: 20px; height: 2px; background: var(--mg-blue); transform: scaleX(0); transition: transform var(--transition); }
.gnb > li:hover > a { color: var(--mg-blue); }
.gnb > li:hover > a::after { transform: scaleX(1); }

.mega-menu { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); background: #fff; border: 1px solid var(--border-light); border-radius: var(--radius-md); padding: 20px 24px; min-width: 220px; box-shadow: var(--shadow-hover); opacity: 0; visibility: hidden; transition: all 0.25s ease; pointer-events: none; }
.gnb > li:hover .mega-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.mega-menu a { display: block; padding: 8px 0; font-size: 14px; color: var(--text-secondary); transition: all var(--transition); border-bottom: 0.5px solid transparent; }
.mega-menu a:hover { color: var(--mg-blue); padding-left: 6px; }
.mega-menu a:not(:last-child) { border-bottom-color: var(--border-light); }

.header-actions { display: flex; gap: 8px; }
.btn-outline { padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 500; border: 1px solid var(--mg-blue); color: var(--mg-blue); transition: all var(--transition); cursor: pointer; background: transparent; }
.btn-outline:hover { background: var(--mg-blue); color: #fff; }
.btn-solid { padding: 8px 18px; border-radius: 8px; font-size: 13px; font-weight: 500; border: none; background: var(--mg-blue); color: #fff; transition: all var(--transition); cursor: pointer; }
.btn-solid:hover { background: var(--mg-navy); }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; width: 40px; height: 40px; align-items: center; justify-content: center; }
.mobile-toggle span { display: block; width: 22px; height: 2px; background: var(--text-primary); position: relative; transition: var(--transition); }
.mobile-toggle span::before, .mobile-toggle span::after { content: ''; position: absolute; width: 22px; height: 2px; background: var(--text-primary); transition: var(--transition); }
.mobile-toggle span::before { top: -7px; }
.mobile-toggle span::after { top: 7px; }

/* HERO */
.hero { background: linear-gradient(135deg, var(--mg-navy-deep) 0%, var(--mg-navy) 40%, var(--mg-blue) 100%); padding: 100px 0 120px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 600px 400px at 80% 60%, rgba(68,199,244,0.15), transparent), radial-gradient(ellipse 400px 300px at 20% 30%, rgba(0,113,188,0.1), transparent); }
.hero::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 80px; background: linear-gradient(to top, var(--bg-page), transparent); }
.hero-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 60px; }
.hero-text { max-width: 560px; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,0.1); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,0.15); border-radius: 100px; padding: 6px 16px; font-size: 12px; font-weight: 500; color: var(--mg-sky); margin-bottom: 24px; }
.hero-badge .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mg-sky); animation: pulse 2s ease infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 { font-size: 42px; font-weight: 700; color: #fff; line-height: 1.25; margin-bottom: 20px; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, var(--mg-sky), #7DD8F8); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p { font-size: 17px; color: rgba(255,255,255,0.7); line-height: 1.8; margin-bottom: 36px; }
.hero-btns { display: flex; gap: 12px; }
.hero-btns .btn-hero { padding: 14px 32px; border-radius: 12px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all var(--transition); border: none; }
.btn-hero-primary { background: #fff; color: var(--mg-navy); }
.btn-hero-primary:hover { background: var(--mg-sky); color: #fff; transform: translateY(-2px); }
.btn-hero-secondary { background: rgba(255,255,255,0.1); color: #fff; border: 1px solid rgba(255,255,255,0.25) !important; backdrop-filter: blur(4px); }
.btn-hero-secondary:hover { background: rgba(255,255,255,0.2); transform: translateY(-2px); }
.hero-visual { flex-shrink: 0; width: 380px; height: 300px; background: rgba(255,255,255,0.05); border-radius: 24px; border: 1px solid rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.25); font-size: 14px; backdrop-filter: blur(8px); }

/* QUICK MENU */
.quick-section { margin-top: -56px; position: relative; z-index: 10; padding-bottom: 40px; }
.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.quick-card { background: var(--bg-card); border-radius: var(--radius-md); padding: 28px 16px; text-align: center; box-shadow: var(--shadow-card); transition: all var(--transition); cursor: pointer; border: 1px solid transparent; }
.quick-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-color: var(--mg-blue); }
.quick-icon { width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.qi-intro { background: linear-gradient(135deg, #E8F4FD, #D0EAFC); color: var(--mg-blue); }
.qi-deposit { background: linear-gradient(135deg, #E6F7ED, #C8EED8); color: #1A8D48; }
.qi-loan { background: linear-gradient(135deg, #FFF3E0, #FFE0B2); color: #E67E22; }
.qi-culture { background: linear-gradient(135deg, #F3E8FD, #E1D0FA); color: #7C3AED; }
.qi-social { background: linear-gradient(135deg, #FDE8E8, #FACFCF); color: #DC2626; }
.qi-map { background: linear-gradient(135deg, #E8ECF7, #D0D8F0); color: var(--mg-navy); }
.quick-card h3 { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 6px; }
.quick-card p { font-size: 12px; color: var(--text-light); line-height: 1.5; }

/* RATES */
.rates-section { padding: 40px 0; }
.rates-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.rates-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rate-card { background: var(--bg-card); border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow-card); border: 1px solid var(--border-light); transition: all var(--transition); position: relative; overflow: hidden; }
.rate-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px 3px 0 0; }
.rate-card:nth-child(1)::before { background: linear-gradient(90deg, var(--mg-blue), var(--mg-sky)); }
.rate-card:nth-child(2)::before { background: linear-gradient(90deg, #1A8D48, #4ADE80); }
.rate-card:nth-child(3)::before { background: linear-gradient(90deg, var(--accent-warm), #FBBF24); }
.rate-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.rate-type { font-size: 12px; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 8px; }
.rate-name { font-size: 18px; font-weight: 700; margin-bottom: 20px; color: var(--text-primary); }
.rate-number { font-size: 36px; font-weight: 800; margin-bottom: 4px; letter-spacing: -0.02em; }
.rate-card:nth-child(1) .rate-number { color: var(--mg-blue); }
.rate-card:nth-child(2) .rate-number { color: #1A8D48; }
.rate-card:nth-child(3) .rate-number { color: var(--accent-warm); }
.rate-unit { font-size: 14px; color: var(--text-light); }
.rate-detail { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-light); font-size: 13px; color: var(--text-secondary); line-height: 1.7; }
.rate-more { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; color: var(--mg-blue); margin-top: 16px; transition: gap var(--transition); }
.rate-more:hover { gap: 8px; }

/* NOTICE */
.notice-section { padding: 40px 0; background: linear-gradient(180deg, var(--bg-page) 0%, #EDF1F7 100%); }
.notice-header { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; }
.notice-tabs { display: flex; gap: 4px; }
.notice-tab { padding: 8px 20px; border-radius: 100px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all var(--transition); border: none; background: transparent; color: var(--text-secondary); }
.notice-tab.active { background: var(--mg-navy); color: #fff; }
.notice-tab:not(.active):hover { background: rgba(11,56,118,0.06); }
.notice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: stretch; }
.notice-list { display: flex; flex-direction: column; gap: 0; background: var(--bg-card); border-radius: var(--radius-md); border: 1px solid var(--border-light); overflow: hidden; }
.notice-item { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; background: var(--bg-card); transition: all var(--transition); cursor: pointer; border-bottom: 1px solid var(--border-light); }
.notice-item:last-child { border-bottom: none; }
.notice-item:hover { background: #F8FAFD; padding-left: 26px; }
.notice-badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 4px; margin-right: 10px; }
.nb-notice { background: #E6F1FB; color: var(--mg-blue); }
.nb-event { background: #FFF3E0; color: #E67E22; }
.notice-title { font-size: 14px; color: var(--text-primary); flex: 1; }
.notice-date { font-size: 12px; color: var(--text-light); margin-left: 16px; white-space: nowrap; }
.notice-feature { background: var(--bg-card); border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border-light); display: flex; flex-direction: column; }
.notice-feature-img { flex: 1; min-height: 180px; background: linear-gradient(135deg, var(--mg-navy), var(--mg-blue)); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,0.4); font-size: 14px; }
.notice-feature-body { padding: 24px; }
.notice-feature-body h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.notice-feature-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }

/* LOCATION */
.location-section { padding: 40px 0; }
.location-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: stretch; }
.location-map { border-radius: var(--radius-md); overflow: hidden; background: #E8ECF1; display: flex; align-items: center; justify-content: center; color: var(--text-light); font-size: 14px; border: 1px solid var(--border-light); }
.branch-list { display: flex; flex-direction: column; gap: 12px; }
.branch-card { background: var(--bg-card); border-radius: var(--radius-md); padding: 20px 24px; box-shadow: var(--shadow-card); border: 1px solid var(--border-light); transition: all var(--transition); cursor: pointer; }
.branch-card:hover { border-color: var(--mg-blue); box-shadow: var(--shadow-hover); }
.branch-card.active { border-color: var(--mg-blue); border-width: 2px; }
.branch-name { font-size: 16px; font-weight: 700; color: var(--mg-navy); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.branch-name .tag { font-size: 10px; font-weight: 600; background: var(--mg-blue); color: #fff; padding: 2px 8px; border-radius: 100px; }
.branch-info { font-size: 13px; color: var(--text-secondary); line-height: 1.8; }
.branch-info span { display: block; }

/* FOOTER */
.site-footer { background: var(--mg-navy-deep); color: rgba(255,255,255,0.5); padding: 60px 0 40px; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-logo { margin-bottom: 16px; }
.footer-logo-img { height: 36px; width: auto; object-fit: contain; }
.footer-logo .logo-mark-sm { display: none; }
.footer-desc { font-size: 13px; line-height: 1.8; max-width: 320px; }
.footer-col h4 { font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.8); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13px; padding: 4px 0; color: rgba(255,255,255,0.45); transition: color var(--transition); }
.footer-col a:hover { color: var(--mg-sky); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: rgba(255,255,255,0.4); transition: color var(--transition); }
.footer-links a:hover { color: #fff; }
.footer-links a.privacy { color: rgba(255,255,255,0.8); font-weight: 600; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero h1 { font-size: 32px; }
  .hero-visual { display: none; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .rates-grid { grid-template-columns: 1fr; }
  .notice-grid { grid-template-columns: 1fr; }
  .location-inner { grid-template-columns: 1fr; }
  .location-map { min-height: 300px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .gnb, .header-actions { display: none; }
  .mobile-toggle { display: flex; }
}
@media (max-width: 640px) {
  .hero { padding: 60px 0 80px; }
  .hero h1 { font-size: 26px; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .quick-card { padding: 20px 12px; }
  .section-title { font-size: 22px; }
  .footer-top { grid-template-columns: 1fr; gap: 24px; }
}

/* ===== SUB PAGE ===== */
.sub-hero {
  background: linear-gradient(135deg, var(--mg-navy-deep) 0%, var(--mg-navy) 50%, var(--mg-blue) 100%);
  padding: 52px 0 48px;
  position: relative;
}
.sub-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 500px 300px at 80% 50%, rgba(68,199,244,0.12), transparent);
}
.sub-hero .container { position: relative; z-index: 1; }
.sub-hero-parent {
  display: inline-block; font-size: 13px; font-weight: 500;
  color: var(--mg-sky); margin-bottom: 8px; letter-spacing: 0.02em;
}
.sub-hero-title {
  font-size: 32px; font-weight: 700; color: #fff;
  letter-spacing: -0.02em; line-height: 1.3;
}
.sub-nav {
  background: var(--bg-card); border-bottom: 1px solid var(--border-light);
  position: sticky; top: 72px; z-index: 90;
}
body.admin-bar .sub-nav { top: 104px; }
.sub-nav-inner {
  display: flex; gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.sub-nav-item {
  padding: 14px 20px; font-size: 14px; font-weight: 500;
  color: var(--text-secondary); white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.sub-nav-item:hover { color: var(--mg-blue); }
.sub-nav-item.active {
  color: var(--mg-blue); border-bottom-color: var(--mg-blue); font-weight: 600;
}
.sub-content { padding: 48px 0 80px; }
.sub-article {
  font-size: 15px; color: var(--text-primary); line-height: 1.9;
  max-width: 900px; font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
.sub-article *, .sub-content * {
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif !important;
}
.sub-article h2 {
  font-size: 22px; font-weight: 700; color: var(--mg-navy);
  margin: 40px 0 16px; padding-bottom: 12px;
  border-bottom: 2px solid var(--mg-blue);
}
.sub-article h3 {
  font-size: 18px; font-weight: 600; color: var(--text-primary);
  margin: 32px 0 12px;
}
.sub-article p { margin-bottom: 16px; }
.sub-article img { border-radius: var(--radius-md); margin: 24px 0; }
.sub-article .greeting-layout {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start;
  margin: 32px 0;
}
.sub-article .greeting-photo {
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--border-light); min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-light); font-size: 14px;
}
.sub-article .greeting-text { font-size: 15px; line-height: 2; color: var(--text-secondary); }
.sub-article .greeting-sign {
  margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--border-light);
  font-size: 16px; font-weight: 600; color: var(--mg-navy);
}
@media (max-width: 768px) {
  .sub-hero-title { font-size: 24px; }
  .sub-article .greeting-layout { grid-template-columns: 1fr; }
}

/* ===== CSS-ONLY TABS ===== */
.dp-tabs input[type="radio"] { display: none !important; }
.dp-tabs .dp-tab-labels { display: flex !important; gap: 0 !important; margin-bottom: 0 !important; border-bottom: 2px solid #E8ECF1 !important; }
.dp-tabs .dp-tab-label { padding: 14px 24px !important; font-size: 15px !important; font-weight: 600 !important; color: #8896A6 !important; cursor: pointer !important; border-bottom: 2px solid transparent !important; margin-bottom: -2px !important; transition: all 0.2s !important; font-family: 'Pretendard', sans-serif !important; }
.dp-tabs .dp-tab-label:hover { color: #0071BC !important; }
.dp-tabs #dp-tab1:checked ~ .dp-tab-labels label[for="dp-tab1"],
.dp-tabs #dp-tab2:checked ~ .dp-tab-labels label[for="dp-tab2"],
.dp-tabs #dp-tab3:checked ~ .dp-tab-labels label[for="dp-tab3"] { color: #0071BC !important; border-bottom-color: #0071BC !important; }
.dp-tabs .dp-panel { display: none !important; padding: 32px 0 !important; }
.dp-tabs #dp-tab1:checked ~ .dp-panels .dp-panel1 { display: block !important; }
.dp-tabs #dp-tab2:checked ~ .dp-panels .dp-panel2 { display: block !important; }
.dp-tabs #dp-tab3:checked ~ .dp-panels .dp-panel3 { display: block !important; }

/* ===== INTERACTIVE HERO - MASCOT ===== */
.mascot-stage {
  width: 38.2% !important; flex-shrink: 0;
  position: relative;
  display: flex; align-items: center; justify-content: center;
  padding: 40px 0;
}
.kimgumgo-wrap {
  position: relative; cursor: pointer;
}
.kimgumgo-img {
  width: 280px; height: auto;
  filter: drop-shadow(0 24px 48px rgba(0,0,0,0.35));
  transition: transform 0.12s ease-out;
  position: relative; z-index: 2;
}
.kim-eyes {
  position: absolute; top: 22%; left: 50%; transform: translateX(-50%);
  width: 110px; height: 50px; pointer-events: none; z-index: 3;
}
.kim-pupil { fill: #111; transition: transform 0.06s ease-out; }
.kim-speech {
  position: absolute; top: -16px; right: -70px; z-index: 10;
  background: #fff; color: var(--mg-navy); font-size: 14px; font-weight: 700;
  padding: 14px 20px; border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  opacity: 0; transform: scale(0.7) translateY(8px);
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none; white-space: nowrap;
}
.kim-speech::after {
  content: ''; position: absolute; bottom: -7px; left: 22px;
  width: 14px; height: 14px; background: #fff;
  transform: rotate(45deg); box-shadow: 3px 3px 6px rgba(0,0,0,0.05);
}
.kimgumgo-wrap:hover .kim-speech { opacity: 1; transform: scale(1) translateY(0); }
.kimgumgo-wrap:hover .kimgumgo-img { animation: kimWave 0.6s ease; }
@keyframes kimWave {
  0% { transform: rotate(0deg); } 20% { transform: rotate(-5deg); }
  40% { transform: rotate(5deg); } 60% { transform: rotate(-3deg); }
  80% { transform: rotate(3deg); } 100% { transform: rotate(0deg); }
}
.kim-glow {
  position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  width: 180px; height: 24px;
  background: radial-gradient(ellipse, rgba(68,199,244,0.2), transparent 70%);
  border-radius: 50%;
  animation: glowPulse 3s ease-in-out infinite alternate;
}
@keyframes glowPulse { 0% { opacity: 0.5; transform: translateX(-50%) scaleX(0.9); } 100% { opacity: 1; transform: translateX(-50%) scaleX(1.1); } }
.bluecrew-wrap {
  position: absolute; bottom: 10px; right: -30px;
  width: 130px; opacity: 0.85; z-index: 1;
  animation: floatCrew 4s ease-in-out infinite;
}
.bluecrew-img { width: 100%; height: auto; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.2)); }
@keyframes floatCrew { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(2deg); } }

/* Particles */
.hero-particles { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.hero-particle {
  position: absolute; border-radius: 50%;
  background: rgba(68,199,244,0.2);
  animation: particleRise linear infinite;
}
@keyframes particleRise {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 0.7; } 90% { opacity: 0.3; }
  100% { transform: translateY(-500px) scale(0); opacity: 0; }
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: scrollBounce 2.5s ease infinite; z-index: 5;
}
.scroll-mouse {
  width: 20px; height: 32px; border: 2px solid rgba(255,255,255,0.2);
  border-radius: 10px; position: relative;
}
.scroll-mouse::after {
  content: ''; position: absolute; top: 5px; left: 50%; transform: translateX(-50%);
  width: 3px; height: 6px; background: rgba(255,255,255,0.4); border-radius: 2px;
  animation: scrollWheel 1.8s ease infinite;
}
@keyframes scrollWheel { 0% { top: 5px; opacity: 1; } 100% { top: 17px; opacity: 0; } }
@keyframes scrollBounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }
.scroll-indicator span { font-size: 10px; color: rgba(255,255,255,0.25); letter-spacing: 2px; }

/* Stats counter section */
.stats-counter { background: #fff; padding: 56px 0; border-bottom: 1px solid #E8ECF1; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  text-align: center;
}
.stat-item {
  padding: 24px 16px;
  opacity: 0; transform: translateY(24px);
  transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.stat-item.visible { opacity: 1; transform: translateY(0); }
.stat-number {
  font-size: 42px; font-weight: 800; color: var(--mg-blue);
  line-height: 1; margin-bottom: 8px;
}
.stat-unit { font-size: 18px; font-weight: 500; color: #8896A6; margin-left: 2px; }
.stat-label { font-size: 14px; color: #8896A6; }

@media (max-width: 768px) {
  .mascot-stage { width: 100% !important; justify-content: center; }
  .hero-inner { flex-direction: column !important; text-align: center; }
  .hero-text { text-align: center; }
  .hero-btns { justify-content: center; }
  .kimgumgo-img { width: 200px; }
  .bluecrew-wrap { width: 90px; right: -10px; }
  .kim-speech { right: -40px; font-size: 12px; padding: 10px 14px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== WP / CAFE24 OVERRIDES ===== */
html, body {
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }
.wp-block { max-width: 1200px !important; }
#page, #content, #primary, #main, .site, .site-content,
.entry-content, .page-content, #wrapper, .wrapper,
.wp-site-blocks, .is-layout-constrained, .is-layout-flow {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.container {
  max-width: 1200px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}
.gnb > li > a {
  word-break: keep-all !important;
  white-space: nowrap !important;
}
.hero h1 {
  word-break: keep-all !important;
}
.btn-hero, .btn-outline, .btn-solid {
  white-space: nowrap !important;
  word-break: keep-all !important;
}
.header-actions {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}
.site-header .container {
  flex-wrap: nowrap !important;
}
.logo {
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}
