/* Teaching on the Download — Google Sites-inspired stylesheet */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&family=Roboto:wght@300;400;500&display=swap');

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

:root {
  --header-bg: #202124;
  --header-text: #ffffff;
  --nav-hover: rgba(255,255,255,0.12);
  --accent: #1a73e8;
  --accent-dark: #1557b0;
  --body-bg: #ffffff;
  --text: #202124;
  --text-muted: #5f6368;
  --border: #dadce0;
  --card-shadow: 0 1px 3px rgba(60,64,67,.15), 0 1px 2px rgba(60,64,67,.1);
  --card-hover: 0 4px 8px rgba(60,64,67,.2), 0 2px 4px rgba(60,64,67,.15);
  --radius: 8px;
  --content-width: 1100px;
  --font: 'Roboto', 'Google Sans', Arial, sans-serif;
}

body {
  font-family: var(--font);
  background: var(--body-bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

/* ── HEADER / NAV ── */
.gs-header {
  background: var(--header-bg);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.gs-header-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; align-items: center;
  padding: 0 16px; height: 64px; gap: 8px;
}
.gs-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; flex-shrink: 0;
  margin-right: 8px;
}
.gs-logo img {
  height: 40px; width: 40px;
  border-radius: 50%; object-fit: cover;
}
.gs-logo-text {
  color: white; font-size: 18px;
  font-family: 'Google Sans', var(--font);
  font-weight: 400; white-space: nowrap;
}
.gs-nav { display: flex; align-items: stretch; height: 64px; }
.gs-nav a {
  display: flex; align-items: center;
  color: rgba(255,255,255,0.87);
  text-decoration: none;
  padding: 0 16px;
  font-size: 14px; font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s;
  position: relative;
}
.gs-nav a:hover { background: var(--nav-hover); color: white; }
.gs-nav a.active { color: white; }
.gs-nav a.active::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: white;
}
.gs-nav .gs-dropdown { position: relative; display: flex; }
.gs-nav .gs-dropdown > a::after { content: ' ▾'; font-size: 10px; margin-left: 2px; }
.gs-nav .gs-dropdown:hover > a { background: var(--nav-hover); }
.gs-dropdown-menu {
  display: none;
  position: absolute; top: 64px; left: 0;
  background: #3c4043; min-width: 200px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.3);
  border-radius: 0 0 4px 4px; z-index: 200;
}
.gs-dropdown:hover .gs-dropdown-menu { display: block; }
.gs-dropdown-menu a {
  display: block; padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
}
.gs-dropdown-menu a:last-child { border-bottom: none; }

/* ── HERO BANNER ── */
.gs-hero {
  background: #f8f9fa;
  border-bottom: 1px solid var(--border);
  padding: 48px 24px;
  text-align: center;
}
.gs-hero img {
  width: 120px; height: 120px;
  border-radius: 50%; object-fit: cover;
  margin-bottom: 16px;
  box-shadow: var(--card-shadow);
}
.gs-hero h1 {
  font-family: 'Google Sans', var(--font);
  font-size: 40px; font-weight: 400;
  color: var(--text); margin-bottom: 4px;
}
.gs-hero .tagline {
  font-size: 16px; color: var(--text-muted);
  margin-bottom: 24px;
}
.gs-hero-body {
  max-width: 600px; margin: 0 auto;
  font-size: 16px; color: var(--text);
  margin-bottom: 24px; line-height: 1.7;
}
.gs-btn {
  display: inline-block;
  background: var(--accent);
  color: white; text-decoration: none;
  padding: 10px 24px; border-radius: 4px;
  font-size: 14px; font-weight: 500;
  margin: 4px; transition: background 0.15s, box-shadow 0.15s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}
