/* ========================================================================
   CSS RESET & BASE TYPOGRAPHY (Nature Organic Theme for 머니플랜 35+)
   ======================================================================== */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var, b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
  box-sizing: border-box;
}
article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section {
  display: block;
}
body {
  line-height: 1.6;
  font-family: 'Noto Sans KR', Arial, sans-serif;
  background: #F8FAF5;
  color: #284028;
  min-height: 100vh;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
ul, ol {
  list-style: none;
}
a {
  text-decoration: none;
  color: #23446D;
  transition: color 0.2s;
}
img {
  max-width: 100%;
  height: auto;
  border: 0;
}

/* ========================================================================
   COLOR THEME VARIABLES (with fallback)
   ======================================================================== */
:root {
  --brand-primary: #23446D;
  --brand-secondary: #91C663;
  --brand-accent: #F2F2F2;
  --earth-brown: #836647;
  --earth-brown-light: #B09373;
  --leaf-green: #91C663;
  --forest-dark: #284028;
  --stone-grey: #E3E5D7;
  --organic-cream: #FAF8F2;
  --danger: #B0554B;
  --info-blue: #6696A5;
  --shadow: 0 4px 16px 0 rgba(67,78,48,0.10);
  --radius: 18px;
  --radius-sm: 9px;
  --focus: 0 0 0 3px #91C66355;
  --transition: all 0.23s cubic-bezier(.58,.16,.42,1);
}

/* ========================================================================
   CONTAINER & SECTION SPACING
   ======================================================================== */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.section {
  margin-bottom: 60px;
  padding: 40px 20px;
  background: var(--organic-cream);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.content-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}

@media (max-width: 768px) {
  .section {
    padding: 28px 8px;
    margin-bottom: 36px;
  }
  .container {
    padding: 0 8px;
  }
}

/* ========================================================================
   TYPOGRAPHY SCALES
   ======================================================================== */
h1, .h1 {
  font-family: 'Noto Sans KR', Arial, sans-serif;
  font-weight: 900;
  font-size: 2.5rem;
  line-height: 1.2;
  color: #23446D;
  margin-bottom: 16px;
  letter-spacing: -1px;
}
h2, .h2 {
  font-family: 'Noto Sans KR', Arial, sans-serif;
  font-weight: 800;
  font-size: 2rem;
  color: var(--forest-dark);
  margin-bottom: 16px;
}
h3, .h3 {
  font-family: 'Noto Sans KR', Arial, sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brand-primary);
  margin-bottom: 8px;
}
h4, .h4 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--forest-dark);
}
p, .body, li {
  font-size: 1rem;
  line-height: 1.7;
  letter-spacing: -0.01em;
  color: #284028;
}
strong {
  font-weight: 700;
}
.text-section h3 {
  margin-top: 20px;
}

/* Responsive Typography */
@media (max-width: 540px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.35rem; }
  h3, .h3 { font-size: 1.08rem; }
}

/* ========================================================================
   HEADER & NAVIGATION
   ======================================================================== */
