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

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.75;
  color: #1a1a1a;
  overflow-x: hidden;
  word-break: keep-all;
  letter-spacing: -0.3px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-brand {
  display: flex;
  align-items: center;
}

.logo-text {
  font-family: 'Noto Serif KR', serif;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  color: #2c1810;
  text-decoration: none;
  letter-spacing: -0.5px;
  transition: opacity 0.3s;
}

.logo-text:hover {
  opacity: 0.8;
}

.nav-links {
  display: flex;
  gap: 40px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: #1a1a1a;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #4a2818;
}

.btn-contact {
  background: #2c1810;
  color: white !important;
  padding: 10px 24px;
  border-radius: 25px;
  font-weight: 500;
}

.btn-contact:hover {
  background: #4a2818;
}

/* Hero Section with Carousel */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
  opacity: 0;
  animation: heroFadeIn 1.5s ease-out 0.3s forwards;
}

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

/* Hero Carousel */
.hero-carousel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.carousel-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.carousel-slide.active {
  opacity: 1;
}

.carousel-slide picture,
.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(44, 24, 16, 0.45) 0%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

/* Carousel Dots */
.carousel-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 3;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: scale(1.2);
}

.carousel-dot.active {
  background: white;
  width: 32px;
  border-radius: 6px;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 40px;
  margin-top: 60px;
  animation: contentFadeIn 1.8s ease-out 0.6s both;
}

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

.hero-title {
  font-size: clamp(40px, 7vw, 64px);
  font-weight: 700;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  line-height: 1.3;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8),
               0 2px 10px rgba(0, 0, 0, 0.9);
}

.hero-subtitle {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 500;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  line-height: 1.4;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.7),
               0 2px 8px rgba(0, 0, 0, 0.8);
}

.hero-description {
  font-size: clamp(15px, 1.5vw, 18px);
  font-weight: 400;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  letter-spacing: -0.3px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7),
               0 1px 5px rgba(0, 0, 0, 0.8);
}

/* Welcome Section */
.welcome-section {
  padding: 120px 0;
  background: #f8f6f4;
}

.section-title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 500;
  text-align: center;
  margin-bottom: 60px;
  color: #1a1a1a;
  line-height: 1.5;
  letter-spacing: -0.5px;
}

/* Director Introduction */
.director-intro {
  display: flex;
  align-items: flex-start;
  gap: 40px;
  background: white;
  padding: 40px;
  border-radius: 16px;
  margin-bottom: 60px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.director-photo {
  flex-shrink: 0;
}

.director-photo picture,
.director-photo img {
  width: 220px;
  height: 280px;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: block;
}

.director-info {
  flex: 1;
}

.director-name {
  font-size: 28px;
  font-weight: 600;
  color: #2c1810;
  margin-bottom: 8px;
  letter-spacing: -0.5px;
}

.director-title {
  font-size: 16px;
  color: #666;
  margin-bottom: 24px;
  line-height: 1.6;
}

.director-credentials {
  margin-top: 20px;
}

.director-credentials p {
  font-size: 16px;
  font-weight: 600;
  color: #2c1810;
  margin-bottom: 12px;
}

.director-credentials ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.director-credentials li {
  font-size: 14px;
  color: #555;
  padding: 8px 12px;
  background: #f8f6f4;
  border-radius: 6px;
  position: relative;
  padding-left: 24px;
}

.director-credentials li::before {
  content: '•';
  position: absolute;
  left: 12px;
  color: #2c1810;
  font-weight: bold;
}

.welcome-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}

.welcome-col p {
  font-size: 16px;
  line-height: 1.9;
  color: #4a4a4a;
  margin-bottom: 20px;
}

.welcome-col p strong {
  color: #2c1810;
  font-weight: 500;
}

.philosophy-title {
  font-size: 18px;
  color: #2c1810;
  margin-bottom: 24px !important;
}

.btn-primary {
  background: #2c1810;
  color: white;
  border: none;
  padding: 16px 40px;
  font-size: 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
  display: block;
  margin: 0 auto;
  font-weight: 500;
}

.btn-primary:hover {
  background: #4a2818;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(44, 24, 16, 0.2);
}

/* Image Divider */
.image-divider {
  height: 500px;
  background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.35)),
              url('/images/couple-talking.jpg') center/cover;
  position: relative;
}

.image-divider.courtroom {
  background: linear-gradient(rgba(0, 0, 0, 0.25), rgba(0, 0, 0, 0.35)),
              url('/images/asian-couple-outdoor.jpg') center/cover;
}

/* Services Section */
.services-section {
  background: #1a1a1a;
  padding: 120px 0;
  color: white;
}

.services-grid {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 80px;
  align-items: start;
}

.services-label h3 {
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 1px;
  color: #b8b8b8;
}

.services-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.service-item {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 300;
  letter-spacing: -0.5px;
  line-height: 1.2;
  color: white;
  transition: color 0.3s;
}

.service-item:hover {
  color: #b8b8b8;
}

