/* 
   ========================================
   KOWA MB - Stylesheet 
   Clean, Sophisticated, Modern Aesthetic
   ========================================
*/

:root {
  /* Color Palette (Sophisticated Cream & Charcoal, with subtle Navy/Gold accents) */
  --c-primary: #1e3a5f;      /* Elegant Deep Navy */
  --c-primary-light: #2c5282;
  --c-secondary: #d4af37;    /* Subtle Gold */
  --c-accent: #f2e9e4;       /* Warm Cream */
  --c-bg: #fafafa;           /* Light gray almost white background */
  --c-surface: #ffffff;      /* Pure white for cards */
  --c-text: #333333;         /* Soft black for paragraphs */
  --c-heading: #111111;      /* Crisp black for headings */
  --c-border: #eaeaea;       /* Soft borders */
  
  /* Typography */
  --f-heading: 'Playfair Display', serif;
  --f-body: 'Pretendard', 'Noto Sans KR', 'Inter', sans-serif;
  
  /* Transitions & Spacing */
  --t-fast: 0.2s ease;
  --t-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --section-pad: 100px;
}

/* ================== Reset & Base ================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--f-body);
  color: var(--c-text);
  background-color: var(--c-bg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-heading);
  color: var(--c-heading);
  font-weight: 600;
  line-height: 1.3;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Layout Utilities */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-padding {
  padding: var(--section-pad) 0;
}

.bg-light {
  background-color: #f5f5f7; /* Very subtle grey contrast */
}

/* ================== Buttons ================== */
.btn-primary, .btn-primary-sm, .btn-secondary, .btn-submit {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--t-fast);
  text-align: center;
  border: none;
}

.btn-primary {
  background-color: var(--c-primary);
  color: #fff;
}
.btn-primary:hover {
  background-color: var(--c-primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 58, 95, 0.2);
}

.btn-primary-sm {
  background-color: var(--c-primary);
  color: #fff;
  padding: 0.5rem 1.2rem;
  font-size: 0.9rem;
}
.btn-primary-sm:hover {
  background-color: var(--c-primary-light);
}

.btn-secondary {
  background-color: transparent;
  color: var(--c-surface); /* Assuming on dark/image bg */
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.btn-secondary:hover {
  background-color: var(--c-surface);
  color: var(--c-heading);
}

/* ================== Navigation ================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--t-smooth);
  padding: 1.5rem 0;
  background: transparent;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 1rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-text {
  font-family: var(--f-heading);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #fff;
  transition: color var(--t-smooth);
}

.navbar.scrolled .logo-text {
  color: var(--c-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-item {
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--t-fast);
  position: relative;
}

.navbar.scrolled .nav-item {
  color: var(--c-text);
}

.navbar.scrolled .nav-item:hover,
.navbar.scrolled .nav-item.active {
  color: var(--c-primary);
}

.nav-item::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: currentColor;
  transition: width var(--t-fast);
}

.nav-item:hover::after {
  width: 100%;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.8rem;
  cursor: pointer;
}
.navbar.scrolled .mobile-menu-btn {
  color: var(--c-text);
}

/* ================== Hero Section ================== */
.hero {
  height: 100vh;
  min-height: 600px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../images/hero_bg.png'); /* Dynamic Image */
  background-size: cover;
  background-position: center;
  transform: scale(1.05); /* initial scale for subtle zoom */
  animation: heroBgZoom 20s ease infinite alternate;
  z-index: 1;
}

@keyframes heroBgZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Dark sophisticated overlay to make text pop */
  background: linear-gradient(to bottom, rgba(17, 17, 17, 0.4), rgba(30, 58, 95, 0.6));
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  color: #fff;
  max-width: 800px;
  padding: 0 2rem;
  margin-top: 50px;
}

.hero-subtitle {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 1.5rem;
  color: rgba(255,255,255,0.9);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  color: #fff;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-title span {
  font-style: italic;
  font-weight: 400;
}

.hero-description {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 2.5rem;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  color: white;
  font-size: 2rem;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0) translateX(-50%); }
  40% { transform: translateY(-15px) translateX(-50%); }
  60% { transform: translateY(-7px) translateX(-50%); }
}

/* ================== Typography Common ================== */
.section-title {
  font-family: var(--f-body);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--c-primary);
  margin-bottom: 1rem;
  display: block;
}

.section-heading {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: var(--c-secondary);
}

.section-header.center {
  text-align: center;
}

.section-header.center .section-heading::after {
  left: 50%;
  transform: translateX(-50%);
}

.section-paragraph {
  font-size: 1.05rem;
  color: var(--c-text);
  margin-bottom: 1.5rem;
}

.center-text {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 3rem auto;
}


