/* ===== 龍蝦學院 Brand CSS ===== */
/* Colors: #1D9E75 primary, #f5f5f0 bg, #1a1a18 text */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #1D9E75;
  --green-dark: #0F6E56;
  --green-darker: #085041;
  --green-light: #E1F5EE;
  --green-border: #9FE1CB;
  --text: #1a1a18;
  --text-sub: #5f5e5a;
  --text-muted: #888780;
  --border: #e8e6df;
  --bg: #f5f5f0;
  --white: #ffffff;
  --purple: #534AB7;
  --orange: #D85A30;
  --blue: #185FA5;
  /* Brand Logo Gradient */
  --logo-from: #5B8BF5;
  --logo-to: #00D4AA;
  --logo-bg: #0d1117;
}

/* ===== BRAND LOGO (CSS recreation of AI Employee logo) ===== */
.brand-logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--logo-bg);
  padding: 10px 20px;
  border-radius: 12px;
}
.brand-logo-wrap .emoji { font-size: 28px; }
.brand-logo-text {
  font-size: 26px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--logo-from), var(--logo-to));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

/* Navbar dark logo variant */
.navbar-logo-dark {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--logo-bg);
  padding: 6px 14px;
  border-radius: 10px;
}
.navbar-logo-dark .emoji { font-size: 20px; }
.navbar-logo-dark .grad-text {
  font-size: 17px;
  font-weight: 800;
  background: linear-gradient(90deg, var(--logo-from), var(--logo-to));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.01em;
}

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans TC', 'PingFang TC', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 18px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.05em;
}

.navbar-logo .emoji { font-size: 20px; }

.navbar-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar-links a {
  font-size: 16px;
  color: var(--text-sub);
  transition: color 0.2s;
}

.navbar-links a:hover, .navbar-links a.active { color: var(--green); }

.navbar-cta {
  background: var(--green);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.2s;
}

.navbar-cta:hover { background: var(--green-dark) !important; color: var(--white) !important; }

.hamburger { display: none; cursor: pointer; background: none; border: none; padding: 8px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ===== SECTIONS ===== */
section { padding: 80px 24px; }
.container { max-width: 1080px; margin: 0 auto; }

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--green-light);
  padding: 4px 12px;
  border-radius: 99px;
  margin-bottom: 16px;
}

h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 700; line-height: 1.15; }
h2 { font-size: clamp(28px, 3.5vw, 44px); font-weight: 600; line-height: 1.2; }
h3 { font-size: 22px; font-weight: 600; }

/* ===== HERO ===== */
.hero {
  background: var(--white);
  padding: 100px 24px 80px;
  text-align: center;
}

.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.hero h1 { margin-bottom: 20px; }
.hero h1 span { color: var(--green); }

.hero-sub {
  font-size: 22px;
  color: var(--text-sub);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.btn-primary {
  background: var(--green);
  color: var(--white);
  padding: 16px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 18px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}

.btn-primary:hover { background: var(--green-dark); transform: translateY(-1px); }

.btn-secondary {
  background: var(--white);
  color: var(--green-dark);
  padding: 16px 32px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 18px;
  border: 1.5px solid var(--green-dark);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-block;
}

.btn-secondary:hover { background: var(--green-light); }

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}

.stat-item { text-align: center; }
.stat-num {
  font-size: 36px;
  font-weight: 700;
  color: var(--green);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label { font-size: 13px; color: var(--text-sub); }

/* ===== PAIN POINTS ===== */
.pain-section { background: var(--bg); }
.pain-section h2 { text-align: center; margin-bottom: 12px; }
.pain-section .subtitle { text-align: center; color: var(--text-sub); margin-bottom: 48px; font-size: 16px; }

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.pain-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.pain-icon { font-size: 28px; margin-bottom: 14px; }
.pain-card h3 { margin-bottom: 8px; }
.pain-card p { color: var(--text-sub); font-size: 17px; line-height: 1.7; }

.solution-card {
  background: var(--green-light);
  border: 1px solid var(--green-border);
  border-radius: 16px;
  padding: 28px;
}

.solution-card .pain-icon { color: var(--green); }
.solution-card h3 { color: var(--green-darker); }

/* ===== SERVICES ===== */
.services-section { background: var(--white); }
.services-section .section-header { text-align: center; margin-bottom: 48px; }
.services-section .section-header p { color: var(--text-sub); margin-top: 12px; font-size: 16px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px;
  transition: border-color 0.2s, transform 0.2s;
}

.service-card:hover { border-color: var(--green); transform: translateY(-2px); }
.service-num { font-size: 11px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.1em; margin-bottom: 12px; }
.service-card h3 { margin-bottom: 10px; }
.service-card p { color: var(--text-sub); font-size: 17px; line-height: 1.7; }
.service-tag {
  display: inline-block;
  margin-top: 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-light);
  padding: 4px 10px;
  border-radius: 99px;
}

/* ===== ABOUT TEASER ===== */
.about-teaser { background: var(--bg); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
}

.about-img-wrap img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 20px;
}

.about-img-placeholder {
  width: 100%;
  height: 420px;
  background: var(--green-light);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
}

.about-badge {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--white);
  border-radius: 12px;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.about-badge-icon { font-size: 24px; }
.about-badge-text { font-size: 12px; }
.about-badge-text strong { display: block; font-size: 14px; color: var(--green); }

.about-content .section-label { margin-bottom: 12px; }
.about-content h2 { margin-bottom: 20px; }
.about-content p { color: var(--text-sub); margin-bottom: 16px; line-height: 1.8; }

.about-highlights { list-style: none; margin: 24px 0; }
.about-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
}
.about-highlights li::before { content: '✓'; color: var(--green); font-weight: 700; margin-top: 2px; }