.gs-btn:hover { background: var(--accent-dark); box-shadow: 0 2px 4px rgba(0,0,0,0.3); }
.gs-btn-outline {
  background: transparent; color: var(--accent);
  border: 1px solid var(--accent);
}
.gs-btn-outline:hover { background: #e8f0fe; box-shadow: none; }

/* ── PAGE HEADER (inner pages) ── */
.gs-page-header {
  background: #f8f9fa;
  border-bottom: 1px solid var(--border);
  padding: 32px 24px;
}
.gs-page-header-inner { max-width: var(--content-width); margin: 0 auto; padding: 0 8px; }
.gs-page-header h1 {
  font-family: 'Google Sans', var(--font);
  font-size: 32px; font-weight: 400; color: var(--text);
}
.gs-breadcrumb {
  font-size: 12px; color: var(--text-muted);
  margin-bottom: 8px;
}
.gs-breadcrumb a { color: var(--accent); text-decoration: none; }
.gs-breadcrumb a:hover { text-decoration: underline; }

/* ── CONTENT ── */
.gs-content {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 32px 32px 64px;
}

/* ── ACTIVITY CARDS (image left, text right) ── */
.gs-activity {
  display: flex; gap: 24px;
  margin-bottom: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}
.gs-activity:last-child { border-bottom: none; }
.gs-activity-img {
  width: 240px; flex-shrink: 0;
  border-radius: var(--radius);
  overflow: hidden; cursor: pointer;
}
.gs-activity-img img {
  width: 100%; height: 160px;
  object-fit: cover; display: block;
  transition: opacity 0.15s;
}
.gs-activity-img:hover img { opacity: 0.9; }
.gs-activity-img-placeholder {
  width: 240px; height: 160px;
  background: #e8f0fe;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; border-radius: var(--radius); flex-shrink: 0;
}
.gs-activity-body h2 {
  font-family: 'Google Sans', var(--font);
  font-size: 20px; font-weight: 400;
  color: var(--accent); margin-bottom: 8px;
  cursor: pointer;
}
.gs-activity-body h2 a { color: inherit; text-decoration: none; }
.gs-activity-body h2 a:hover { text-decoration: underline; }
.gs-activity-body p { font-size: 14px; color: var(--text); line-height: 1.7; }

/* ── PROJECT CARDS (Writing Projects page) ── */
.gs-project {
  display: flex; gap: 24px;
  margin-bottom: 32px; padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
  text-decoration: none; color: inherit;
}
.gs-project:last-child { border-bottom: none; }
.gs-project img {
  width: 240px; height: 160px;
  object-fit: cover; border-radius: var(--radius);
  flex-shrink: 0;
}
.gs-project-placeholder {
  width: 240px; height: 160px;
  background: #e8f0fe; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; flex-shrink: 0;
}
.gs-project-body { display: flex; flex-direction: column; justify-content: center; }
.gs-project-tag {
  display: inline-block; font-size: 11px; font-weight: 500;
  color: var(--accent); text-transform: uppercase;
  letter-spacing: 0.08em; margin-bottom: 6px;
}
.gs-project-body h2 {
  font-family: 'Google Sans', var(--font);
  font-size: 20px; font-weight: 400;
  color: var(--accent); margin-bottom: 8px;
}
.gs-project:hover .gs-project-body h2 { text-decoration: underline; }
.gs-project-body p { font-size: 14px; color: var(--text); line-height: 1.7; }

/* ── SECTION HEADING ── */
.gs-section-heading {
  font-family: 'Google Sans', var(--font);
  font-size: 22px; font-weight: 400;
  color: var(--text);
  margin: 32px 0 8px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.gs-section-heading:first-child { margin-top: 0; }

/* ── ELA card grid ── */
.gs-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.gs-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: var(--card-shadow); transition: box-shadow 0.15s;
  display: flex; flex-direction: column;
}
.gs-card:hover { box-shadow: var(--card-hover); }
.gs-card img { width: 100%; height: 160px; object-fit: cover; }
.gs-card-placeholder { width: 100%; height: 160px; background: #e8f0fe; display: flex; align-items: center; justify-content: center; font-size: 48px; }
.gs-card-body { padding: 16px; flex: 1; }
.gs-card-body h3 { font-family: 'Google Sans', var(--font); font-size: 16px; font-weight: 400; color: var(--accent); margin-bottom: 4px; }
.gs-card-body p { font-size: 13px; color: var(--text-muted); }

/* ── ABOUT ── */
.gs-about { display: flex; gap: 40px; align-items: flex-start; }
.gs-about img { width: 220px; border-radius: var(--radius); box-shadow: var(--card-shadow); flex-shrink: 0; }
.gs-about-body h1 { font-family: 'Google Sans', var(--font); font-size: 28px; font-weight: 400; margin-bottom: 12px; }
.gs-about-body p { font-size: 15px; line-height: 1.75; color: var(--text); margin-bottom: 12px; }
.gs-about-body h3 { font-size: 14px; font-weight: 500; color: var(--text-muted); margin: 20px 0 8px; text-transform: uppercase; letter-spacing: 0.06em; }
.gs-edu-list { list-style: none; }
.gs-edu-list li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.gs-edu-list li:last-child { border-bottom: none; }

/* ── TIMELINE (Historical Fiction) ── */
.gs-timeline-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; margin-top: 16px; }
.gs-timeline-card {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit;
  box-shadow: var(--card-shadow); transition: box-shadow 0.15s;
}
.gs-timeline-card:hover { box-shadow: var(--card-hover); }
.gs-timeline-card img { width: 100%; height: 110px; object-fit: cover; display: block; }
.gs-timeline-card-placeholder { width: 100%; height: 110px; background: #fce8e6; display: flex; align-items: center; justify-content: center; font-size: 2rem; }
.gs-timeline-card-body { padding: 10px 12px; }
.gs-timeline-year { font-weight: 500; font-size: 15px; color: var(--accent); }
.gs-timeline-name { font-size: 12px; color: var(--text-muted); }

/* ── RESOURCE LINKS (Multimedia) ── */
.gs-resource-section { margin-bottom: 28px; }
.gs-resource-section h3 { font-family: 'Google Sans', var(--font); font-size: 16px; font-weight: 500; color: var(--text); margin-bottom: 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.gs-resource-links { display: flex; flex-wrap: wrap; gap: 8px; }
.gs-resource-link { display: inline-block; padding: 6px 16px; border: 1px solid var(--accent); border-radius: 16px; color: var(--accent); text-decoration: none; font-size: 13px; font-weight: 500; transition: background 0.15s; }
.gs-resource-link:hover { background: #e8f0fe; }

/* ── ANIMAL GRID (Virtual Zoo) ── */
.gs-animal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-top: 16px; }
.gs-animal-link { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 8px; border: 1px solid var(--border); border-radius: var(--radius); text-decoration: none; color: var(--text); font-size: 13px; font-weight: 500; text-align: center; transition: box-shadow 0.15s, background 0.15s; }
.gs-animal-link:hover { box-shadow: var(--card-hover); background: #f8f9fa; }
.gs-animal-emoji { font-size: 28px; line-height: 1; }

/* ── STEPS LIST ── */
.gs-steps { list-style: none; margin-bottom: 28px; }
.gs-steps li { display: flex; gap: 16px; margin-bottom: 12px; align-items: flex-start; font-size: 14px; line-height: 1.6; }
.gs-step-num { background: var(--accent); color: white; border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 500; flex-shrink: 0; margin-top: 1px; }

/* ── FOOTER ── */
.gs-footer { background: #f8f9fa; border-top: 1px solid var(--border); padding: 16px 24px; text-align: center; font-size: 12px; color: var(--text-muted); margin-top: 40px; }
.gs-footer a { color: var(--accent); text-decoration: none; }

@media (max-width: 768px) {
  .gs-activity, .gs-project, .gs-about { flex-direction: column; }
  .gs-activity-img, .gs-activity-img-placeholder, .gs-project img, .gs-project-placeholder, .gs-about img { width: 100%; }
  .gs-card-grid { grid-template-columns: 1fr; }
  .gs-nav { display: none; }
  .gs-hero h1 { font-size: 28px; }
}

/* ── RESPONSIVE IMPROVEMENTS ── */
@media (min-width: 769px) and (max-width: 1024px) {
  .gs-project-card-img, .project-card-img { width: 180px; }
}
@media (max-width: 900px) {
  .gs-card-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .gs-header-inner { padding: 0 12px; }
  .gs-content { padding: 24px 16px 48px; }
  .gs-page-header { padding: 24px 16px; }
  .gs-activity { flex-direction: column; }
  .gs-activity-img, .gs-activity-img-placeholder { width: 100%; }
  .gs-timeline-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
  .gs-animal-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
}