/* ================== About Section ================== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-stats {
  display: flex;
  gap: 2.5rem;
  margin-top: 3rem;
  border-top: 1px solid var(--c-border);
  padding-top: 2rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--f-heading);
  font-size: 2.2rem;
  color: var(--c-primary);
  font-weight: 600;
  line-height: 1;
  margin-bottom: 0.3rem;
}

.stat-label {
  font-size: 0.9rem;
  color: #777;
}

.about-image-wrapper {
  position: relative;
  padding: 1.5rem 1.5rem 0 0;
}

.about-image {
  border-radius: 4px;
  position: relative;
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.image-accent-box {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  height: 90%;
  background-color: var(--c-accent);
  z-index: 1;
  border-radius: 4px;
}

/* ================== Programs Section ================== */
.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.program-card {
  background-color: var(--c-surface);
  padding: 2.5rem 2rem;
  border-radius: 8px;
  border: 1px solid var(--c-border);
  transition: transform var(--t-smooth), box-shadow var(--t-smooth);
}

.program-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.05);
  border-color: transparent;
}

.program-icon {
  font-size: 2.5rem;
  color: var(--c-primary);
  margin-bottom: 1.5rem;
  display: inline-block;
  padding: 1rem;
  background-color: var(--c-accent);
  border-radius: 50%;
}

.program-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.program-desc {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1.5rem;
}

.program-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--c-primary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color var(--t-fast);
}

.program-link:hover {
  color: var(--c-secondary);
}

.program-link i {
  transition: transform var(--t-fast);
}

.program-link:hover i {
  transform: translateX(5px);
}


/* ================== Banner Section ================== */
.banner {
  background-color: var(--c-primary);
  color: white;
  padding: 5rem 2rem;
  text-align: center;
}

.banner h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.banner h2 span {
  color: var(--c-secondary);
  font-style: italic;
}

.banner p {
  color: rgba(255,255,255,0.8);
  font-size: 1.1rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.banner .btn-primary {
  background-color: var(--c-secondary);
  color: var(--c-heading);
}

.banner .btn-primary:hover {
  background-color: #fff;
}

/* ================== Community Board (Notice & Guestbook) ================== */
.board-wrapper {
  max-width: 800px;
  margin: 0 auto;
  background-color: var(--c-surface);
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.03);
  overflow: hidden;
}

.board-tabs {
  display: flex;
  border-bottom: 1px solid var(--c-border);
}

.tab-btn {
  flex: 1;
  padding: 1.2rem;
  font-family: var(--f-body);
  font-size: 1.1rem;
  font-weight: 500;
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  transition: all var(--t-fast);
  border-bottom: 3px solid transparent;
}

.tab-btn:hover {
  color: var(--c-primary);
  background-color: #f9f9f9;
}

.tab-btn.active {
  color: var(--c-primary);
  font-weight: 600;
  border-bottom: 3px solid var(--c-secondary);
  background-color: #fff;
}

.tab-content {
  display: none;
  padding: 2rem;
}

.tab-content.active {
  display: block;
  animation: fadeIn 0.4s ease forwards;
}

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

/* Notice List Styles */
.notice-list {
  list-style: none;
}

.notice-item {
  border-bottom: 1px solid var(--c-border);
}

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

.notice-header {
  padding: 1.5rem 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--t-fast);
}

.notice-header:hover {
  background-color: #fcfcfc;
}

.notice-title {
  font-weight: 500;
  font-size: 1.05rem;
  color: var(--c-heading);
}

.notice-date {
  font-size: 0.85rem;
  color: #888;
}

.notice-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-smooth), padding var(--t-smooth);
  background-color: #fafafa;
  border-radius: 0 0 4px 4px;
}

.notice-item.open .notice-body {
  max-height: 500px; /* arbitrary max height for animation */
  padding: 1.5rem;
  border-top: 1px dashed var(--c-border);
}

.notice-body p {
  font-size: 0.95rem;
  color: var(--c-text);
  line-height: 1.6;
}

/* Guestbook Styles */
.guestbook-form-container {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--c-border);
}

.guestbook-form-container h4 {
  font-family: var(--f-body);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--c-heading);
}

.guestbook-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1rem;
}

.guestbook-form input,
.guestbook-form textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  font-family: var(--f-body);
  font-size: 0.95rem;
  transition: border-color var(--t-fast);
  background-color: #fafafa;
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  background-color: #fff;
}

.guestbook-form button {
  margin-top: 1rem;
  float: right;
}

/* Clearfix for float */
.guestbook-form::after {
  content: "";
  clear: both;
  display: table;
}

.guestbook-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.guestbook-card {
  background-color: #fff;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  padding: 1.5rem;
  position: relative;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}

.guestbook-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.04);
}

.gb-card-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f0f0f0;
}

.gb-author {
  font-weight: 600;
  color: var(--c-primary);
  font-size: 1rem;
}

.gb-date {
  font-size: 0.8rem;
  color: #aaa;
}

.gb-message {
  font-size: 0.95rem;
  color: var(--c-text);
  line-height: 1.5;
  white-space: pre-wrap;
}

.no-messages {
  text-align: center;
  color: #888;
  padding: 2rem;
  font-style: italic;
}