/* ===== LECTURE GALLERY ===== */
.gallery-section { background: var(--white); padding: 80px 24px; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.gallery-item {
  display: block;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  aspect-ratio: 4 / 3;
  background: var(--bg);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.gallery-item:hover {
  border-color: var(--green);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 110, 86, 0.12);
}
.gallery-item:hover img { transform: scale(1.04); }

/* ===== CTA SECTION ===== */
.cta-section {
  background: linear-gradient(135deg, var(--green-light), #f0faf6);
  border-top: 1px solid var(--green-border);
  border-bottom: 1px solid var(--green-border);
  text-align: center;
  padding: 80px 24px;
}

.cta-section h2 { margin-bottom: 16px; color: var(--green-darker); }
.cta-section p { color: var(--text-sub); font-size: 16px; margin-bottom: 36px; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ===== CARDS GRID ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

/* ===== COURSE PAGE ===== */
.course-hero {
  background: var(--green-darker);
  color: var(--white);
  padding: 80px 24px;
  text-align: center;
}

.course-hero h1 { color: var(--white); margin-bottom: 16px; }
.course-hero p { color: rgba(255,255,255,0.75); font-size: 18px; max-width: 560px; margin: 0 auto 32px; }

.course-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
}

.course-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.08); }

.course-card-header {
  padding: 24px 28px;
  background: var(--green-light);
  border-bottom: 1px solid var(--green-border);
}

.course-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--green-darker);
  background: var(--green-border);
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
}

.course-card-header h3 { color: var(--green-darker); }
.course-card-body { padding: 24px 28px; }
.course-card-body p { color: var(--text-sub); font-size: 14px; line-height: 1.7; margin-bottom: 16px; }

.course-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.course-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.curriculum-list { list-style: none; }
.curriculum-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.curriculum-list li:last-child { border-bottom: none; }
.week-num {
  width: 36px;
  height: 36px;
  background: var(--green-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--green-darker);
  flex-shrink: 0;
}

/* ===== ABOUT PAGE ===== */
.about-hero {
  background: var(--white);
  padding: 80px 24px;
}

.about-hero-inner {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 64px;
  align-items: start;
}

.profile-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border-radius: 20px;
}

.profile-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: var(--green-light);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 100px;
}

.timeline { margin-top: 40px; }
.timeline-item {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
}

.timeline-dot {
  width: 12px;
  height: 12px;
  background: var(--green);
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}

.timeline-content h4 { font-size: 15px; margin-bottom: 4px; }
.timeline-content p { font-size: 13px; color: var(--text-sub); }
.timeline-year {
  font-size: 11px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 4px;
}

/* ===== CONTACT PAGE ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.contact-icon {
  width: 48px;
  height: 48px;
  background: var(--green-light);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.contact-info-item h4 { margin-bottom: 4px; font-size: 15px; }
.contact-info-item p { font-size: 14px; color: var(--text-sub); }
.contact-info-item a { color: var(--green); }

.contact-form .card { padding: 36px; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text-sub); }
.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s;
}
.form-input:focus { outline: none; border-color: var(--green); }
textarea.form-input { height: 120px; resize: vertical; }
.form-submit { width: 100%; padding: 14px; font-size: 15px; }

/* ===== AI CHECK PAGE ===== */
.check-hero {
  background: linear-gradient(135deg, var(--green-darker), var(--green-dark));
  color: var(--white);
  padding: 100px 24px 80px;
  text-align: center;
}

.check-hero h1 { color: var(--white); margin-bottom: 16px; }
.check-hero p { color: rgba(255,255,255,0.8); font-size: 18px; max-width: 520px; margin: 0 auto 36px; }

.check-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.check-step {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.check-step-num {
  width: 40px;
  height: 40px;
  background: var(--white);
  color: var(--green-darker);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  margin: 0 auto 14px;
}

.check-step p { color: rgba(255,255,255,0.85); font-size: 14px; margin-top: 8px; }

/* ===== FOOTER ===== */
footer {
  background: var(--text);
  color: rgba(255,255,255,0.65);
  padding: 48px 24px 32px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo { color: var(--green); font-weight: 600; font-size: 16px; margin-bottom: 12px; }
.footer-brand p { font-size: 13px; line-height: 1.7; max-width: 260px; }

.footer-links h4 { color: var(--white); font-size: 13px; margin-bottom: 16px; }
.footer-links ul { list-style: none; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-links a:hover { color: var(--green); }

.footer-bottom {
  max-width: 1080px;
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a { color: rgba(255,255,255,0.55); }
.footer-bottom a:hover { color: var(--green); }

/* ===== SOCIAL ICONS ===== */
.social-links { display: flex; gap: 12px; margin-top: 16px; }
.social-icon {
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background 0.2s;
}
.social-icon:hover { background: var(--green); }

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 60px 24px 48px;
  text-align: center;
}

.page-hero h1 { margin-bottom: 12px; }
.page-hero p { color: var(--text-sub); font-size: 17px; max-width: 520px; margin: 0 auto; }

/* ===== DIVIDER ===== */
.divider { height: 1px; background: var(--border); margin: 0 24px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .about-inner,
  .about-hero-inner,
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .about-img-wrap,
  .profile-placeholder { height: 300px; }
  .about-img-placeholder { height: 300px; }
}

@media (max-width: 640px) {
  .navbar-links { display: none; }
  .navbar-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--white);
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    z-index: 99;
  }
  .hamburger { display: block; }
  section { padding: 56px 20px; }
  .hero { padding: 60px 20px 56px; }
  .hero-stats { gap: 28px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .btn-group { flex-direction: column; align-items: center; }
  .btn-primary, .btn-secondary { width: 100%; max-width: 320px; text-align: center; }
}
