@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@300;400;500;600;700&display=swap');

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

html, body {
  height: 100%;
  font-family: "Work Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #e9f2f9; 
  color: #1e2a33;        
  line-height: 1.7;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* =============================
   Container Style
============================= */
.container {
  width: 60%;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  background: #f8fbff; 
  border-radius: 12px;
  box-shadow: 0 4px 25px rgba(30, 42, 51, 0.1);
  border: 1px solid rgba(200, 220, 240, 0.6);
}

.container:hover {
  box-shadow: 0 8px 30px rgba(30, 42, 51, 0.15);
  transition: box-shadow 0.3s ease;
}

/* =============================
   Responsive Design: Mobile Fix
============================= */
@media (max-width: 768px) {
  .container {
    width: 100%;
    max-width: 100%;
    padding: 1.5rem 1rem 3rem;
  }

  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.2rem; }

  .zoomable.active {
    transform: none !important;
  }
}

/* =============================
   Typography
============================= */
h1 {
  font-size: 2.4rem;
  font-weight: 700;
  color: #0d47a1;
  text-align: center;
  margin-bottom: 3rem;
}

h2 {
  font-size: 1.6rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #0d47a1;
}

h3 {
  font-size: 1.3rem;
  font-weight: 400;
  margin: 2rem 0 1rem;
  color: #1e2a33;
}

p, li {
  font-size: 1.05rem;
  color: #1e2a33;
  margin-bottom: 1rem;
  font-weight: 400;
}

ul, ol {
  margin-left: 1.5rem;
  margin-bottom: 1.5rem;
}

/* =============================
   Media Elements
============================= */
img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5rem auto;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

iframe {
  display: block;
  max-width: 100%;
  margin: 1.5rem auto;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* 확대 가능한 이미지 */
.zoomable {
  transition: transform 0.3s ease;
  cursor: zoom-in;
}

/* 확대 활성화 */
.zoomable.active {
  transform: scale(2);
  cursor: zoom-out;
  z-index: 1000;
  position: relative;
}

audio, video {
  display: block;
  margin: 1.5rem auto;
  width: 100%;
  max-width: 700px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

/* =============================
   Links
============================= */
a {
  color: #2f6bcb; 
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #5fa8ff; 
  text-decoration: underline;
}

/* =============================
   Divider & Footer
============================= */
hr {
  margin: 2rem 0;
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

footer {
  text-align: center;
  font-size: 0.9rem;
  color: #c0cae0;
  margin-top: 3rem;
}

/* =============================
   Navigation (for sections)
============================= */
.nav {
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
}

.nav a {
  padding: 0.6rem 1.2rem;
  background: white; 
  color: black;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.25s ease, transform 0.1s ease;
}

.nav a:hover {
  transform: translateY(-2px);
}

button {
  background: gray;
  color: white;
  border: none;
  padding: 0.15rem 0.6rem; 
  font-size: 0.8rem;      
  border-radius: 4px;     
  transition: 0.2s ease;
}

button:hover {
  background: #2266d6;
}

/* =============================
   Responsive Design
============================= */
@media (max-width: 768px) {
  .container {
    padding: 2rem 1.2rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  p, li {
    font-size: 1rem;
  }
}