header {
  background: #fff;
  box-shadow: 0 2px 16px 0 rgba(67,78,48,0.07);
  border-bottom: 1px solid var(--stone-grey);
  position: relative;
  z-index: 100;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  gap: 24px;
  position: relative;
}
header img {
  height: 38px;
  margin-right: 24px;
}
.main-nav {
  display: flex;
  flex-direction: row;
  gap: 30px;
  align-items: center;
}
.main-nav a {
  font-family: 'Noto Sans KR', Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #23446D;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}
.main-nav a:hover, .main-nav a:focus {
  color: var(--leaf-green);
  background: #F6FBF0;
}
.btn-primary {
  font-family: 'Noto Sans KR', Arial, sans-serif;
  font-weight: 800;
  font-size: 1.07rem;
  background: var(--leaf-green);
  color: #1A2C17;
  padding: 10px 28px;
  border-radius: 32px 18px 32px 18px;
  border: none;
  box-shadow: 0 2px 12px 0 rgba(145,198,99,0.12);
  letter-spacing: 0.01em;
  cursor: pointer;
  margin-left: 18px;
  transition: var(--transition);
  outline: none;
  display: inline-block;
  line-height: 1.2;
}
.btn-primary:hover, .btn-primary:focus {
  background: #b1e27b;
  color: #21571b;
  box-shadow: 0 4px 16px 0 rgba(145,198,99,0.19);
}

.mobile-menu-toggle {
  display: none;
  font-size: 2rem;
  color: var(--brand-primary);
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 16px;
  line-height: 1;
  z-index: 120;
  transition: color .2s;
}
.mobile-menu-toggle:focus {
  outline: var(--focus);
}

@media (max-width: 1024px) {
  header .container {
    height: 62px;
    padding: 0 8px;
  }
  .main-nav {
    gap: 18px;
  }
}
@media (max-width: 900px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .btn-primary {
    margin-left: 0;
  }
  header .container img {
    margin-right: 12px;
  }
}

/* ========================================================================
   MOBILE MENU STYLES
   ======================================================================== */
.mobile-menu {
  position: fixed;
  top: 0; left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(35, 68, 109, 0.97);
  z-index: 250;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.45,.6,.41,1);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding: 0;
  box-sizing: border-box;
}
.mobile-menu.open {
  transform: translateX(0);
}
.mobile-menu-close {
  font-size: 2.1rem;
  background: none;
  color: #fff;
  border: none;
  margin: 27px 33px 27px 8px;
  cursor: pointer;
  align-self: flex-end;
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 14px;
  align-items: flex-start;
  margin-left: 36px;
}
.mobile-nav a {
  color: #fff;
  font-family: 'Noto Sans KR', Arial, sans-serif;
  font-size: 1.18rem;
  font-weight: 600;
  padding: 9px 0;
  display: block;
  margin-bottom: 0;
  border-radius: var(--radius-sm);
  transition: background .2s;
}
.mobile-nav a:focus, .mobile-nav a:hover {
  background: rgba(145,198,99,0.10);
  color: #B9E7AB;
}
@media (min-width: 901px) {
  .mobile-menu, .mobile-menu.open {
    display: none !important;
  }
}

/* ========================================================================
   HERO SECTION (organically shaped, earth toned)
   ======================================================================== */
.hero {
  background: linear-gradient(115deg, #F4F4F1 60%, #C2E4BF 100%);
  border-radius: 0 0 75px 0/0 0 55px 0;
  min-height: 350px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 60px;
  position: relative;
  box-shadow: var(--shadow);
}
.hero .container {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}
.hero .content-wrapper {
  padding: 38px 0 32px 0;
  gap: 24px;
}
.hero h1 {
  color: var(--brand-primary);
  letter-spacing: -1.3px;
}
.hero p {
  color: #255226;
  font-size: 1.15rem;
  font-weight: 500;
}
.hero .btn-primary {
  margin-top: 14px;
  min-width: 170px;
}
@media (max-width: 900px) {
  .hero {
    border-radius: 0 0 36px 0/0 0 22px 0;
    min-height: 170px;
    margin-bottom: 40px;
  }
  .hero .container {
    padding: 0 8px;
  }
}

/* ========================================================================
   FLEXBOX UTILITIES — Cards & Section Layouts
   ======================================================================== */
.features-grid, .team-list, .courses-overview, .statistics-grid, .card-container, .testimonial-slider, .testimonial-cards, .resources-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  align-items: stretch;
  margin-bottom: 12px;
}
.card-container {
  gap: 24px;
}
.card {
  margin-bottom: 20px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
}
.content-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}
.text-image-section {
  display: flex;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .features-grid, .team-list, .courses-overview, .statistics-grid, .card-container, .testimonial-slider, .testimonial-cards, .resources-list ul {
    flex-direction: column;
    gap: 18px;
  }
  .content-grid {
    flex-direction: column;
    gap: 14px;
  }
  .text-image-section {
    flex-direction: column;
    gap: 20px;
  }
}

/* ========================================================================
   FEATURES GRID & FEATURE ITEM
   ======================================================================== */