.btn-secondary {
  background: white;
  color: #1a1a1a;
  border: none;
  padding: 14px 36px;
  font-size: 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 40px;
  font-weight: 500;
  width: fit-content;
}

.btn-secondary:hover {
  background: #e8e8e8;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(255, 255, 255, 0.1);
}

/* Testimonials Section */
.testimonials-section {
  padding: 120px 0;
  background: #f8f6f4;
  text-align: center;
}

.testimonials-subtitle {
  font-size: 16px;
  color: #666;
  max-width: 700px;
  margin: 0 auto 80px;
  line-height: 1.7;
}

.testimonial-card {
  max-width: 900px;
  margin: 0 auto 50px;
  background: white;
  padding: 60px;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.testimonial-text {
  font-size: 20px;
  line-height: 1.8;
  color: #1a1a1a;
  margin-bottom: 30px;
  font-style: italic;
}

.testimonial-author {
  font-size: 16px;
  color: #666;
  font-weight: 500;
}

.testimonial-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  margin-bottom: 60px;
}

.nav-arrow {
  background: none;
  border: 1px solid #ccc;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
  color: #666;
  transition: all 0.3s;
}

.nav-arrow:hover {
  border-color: #2c1810;
  color: #2c1810;
  background: rgba(44, 24, 16, 0.05);
}

.nav-dots {
  display: flex;
  gap: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d0d0d0;
  cursor: pointer;
  transition: all 0.3s;
}

.dot.active {
  background: #2c1810;
  width: 30px;
  border-radius: 5px;
}

.testimonials-cta {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
  max-width: 700px;
  margin: 0 auto 30px;
}

/* Programs Section */
.programs-section {
  padding: 100px 0;
  background: white;
}

.section-subtitle {
  text-align: center;
  font-size: 18px;
  color: #666;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.programs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-bottom: 60px;
}

.program-card {
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  padding: 40px 32px;
  transition: all 0.3s ease;
  position: relative;
}

.program-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(44, 24, 16, 0.1);
  border-color: #2c1810;
}

.program-card.featured {
  border: 2px solid #2c1810;
  background: linear-gradient(135deg, #fff 0%, #f8f6f4 100%);
}

.program-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.program-header h3 {
  font-size: 24px;
  font-weight: 600;
  color: #2c1810;
  margin: 0;
  letter-spacing: -0.5px;
}

.program-badge {
  background: #f0ebe6;
  color: #2c1810;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.program-badge.recommended {
  background: #2c1810;
  color: white;
}

.program-description {
  font-size: 15px;
  line-height: 1.7;
  color: #666;
  margin-bottom: 24px;
}

.program-details {
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  padding: 20px 0;
  margin-bottom: 24px;
}

.program-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.program-info:last-child {
  margin-bottom: 0;
}

.info-label {
  font-size: 14px;
  color: #999;
  font-weight: 500;
}

.info-value {
  font-size: 14px;
  color: #2c1810;
  font-weight: 600;
  letter-spacing: -0.3px;
}

.program-curriculum h4,
.program-process h4,
.program-benefits h4 {
  font-size: 16px;
  font-weight: 600;
  color: #2c1810;
  margin-bottom: 16px;
  letter-spacing: -0.3px;
}

.curriculum-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.curriculum-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: #555;
}

.session-number {
  background: #2c1810;
  color: white;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: process-counter;
}

.process-list li {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #f0f0f0;
}

.process-list li:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.process-step {
  background: #2c1810;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}

.process-content strong {
  display: block;
  font-size: 15px;
  color: #2c1810;
  margin-bottom: 6px;
}

.process-content p {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.6;
}

.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.benefits-list li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.7;
  color: #555;
}

.benefits-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: #2c1810;
  font-weight: bold;
  font-size: 18px;
}

.program-note {
  background: #f8f6f4;
  padding: 20px;
  border-radius: 8px;
  margin-top: 24px;
}

.program-note p {
  font-size: 14px;
  line-height: 1.7;
  color: #555;
  margin-bottom: 12px;
}

.program-note p:last-child {
  margin-bottom: 0;
}

.highlight-text {
  color: #2c1810;
  font-weight: 600;
}

