/* Club M2 Hongdae - Deep Ocean Blue + White Theme */
/* Class prefix: m2- */

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

body{
  font-family:'Pretendard',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
  background:#f8fafc;
  color:#1e293b;
  line-height:1.75;
  overflow-x:hidden;
}

/* Ocean Hero */
.m2-ocean-hero{
  position:relative;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background:linear-gradient(180deg,#062a52 0%,#0a4c8a 40%,#1a6fbe 100%);
  text-align:center;
  overflow:hidden;
}
.m2-wave-bg{
  position:absolute;bottom:0;left:0;right:0;height:120px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 120'%3E%3Cpath fill='%23f8fafc' d='M0,64L80,69.3C160,75,320,85,480,80C640,75,800,53,960,48C1120,43,1280,53,1360,58.7L1440,64L1440,120L0,120Z'/%3E%3C/svg%3E") no-repeat bottom/cover;
}
.m2-hero-inner{
  position:relative;z-index:2;
  padding:2rem;
  max-width:700px;
}
.m2-est{
  display:inline-block;
  border:2px solid rgba(255,255,255,0.4);
  color:rgba(255,255,255,0.8);
  padding:0.3rem 1.5rem;
  border-radius:4px;
  font-size:0.85rem;
  letter-spacing:0.2em;
  margin-bottom:1.5rem;
}
.m2-hero-title{
  font-size:clamp(1.8rem,5.5vw,3.4rem);
  font-weight:900;
  color:#fff;
  line-height:1.3;
  margin-bottom:1.2rem;
}
.m2-hero-desc{
  font-size:1.05rem;
  color:rgba(255,255,255,0.75);
  margin-bottom:2rem;
  line-height:1.8;
}
.m2-hero-link{
  display:inline-block;
  background:#fff;
  color:#0a4c8a;
  padding:0.9rem 2.5rem;
  border-radius:8px;
  text-decoration:none;
  font-weight:700;
  font-size:1rem;
  transition:all 0.3s;
}
.m2-hero-link:hover{
  background:#e0ecf8;
  transform:translateY(-2px);
  box-shadow:0 8px 24px rgba(0,0,0,0.2);
}

/* Panels with wave separators */
.m2-panel{position:relative}
.m2-panel-wave-top{
  height:80px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23f0f6fc' d='M0,0L120,10.7C240,21,480,43,720,48C960,53,1200,43,1320,37.3L1440,32L1440,80L0,80Z'/%3E%3C/svg%3E") no-repeat bottom/cover;
  background-color:#f8fafc;
}
.m2-wave-alt .m2-panel-wave-top,
.m2-wave-alt{
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 80'%3E%3Cpath fill='%23f8fafc' d='M0,32L120,37.3C240,43,480,53,720,48C960,43,1200,21,1320,10.7L1440,0L1440,80L0,80Z'/%3E%3C/svg%3E") no-repeat bottom/cover;
  background-color:#f0f6fc;
}
.m2-panel-body{
  background:#f0f6fc;
  padding:0 1.5rem 4rem;
}
.m2-panel-body-alt{
  background:#f8fafc;
}
.m2-panel-inner{
  max-width:900px;
  margin:0 auto;
}

/* Chapter label */
.m2-chapter{
  display:inline-block;
  color:#0a4c8a;
  font-size:0.8rem;
  font-weight:700;
  letter-spacing:0.15em;
  text-transform:uppercase;
  margin-bottom:0.5rem;
}
.m2-panel-title{
  font-size:clamp(1.5rem,4vw,2.2rem);
  font-weight:800;
  color:#0a4c8a;
  margin-bottom:0.3rem;
}
.m2-panel-subtitle{
  font-size:1rem;
  color:#64748b;
  margin-bottom:2.5rem;
}

/* Timeline */
.m2-timeline{
  border-left:3px solid #0a4c8a;
  padding-left:2rem;
  margin-left:1rem;
}
.m2-timeline-entry{
  position:relative;
  margin-bottom:2.5rem;
}
.m2-timeline-entry::before{
  content:'';
  position:absolute;
  left:-2.65rem;top:0.3rem;
  width:14px;height:14px;
  background:#0a4c8a;
  border-radius:50%;
  border:3px solid #f0f6fc;
}
.m2-timeline-year{
  font-size:0.85rem;
  font-weight:700;
  color:#0a4c8a;
  margin-bottom:0.3rem;
}
.m2-timeline-content h3{
  font-size:1.15rem;
  font-weight:700;
  color:#1e293b;
  margin-bottom:0.5rem;
}
.m2-timeline-content p{
  color:#475569;
  font-size:0.95rem;
  line-height:1.8;
}

/* Zones */
.m2-zones{display:flex;flex-direction:column;gap:2rem}
.m2-zone-block{
  background:#fff;
  border-radius:16px;
  padding:2rem;
  border-left:5px solid #0a4c8a;
  box-shadow:0 2px 12px rgba(10,76,138,0.08);
}
.m2-zone-label{
  font-size:0.75rem;
  font-weight:700;
  color:#0a4c8a;
  letter-spacing:0.1em;
  text-transform:uppercase;
  margin-bottom:0.5rem;
}
.m2-zone-block h3{
  font-size:1.2rem;
  font-weight:700;
  color:#1e293b;
  margin-bottom:0.8rem;
}
.m2-zone-block p{
  color:#475569;
  font-size:0.95rem;
  line-height:1.8;
}

/* Tide Chart */
.m2-tide-chart{display:flex;flex-direction:column;gap:1.8rem}
.m2-tide-row{
  display:grid;
  grid-template-columns:60px 120px 1fr;
  gap:1rem;
  align-items:start;
}
.m2-tide-time{
  font-size:1rem;
  font-weight:700;
  color:#0a4c8a;
}
.m2-tide-bar{
  height:16px;
  background:#e2e8f0;
  border-radius:8px;
  overflow:hidden;
  margin-top:4px;
}
.m2-tide-fill{
  height:100%;
  width:var(--tide-level);
  background:linear-gradient(90deg,#0a4c8a,#1a6fbe);
  border-radius:8px;
  transition:width 0.6s;
}
.m2-tide-label{
  font-size:0.9rem;
  color:#475569;
  line-height:1.7;
}

/* Current list */
.m2-current-list{display:flex;flex-direction:column;gap:2rem}
.m2-current-item{
  display:flex;
  gap:1.2rem;
  align-items:flex-start;
  background:#f0f6fc;
  border-radius:12px;
  padding:1.5rem;
}
.m2-current-icon{
  font-size:2rem;
  color:#0a4c8a;
  font-weight:900;
  flex-shrink:0;
  width:40px;
  text-align:center;
}
.m2-current-item h3{
  font-size:1.05rem;
  font-weight:700;
  color:#1e293b;
  margin-bottom:0.4rem;
}
.m2-current-item p{
  color:#475569;
  font-size:0.93rem;
  line-height:1.8;
}

/* Anchor Grid */
.m2-anchor-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:1.5rem;
}
.m2-anchor-card{
  background:#fff;
  border-radius:12px;
  padding:1.8rem;
  box-shadow:0 2px 12px rgba(10,76,138,0.06);
  border-top:4px solid #0a4c8a;
}
.m2-anchor-card h3{
  font-size:1.05rem;
  font-weight:700;
  color:#0a4c8a;
  margin-bottom:0.6rem;
}
.m2-anchor-card p{
  color:#475569;
  font-size:0.93rem;
  line-height:1.8;
}

/* FAQ */
.m2-faq-wrap{max-width:750px;margin:0 auto}
.m2-faq-block{
  border-bottom:1px solid #d1dde9;
}
.m2-faq-question{
  width:100%;background:none;border:none;
  text-align:left;
  padding:1.2rem 0;
  font-size:1.02rem;
  font-weight:600;
  color:#1e293b;
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-family:inherit;
}
.m2-faq-question::after{
  content:'+';
  font-size:1.4rem;
  color:#0a4c8a;
  transition:transform 0.3s;
  flex-shrink:0;
  margin-left:1rem;
}
.m2-faq-question[aria-expanded="true"]::after{content:'-'}
.m2-faq-answer{
  max-height:0;
  overflow:hidden;
  transition:max-height 0.4s ease;
}
.m2-faq-answer p{
  padding:0 0 1.2rem;
  color:#64748b;
  font-size:0.93rem;
  line-height:1.8;
}

/* CTA Ocean */
.m2-cta-ocean{
  text-align:center;
  padding:5rem 1.5rem;
  background:linear-gradient(180deg,#0a4c8a,#062a52);
}
.m2-cta-phrase{
  font-size:1.3rem;
  color:rgba(255,255,255,0.85);
  line-height:1.9;
  margin-bottom:2rem;
}
.m2-cta-button{
  display:inline-block;
  background:#fff;
  color:#0a4c8a;
  padding:1rem 2.5rem;
  border-radius:8px;
  text-decoration:none;
  font-weight:700;
  font-size:1.05rem;
  transition:all 0.3s;
}
.m2-cta-button:hover{
  background:#e0ecf8;
  transform:translateY(-2px);
}

/* Footer */
.m2-footer{
  text-align:center;
  padding:2rem 1.5rem 6rem;
  color:#94a3b8;
  font-size:0.8rem;
  background:#f8fafc;
}

/* Sticky */
.m2-sticky-bar{
  position:fixed;bottom:0;left:0;right:0;
  z-index:999;
  padding:0.8rem 1rem;
  background:rgba(248,250,252,0.95);
  backdrop-filter:blur(10px);
  border-top:1px solid #d1dde9;
}
.m2-sticky-link{
  display:block;
  text-align:center;
  background:#0a4c8a;
  color:#fff;
  padding:0.9rem;
  border-radius:10px;
  text-decoration:none;
  font-weight:700;
  font-size:1rem;
  max-width:500px;
  margin:0 auto;
}

@media(max-width:768px){
  .m2-anchor-grid{grid-template-columns:1fr}
  .m2-tide-row{grid-template-columns:50px 80px 1fr;gap:0.6rem}
  .m2-panel-body{padding:0 1rem 3rem}
}