.feature, .feature-item {
  background: #fff;
  border-radius: var(--radius-sm) 32px var(--radius) 12px;
  box-shadow: var(--shadow);
  padding: 28px 22px 18px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  width: 240px;
  min-height: 200px;
  position: relative;
  transition: box-shadow .15s, transform .18s;
}
.feature img {
  width: 44px;
  height: 44px;
}
.feature h3, .feature-item h3 {
  font-size: 1.12rem;
  color: var(--brand-primary);
  margin-bottom: 0;
}
.feature:hover, .feature:focus {
  box-shadow: 0 8px 20px 0 rgba(67,78,48,0.11);
  transform: translateY(-2px) scale(1.015);
}
@media (max-width: 1000px) {
  .feature, .feature-item {
    width: 100%;
    min-width: 0;
  }
}

/* ========================================================================
   TESTIMONIALS
   ======================================================================== */
.testimonial-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  padding: 20px 26px;
  background: #F6FBF0;
  border-left: 5px solid var(--leaf-green);
  border-radius: var(--radius) 24px var(--radius-sm) 18px;
  box-shadow: 0 3px 16px 0 rgba(145,198,99,0.11);
  min-width: 250px;
  max-width: 420px;
  margin-bottom: 20px;
  transition: box-shadow .13s;
}
.testimonial-card strong, .testimonial-card h3 {
  color: var(--brand-primary);
  font-size: 0.98rem;
  font-weight: 700;
  margin-top: 8px;
}
.testimonial-card p {
  color: #205020;
  font-size: 1.07rem;
  font-style: italic;
}
.testimonial-cards, .testimonial-slider {
  gap: 24px;
  margin-bottom: 24px;
}
.testimonial-card:hover {
  box-shadow: 0 8px 36px 0 rgba(35,68,109,0.10);
  background: #f0f9e7;
}
/* Ensure text contrast on testimonials */
.testimonial-card, .testimonial-card p, .testimonial-card strong, .testimonial-card h3 {
  color: #23446D;
}

/* ========================================================================
   SUCCESS/STATISTICS & FAQ
   ======================================================================== */
.success-metrics ul, .faq-list {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.success-metrics ul li, .stat-item {
  background: #fff;
  border-radius: 17px;
  box-shadow: 0 2px 15px 0 rgba(145,198,99,0.13);
  text-align: center;
  padding: 14px 26px;
  font-size: 1.12rem;
  color: #23446D;
  min-width: 124px;
  margin-bottom: 10px;
}
.statistics-grid {
  gap: 24px;
}
.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 140px;
}
.stat-item h3 {
  margin-bottom: 7px;
}

/* ========================================================================
   CARD – COURSE, RESOURCE, TEAM MEMBER, ETC.
   ======================================================================== */
.course-card, .team-member, .resources-list ul li {
  background: #fff;
  border-radius: var(--radius) 38px 22px 12px;
  box-shadow: var(--shadow);
  padding: 26px 20px 20px 24px;
  min-width: 210px;
  min-height: 148px;
  display: flex !important;
  flex-direction: column;
  gap: 13px;
  align-items: flex-start;
  justify-content: flex-start;
  margin-bottom: 20px;
  position: relative;
  transition: box-shadow .12s;
}
.course-card:hover, .team-member:hover, .resources-list ul li:hover {
  box-shadow: 0 12px 28px 0 rgba(145,198,99,0.11);
}
.course-card h3 img {
  width: 32px;
  height: 32px;
  margin-right: 9px;
  vertical-align: middle;
}
.resources-list ul li img {
  width: 32px;
  height: 32px;
  margin-right: 8px;
  vertical-align: middle;
}
.team-list {
  gap: 24px;
}
.team-member img {
  width: 38px;
  height: 38px;
  margin-bottom: 3px;
}
.certifications {
  color: var(--leaf-green);
  font-weight: 700;
  margin-top: 10px;
}

/* ========================================================================
   TEXT SECTIONS, ADDRESS, AND FOOTER
   ======================================================================== */