/* ================== Contact Section ================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-methods {
  margin-top: 2rem;
}

.contact-methods li {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--c-primary);
  width: 40px;
  height: 40px;
  background-color: var(--c-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.contact-text strong {
  display: block;
  font-family: var(--f-heading);
  font-weight: 600;
  margin-bottom: 0.2rem;
  color: var(--c-heading);
}

.contact-text span {
  color: #666;
  font-size: 0.95rem;
}

.contact-form-wrapper {
  background-color: var(--c-surface);
  padding: 3rem;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
  color: var(--c-heading);
}

.form-group input, 
.form-group textarea {
  width: 100%;
  padding: 0.8rem 1rem;
  border: 1px solid var(--c-border);
  border-radius: 4px;
  font-family: var(--f-body);
  font-size: 0.95rem;
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.btn-submit {
  width: 100%;
  background-color: var(--c-primary);
  color: white;
}
.btn-submit:hover {
  background-color: var(--c-primary-light);
}


/* ================== Footer ================== */
.footer {
  background-color: #111;
  color: #888;
  padding: 5rem 0 2rem 0;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand .logo-text {
  color: white;
  margin-bottom: 1rem;
  display: inline-block;
}

.footer-brand p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  display: inline-block;
  width: 36px;
  height: 36px;
  background-color: rgba(255,255,255,0.1);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast);
}

.social-links a:hover {
  background-color: var(--c-primary);
}

.footer-links h4,
.footer-legal h4 {
  color: white;
  font-family: var(--f-heading);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.footer-links ul li,
.footer-legal ul li {
  margin-bottom: 0.8rem;
}

.footer-links a,
.footer-legal a {
  font-size: 0.9rem;
  transition: color var(--t-fast);
}

.footer-links a:hover,
.footer-legal a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
}


/* ================== Animations & Scroll Reveal ================== */

/* On Load Reveal for Hero */
.reveal-element {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.8s forwards;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

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

/* Scroll Fade Classes */
.scroll-fade, .scroll-fade-left, .scroll-fade-right {
  opacity: 0;
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.scroll-fade {
  transform: translateY(40px);
}
.scroll-fade.active {
  opacity: 1;
  transform: translateY(0);
}

.scroll-fade-left {
  transform: translateX(-40px);
}
.scroll-fade-left.active {
  opacity: 1;
  transform: translateX(0);
}

.scroll-fade-right {
  transform: translateX(40px);
}
.scroll-fade-right.active {
  opacity: 1;
  transform: translateX(0);
}


/* ================== Sub-Page Styles (Education & Seminars) ================== */
.sub-hero {
  padding: 180px 2rem 100px 2rem;
  background-color: var(--c-primary);
  color: white;
  text-align: center;
}

.sub-hero-title {
  font-size: 3rem;
  color: white;
  margin-bottom: 1rem;
}

.sub-hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  max-width: 600px;
  margin: 0 auto;
}

.feature-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  margin-bottom: 6rem;
}

.feature-block.reverse .feature-content {
  order: 2;
}

.feature-block.reverse .feature-image-wrapper {
  order: 1;
}

.feature-block:last-child {
  margin-bottom: 0;
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--c-primary);
  margin-bottom: 1rem;
}

.feature-title {
  font-size: 2rem;
  margin-bottom: 1.5rem;
  color: var(--c-heading);
}

.feature-desc {
  font-size: 1.05rem;
  color: var(--c-text);
  margin-bottom: 2rem;
}

.feature-list li {
  margin-bottom: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
}

.feature-list i {
  color: var(--c-secondary);
  font-weight: bold;
}

/* AI Placeholder Gradients */
.sub-img-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  border-radius: 8px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.sub-img-placeholder.mentoring {
  background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
  border: 1px solid #eaeaea;
}

.sub-img-placeholder.career {
  background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
}

.sub-img-placeholder.health {
  background: linear-gradient(135deg, #f3e7e9 0%, #e3eeff 99%, #e3eeff 100%);
}


/* ================== Responsive (Mobile) ================== */
@media (max-width: 992px) {
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .about-image-wrapper {
    order: -1;
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none; /* Hide desktop nav */
  }
  .mobile-menu-btn {
    display: block;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-stats {
    flex-wrap: wrap;
  }

  .feature-block {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
  }

  .feature-block.reverse .feature-content {
    order: 1;
  }
  .feature-block.reverse .feature-image-wrapper {
    order: 2;
  }
  
  :root {
    --section-pad: 60px;
  }
  .navbar {
    padding: 1rem 0;
  }
  .navbar.scrolled {
    padding: 0.8rem 0;
  }
}

/* Mobile Menu Overlay Styles */
.mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--c-primary);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.77, 0, 0.175, 1);
}

.mobile-menu-overlay.open {
  transform: translateY(0);
}

.mobile-menu-content {
  text-align: center;
}

.mobile-menu-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 2rem;
  cursor: pointer;
}

.mobile-nav-links li {
  margin: 2rem 0;
}

.mobile-nav-item {
  font-family: var(--f-heading);
  font-size: 2rem;
  color: white;
  font-weight: 600;
}