.programs-cta {
  background: linear-gradient(135deg, #f8f6f4 0%, #f0ebe6 100%);
  padding: 50px 40px;
  border-radius: 12px;
  text-align: center;
  border: 2px solid #e0d5c8;
}

.programs-cta h3 {
  font-size: 28px;
  font-weight: 600;
  color: #2c1810;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.programs-cta p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 16px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.programs-highlight {
  background: white;
  padding: 20px;
  border-radius: 8px;
  color: #2c1810;
  font-weight: 600;
  margin: 30px 0;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 30px;
}

.cta-buttons .btn-secondary {
  background: transparent;
  border: 2px solid #2c1810;
  color: #2c1810;
  text-decoration: none;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 500;
  transition: all 0.3s;
  display: inline-block;
}

.cta-buttons .btn-secondary:hover {
  background: #2c1810;
  color: white;
  transform: translateY(-2px);
}

/* Footer */
.footer {
  background: #f8f6f4;
  padding: 80px 0 40px;
}

.footer-brand {
  text-align: center;
  margin-bottom: 60px;
}

.footer-logo-text {
  font-family: 'Noto Serif KR', serif;
  font-size: 28px;
  font-weight: 600;
  line-height: 1.3;
  color: #2c1810;
  margin-bottom: 16px;
  letter-spacing: -0.8px;
}

.footer-tagline {
  font-size: 14px;
  color: #666;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 60px;
  text-align: center;
}

.footer-col p,
.footer-col a {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
  text-decoration: none;
  display: block;
}

.footer-col a:hover {
  color: #2c1810;
}

.footer-bottom {
  text-align: center;
  padding-top: 40px;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: center;
  gap: 40px;
  color: #999;
  font-size: 12px;
}

/* Responsive Design */
@media (max-width: 968px) {
  .container {
    padding: 0 30px;
  }

  .navbar {
    padding: 20px 30px;
  }

  .welcome-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .services-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .testimonial-card {
    padding: 40px 30px;
  }

  .nav-links {
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .programs-grid {
    grid-template-columns: 1fr;
  }

  .program-card {
    padding: 30px 24px;
  }

  .programs-cta {
    padding: 40px 24px;
  }

  .cta-buttons {
    flex-direction: column;
  }

  .cta-buttons .btn-primary,
  .cta-buttons .btn-secondary {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .navbar {
    padding: 15px 20px;
  }

  .nav-links {
    gap: 16px;
  }

  .nav-links a {
    font-size: 13px;
  }

  .hero-content {
    padding: 0 20px;
  }

  .container {
    padding: 0 20px;
  }

  .program-card {
    padding: 24px 20px;
  }

  .program-header h3 {
    font-size: 20px;
  }

  .curriculum-list li,
  .benefits-list li {
    font-size: 13px;
  }

  .process-step {
    width: 40px;
    height: 40px;
    font-size: 11px;
  }

  .programs-cta h3 {
    font-size: 22px;
  }

  .programs-cta p {
    font-size: 14px;
  }

  .welcome-section,
  .services-section,
  .testimonials-section {
    padding: 80px 0;
  }

  .director-intro {
    flex-direction: column;
    padding: 30px 24px;
    gap: 24px;
  }

  .director-photo picture,
  .director-photo img {
    width: 180px;
    height: 230px;
  }

  .director-name {
    font-size: 24px;
  }

  .director-credentials ul {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    padding: 30px 20px;
  }

  .testimonial-text {
    font-size: 18px;
  }

  .image-divider {
    height: 300px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 10px;
  }

}

/* Contact Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.6);
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 40px;
  border-radius: 16px;
  max-width: 600px;
  width: 90%;
  position: relative;
  animation: slideDown 0.3s;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-close {
  position: absolute;
  right: 20px;
  top: 20px;
  color: #999;
  font-size: 32px;
  font-weight: 300;
  cursor: pointer;
  transition: color 0.3s;
  line-height: 1;
}

.modal-close:hover {
  color: #2c1810;
}

.modal-title {
  font-size: 28px;
  font-weight: 600;
  color: #2c1810;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.modal-description {
  font-size: 15px;
  color: #666;
  margin-bottom: 32px;
  line-height: 1.6;
  text-align: center;
}

/* Contact Info Box */
.contact-info-box {
  background: #f8f6f4;
  padding: 40px 30px;
  border-radius: 12px;
  text-align: center;
  margin-bottom: 32px;
}

.phone-number {
  font-size: 36px;
  font-weight: 700;
  color: #2c1810;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
  font-family: 'Noto Sans KR', sans-serif;
}

.contact-instruction {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
}

/* Contact Buttons */
.contact-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.btn-call,
.btn-text {
  flex: 1;
  padding: 16px 24px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  transition: all 0.3s;
  font-family: 'Noto Sans KR', sans-serif;
  letter-spacing: -0.3px;
  cursor: pointer;
}

.btn-call {
  background: #2c1810;
  color: white;
}

.btn-call:hover {
  background: #4a2818;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(44, 24, 16, 0.2);
}

.btn-text {
  background: white;
  color: #2c1810;
  border: 2px solid #2c1810;
}

.btn-text:hover {
  background: #f8f6f4;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(44, 24, 16, 0.1);
}

/* Mobile Modal Styles */
@media (max-width: 640px) {
  .modal-content {
    margin: 10% auto;
    padding: 28px 24px;
    width: 95%;
  }

  .modal-title {
    font-size: 24px;
  }

  .modal-description {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .phone-number {
    font-size: 28px;
  }

  .contact-info-box {
    padding: 32px 20px;
  }

  .contact-buttons {
    flex-direction: column;
  }

  .btn-call,
  .btn-text {
    width: 100%;
  }
}