.text-section {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.text-section ul, .text-section ol {
  margin: 7px 0 7px 20px;
  padding-left: 16px;
}
.text-section ul li, .text-section ol li {
  margin-bottom: 6px;
  font-size: 1rem;
  list-style: disc inside;
  color: #284028;
}
.text-section address {
  font-style: normal;
  color: #505840;
  font-size: 0.97rem;
  line-height: 1.8;
}
.text-section address img {
  width: 15px;
  height: 15px;
  vertical-align: middle;
  margin-right: 3px;
}

footer {
  background: #24523A;
  color: #EFF3E9;
  padding: 44px 0 28px 0;
}
footer address {
  color: white !important;
}
footer .container {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 40px 68px;
  align-items: flex-start;
}
.footer-logo img {
  height: 40px;
  margin-bottom: 10px;
}
.footer-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
}
.footer-nav a {
  color: #B9E7AB;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0;
  transition: color .15s;
}
.footer-nav a:hover, .footer-nav a:focus {
  color: #fff;
  text-decoration: underline;
}
footer .text-section {
  color: #E4FBE6;
  gap: 10px;
}
footer address {
  color: #E2E5D1;
  font-size: 0.98rem;
  margin-bottom: 12px;
}
footer span, footer p {
  color: #BBCCBE;
}

@media (max-width: 900px) {
  footer .container {
    flex-direction: column;
    gap: 22px;
    align-items: stretch;
    padding: 0 8px;
  }
  .footer-logo img {
    margin-bottom: 0;
  }
}

/* ========================================================================
   MODALS, ANIMATIONS, MICRO-INTERACTIONS
   ======================================================================== */
.fade-in {
  animation: fadeIn 0.7s cubic-bezier(.55,.15,.37,.98) 1;
}
@keyframes fadeIn {
  from { opacity:0; transform: translateY(30px) scale(0.98); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}

/* Button Focus State */
.btn-primary:focus {
  outline: var(--focus);
}

/* ========================================================================
   COOKIE CONSENT BANNER + MODAL
   ======================================================================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 400;
  background: var(--organic-cream);
  box-shadow: 0 -2px 24px 0 rgba(67,78,48,0.17);
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  gap: 18px;
  font-size: 1rem;
  border-radius: 20px 20px 0 0;
  opacity: 1;
  transition: transform .4s cubic-bezier(0.22,1,0.36,1), opacity .4s;
  transform: translateY(0);
}
.cookie-banner.hide {
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
}
.cookie-banner .cookie-btns {
  display: flex;
  gap: 12px;
}
.cookie-banner .cookie-btn {
  padding: 8px 24px;
  border-radius: 18px;
  border: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 1rem;
  margin-left: 0;
  margin-top: 0;
  cursor: pointer;
  transition: var(--transition);
}
.cookie-banner .accept {
  background: var(--leaf-green);
  color: #1A2C17;
}
.cookie-banner .accept:hover {
  background: #b1e27b;
}
.cookie-banner .reject {
  background: #fff8f2;
  color: var(--danger);
  border: 2px solid var(--danger);
}
.cookie-banner .reject:hover {
  background: #ffe5e1;
  color: #B0554B;
}
.cookie-banner .settings {
  background: #F2F2F2;
  color: #436743;
  border: 2px solid #C2E4BF;
}
.cookie-banner .settings:hover {
  background: #E4FBE6;
}

/* Cookie Modal */
.cookie-modal-backdrop {
  position: fixed;
  z-index: 401;
  top: 0; left: 0; right:0; bottom: 0;
  background: rgba(40, 64, 40, 0.44);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  opacity: 1;
  transition: opacity .26s;
}
.cookie-modal-backdrop.hide {
  opacity: 0;
  pointer-events: none;
}
.cookie-modal {
  background: var(--organic-cream);
  color: #24441A;
  border-radius: 22px;
  box-shadow: 0 8px 36px 0 rgba(67,78,48,0.13);
  padding: 32px 32px 28px 32px;
  min-width: 340px;
  max-width: 94vw;
  max-height: 92vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
}
.cookie-modal .modal-header {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--brand-primary);
}
.cookie-modal .modal-close {
  position: absolute;
  top: 19px;
  right: 21px;
  font-size: 1.5rem;
  background: none;
  color: var(--brand-primary);
  border: none;
  cursor: pointer;
}
.cookie-modal .modal-body {
  margin-bottom: 10px;
}
.cookie-modal .cookie-category {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 13px;
}
.cookie-modal .cookie-toggle {
  appearance: none;
  width: 38px;
  height: 22px;
  background: #DCE9C9;
  border-radius: 12px;
  cursor: pointer;
  position: relative;
  transition: background .13s;
  outline: none;
}
.cookie-toggle:checked {
  background: var(--leaf-green);
}
.cookie-toggle:before {
  content: '';
  position: absolute;
  left: 4px; top: 3px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  transition: left .19s;
}
.cookie-toggle:checked:before {
  left: 18px;
}
.cookie-modal .cookie-actions {
  margin-top: 16px;
  display: flex;
  gap: 14px;
  justify-content: flex-end;
}
.cookie-modal .cookie-btn {
  padding: 7px  24px;
  border-radius: 18px;
  border: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
}
.cookie-modal .cookie-btn.accept {
  background: var(--leaf-green);
  color: #1A2C17;
}
.cookie-modal .cookie-btn.reject {
  background: #fff8f2;
  color: var(--danger);
  border: 2px solid var(--danger);
}
.cookie-modal .cookie-btn.save {
  background: var(--info-blue);
  color: #fff;
}
@media (max-width: 600px) {
  .cookie-modal {
    padding: 15px 7px 22px 7px;
    min-width: 0;
  }
  .cookie-modal .modal-close {
    top: 8px;
    right: 6px;
  }
}

