/* ===== Introduction to Asian Studies ===== */
/* Palette: ink, celadon, warm paper, red accent */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Serif:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --ink: #1a1a2e;
  --ink-light: #2d2d44;
  --ink-muted: #484860;
  --celadon: #6b9e8f;
  --celadon-dark: #4e7d6e;
  --celadon-light: #c5ddd5;
  --celadon-pale: #e8f2ee;
  --warm: #f7f3ec;
  --warm-dark: #e8e0d0;
  --accent: #c94c4c;
  --accent-light: #f0d4d4;
  --gold: #c9a84c;
  --gold-light: #f5ecd5;
  --text: #2a2a2a;
  --text-light: #6a6a6a;
  --white: #fff;
  --shadow-sm: 0 1px 3px rgba(26,26,46,0.06);
  --shadow-md: 0 4px 12px rgba(26,26,46,0.08);
  --shadow-lg: 0 8px 30px rgba(26,26,46,0.1);
  --radius: 10px;
  --radius-lg: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Noto Serif', Georgia, serif;
  color: var(--text);
  background: var(--warm);
  line-height: 1.75;
  font-size: 17px;
}

a { color: var(--celadon-dark); transition: color 0.2s; }
a:hover { color: var(--accent); }

/* ===== Navigation ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(26,26,46,0.97);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid var(--celadon);
}

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

nav .site-title {
  color: var(--celadon-light);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.85rem 0;
  text-decoration: none;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}
nav .site-title:hover { color: var(--white); }

nav ul { list-style: none; display: flex; gap: 0; }

nav ul li a {
  display: block;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 0.85rem 1.1rem;
  font-size: 0.86rem;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: color 0.2s, background 0.2s;
}
nav ul li a:hover,
nav ul li a.active { color: #fff; background: rgba(107,158,143,0.2); }

.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 0.85rem 0; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  nav ul { display: none; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); border-bottom: 2px solid var(--celadon); }
  nav ul.open { display: flex; }
  nav ul li a { padding: 0.75rem 2rem; border-top: 1px solid rgba(255,255,255,0.06); }
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(160deg, var(--ink) 0%, #1e2a3a 50%, var(--ink-light) 100%);
  color: #fff;
  padding: 5rem 2rem 4.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  position: relative;
  line-height: 1.2;
}

.hero .tagline {
  font-size: 1.12rem;
  color: rgba(255,255,255,0.75);
  max-width: 640px;
  margin: 0 auto 2.5rem;
  font-style: italic;
  line-height: 1.85;
  position: relative;
}

/* Hero with photo background */
.hero-image {
  background: url('https://images.unsplash.com/photo-1762860498306-63724d6ce117?w=1400&q=80&auto=format') center 30% / cover no-repeat;
  padding: 0;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(26,26,46,0.15) 0%,
    rgba(26,26,46,0.3) 40%,
    rgba(26,26,46,0.75) 80%,
    rgba(26,26,46,0.92) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 3rem 2rem 2rem;
}

.hero-content h1 {
  text-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.hero-content .tagline {
  text-shadow: 0 1px 10px rgba(0,0,0,0.3);
}

.hero-credit {
  position: relative;
  z-index: 2;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.35);
  padding: 0.5rem 2rem 1rem;
  text-align: right;
}

@media (max-width: 600px) {
  .hero-image { min-height: 320px; }
  .hero-content h1 { font-size: 1.9rem; }
}

/* ===== Page Header ===== */
.page-header {
  background: linear-gradient(160deg, var(--ink) 0%, #1e2a3a 50%, var(--ink-light) 100%);
  color: #fff;
  padding: 3rem 2rem 2.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header h1 { font-size: 2.2rem; margin-bottom: 0.4rem; }
.page-header p { color: rgba(255,255,255,0.6); font-size: 1rem; }

/* ===== Container ===== */
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
}

/* ===== Quick Links ===== */
.quick-links {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
  margin: 2.5rem 0;
}

@media (max-width: 700px) {
  .quick-links { grid-template-columns: repeat(2, 1fr); }
}

.quick-link {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.2rem 1.5rem;
  text-decoration: none;
  color: var(--ink);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quick-link::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--celadon);
  transition: height 0.25s;
}
.quick-link:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.quick-link:hover::before { height: 5px; }

.quick-link .icon-wrap {
  width: 56px;
  height: 56px;
  margin: 0 auto 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.quick-link .icon-wrap svg { width: 100%; height: 100%; }

.quick-link .label {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}
.quick-link .desc {
  font-size: 0.8rem;
  color: var(--text-light);
  margin-top: 0.25rem;
  font-family: 'Inter', sans-serif;
}

/* ===== Section Card ===== */
.section-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  margin-bottom: 1.8rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--celadon);
}
.section-card h2 {
  font-size: 1.35rem;
  color: var(--ink);
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--warm-dark);
}
.section-card h3 { font-size: 1.05rem; color: var(--celadon-dark); margin: 1.2rem 0 0.4rem; }
.section-card p { margin-bottom: 0.7rem; }
.section-card ul, .section-card ol { margin: 0.5rem 0 1rem 1.5rem; }
.section-card li { margin-bottom: 0.35rem; }

/* ===== Objectives ===== */
.objectives-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 0.8rem;
}

.obj-item {
  padding: 1rem 1.2rem;
  background: var(--celadon-pale);
  border-radius: 8px;
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  padding-left: 3rem;
}

.obj-item .obj-num {
  position: absolute;
  left: 0.9rem;
  top: 0.9rem;
  width: 1.6rem;
  height: 1.6rem;
  background: var(--celadon);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
}