/* ========================================================================
   MISCELLANEOUS UTILITIES & INTERACTIONS
   ======================================================================== */
::-webkit-scrollbar { width: 8px; background: #F8FAF5; }
::-webkit-scrollbar-thumb { background: #C2E4BF; border-radius: 8px; }
select, textarea, input {
  font-family: inherit;
}
input, textarea {
  border-radius: 8px;
  border: 1.5px solid #C2E4BF;
  background: #F6FBF0;
  padding: 8px 12px;
  margin-bottom: 7px;
  transition: border .19s;
}
input:focus, textarea:focus {
  border-color: var(--leaf-green);
  outline: var(--focus);
}

hr {
  border: 0;
  border-top: 1.5px solid #c3cdaa;
  margin: 24px 0;
}

/* Misc. lists: dot-style for stronger organic feel */
ul {
  list-style-type: disc;
  margin-left: 20px;
}
ol {
  list-style-type: decimal;
  margin-left: 26px;
}


/* ========================================================================
   MEDIA QUERIES FOR EXTREME MOBILE/TABLET
   ======================================================================== */
@media (max-width: 490px) {
  .testimonial-card, .feature, .course-card, .team-member, .resources-list ul li {
    padding: 14px 7px 13px 13px;
    min-width: 0;
  }
  h1, .h1 { font-size: 1.5rem; line-height: 1.3; }
  h2, .h2 { font-size: 1.07rem; }
}

/* ========================================================================
   SUCCESS METRIC, FAQ, etc: Specialized spacing
   ======================================================================== */
.before-after-stories, .highlighted-success-case, .video-testimonials-links {
  margin-bottom: 22px;
  background: #F2F6EC;
  border-radius: 14px;
  padding: 16px 17px;
}
.highlighted-success-case p, .before-after-stories ul li {
  color: #24441A;
  font-size: 1.01rem;
}
.video-testimonials-links img {
  width: 22px; height: 22px; margin-right: 7px;
  vertical-align: middle;
}

/* ========================================================================
   ORGANIC DECORATIVE ELEMENTS (slightly wavy/curved with no absolute card overlay)
   ======================================================================== */
/* For override: only decorative backgrounds! */
.section {
  position: relative;
  overflow: hidden;
}
.section:after {
  display: none; /* Add your SVG/organic background markups in HTML or via background-image CSS if needed */
}

/* ========================================================================
   ACCESSIBILITY IMPROVEMENTS
   ======================================================================== */
a:focus { outline: var(--focus); }
button:focus { outline: var(--focus); }

/* ========================================================================
   END — 머니플랜 35+ Organic Nature-Focused Design
   ======================================================================== */