/* ===== Visual Banner ===== */
.visual-banner {
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
  position: relative;
}

.visual-banner svg { display: block; width: 100%; height: auto; }

/* ===== Schedule ===== */
.week-header {
  background: var(--celadon);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius) var(--radius) 0 0;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  margin-top: 2rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.week-header .week-icon {
  width: 22px;
  height: 22px;
  opacity: 0.85;
}

.day-card {
  background: var(--white);
  padding: 1.4rem 1.8rem;
  border-left: 4px solid var(--celadon-light);
  margin-bottom: 1px;
  box-shadow: var(--shadow-sm);
  transition: border-left-color 0.2s;
}
.day-card:hover { border-left-color: var(--celadon); }
.day-card:last-of-type { border-radius: 0 0 var(--radius) var(--radius); margin-bottom: 0; }

.day-card .day-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: var(--ink);
  font-size: 0.98rem;
}
.day-card .day-topic {
  color: var(--celadon-dark);
  font-style: italic;
  font-size: 0.94rem;
  margin-bottom: 0.6rem;
}
.day-card .time-block { margin-bottom: 0.5rem; }
.day-card .time-label {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.day-card ul { margin: 0.3rem 0 0 1.3rem; font-size: 0.93rem; }
.day-card li { margin-bottom: 0.25rem; }
.day-card a { color: var(--celadon-dark); }

.wellness-day {
  border-left-color: var(--accent-light);
  background: linear-gradient(135deg, #fff 80%, #fef0f0);
}
.wellness-day .day-title { color: var(--accent); }

.field-trip-day {
  border-left-color: var(--gold);
  background: linear-gradient(135deg, #fff 80%, var(--gold-light));
}

/* ===== Assignment Cards ===== */
.assignment-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--celadon);
}
.assignment-card h2 { font-size: 1.25rem; color: var(--ink); margin-bottom: 0.3rem; }

.weight {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--celadon-dark);
  margin-bottom: 0.8rem;
  display: inline-block;
  background: var(--celadon-pale);
  padding: 0.15rem 0.7rem;
  border-radius: 20px;
}

.assignment-card p { margin-bottom: 0.7rem; }
.assignment-card ul { margin: 0.5rem 0 0.8rem 1.5rem; }
.assignment-card li { margin-bottom: 0.3rem; }
.assignment-card h3 { font-size: 1.05rem; color: var(--celadon-dark); margin: 1.2rem 0 0.4rem; }

/* ===== Grade Table ===== */
.grade-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
}
.grade-table th { background: var(--celadon); color: #fff; padding: 0.55rem 1rem; text-align: left; font-weight: 600; }
.grade-table td { padding: 0.5rem 1rem; border-bottom: 1px solid var(--warm-dark); }
.grade-table tr:nth-child(even) td { background: var(--celadon-pale); }

/* ===== Readings ===== */
.reading-item {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--warm-dark);
  font-size: 0.94rem;
}
.reading-item:last-child { border-bottom: none; }

.reading-type {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.1rem 0.5rem;
  border-radius: 3px;
  margin-right: 0.5rem;
  display: inline-block;
}
.type-book { background: #e8d5f5; color: #6b3fa0; }
.type-article { background: #d5e8f0; color: #2a6496; }
.type-film { background: #f5e8d5; color: #96642a; }
.type-web { background: #d5f0e8; color: #2a9664; }

/* ===== Policy ===== */
.policy-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.policy-section h2 {
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 0.8rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--celadon-light);
}
.policy-section h3 { font-size: 1.05rem; color: var(--celadon-dark); margin: 1rem 0 0.4rem; }
.policy-section p { margin-bottom: 0.7rem; }

.highlight-box {
  background: var(--celadon-pale);
  border-radius: 8px;
  padding: 1rem 1.3rem;
  margin: 1rem 0;
  border-left: 4px solid var(--celadon);
  font-size: 0.95rem;
}

/* ===== Interactive Map ===== */
.map-section {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}

.map-section h2 {
  text-align: center;
  margin-bottom: 0.4rem;
  font-size: 1.4rem;
  color: var(--ink);
}

.map-section .map-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.map-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.map-container svg {
  width: 100%;
  height: auto;
}

.map-region {
  cursor: pointer;
  transition: opacity 0.3s, filter 0.3s;
  opacity: 0.85;
}
.map-region:hover { opacity: 1; filter: brightness(1.08); }

.map-tooltip {
  display: none;
  position: absolute;
  background: var(--ink);
  color: #fff;
  padding: 1rem 1.3rem;
  border-radius: 10px;
  max-width: 300px;
  font-size: 0.88rem;
  line-height: 1.6;
  font-family: 'Inter', sans-serif;
  box-shadow: var(--shadow-lg);
  z-index: 10;
  pointer-events: none;
}

.map-tooltip.active { display: block; }

.map-tooltip h4 {
  color: var(--celadon-light);
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
}

.map-tooltip .topics {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  justify-content: center;
  margin-top: 1.2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-light);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

/* ===== Footer ===== */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.45);
  text-align: center;
  padding: 2rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
}
footer a { color: var(--celadon-light); text-decoration: none; }
footer a:hover { color: #fff; }

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .hero { padding: 3rem 1.5rem 2.5rem; }
  .hero h1 { font-size: 1.9rem; }
  .container { padding: 1.5rem 1rem 3rem; }
  .section-card, .assignment-card, .policy-section { padding: 1.3rem; }
  .day-card { padding: 1rem 1.2rem; }
  .objectives-grid { grid-template-columns: 1fr; }
}
