/* PhysicsPrep / Physics through Problem Solving - shared site styles */

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Trebuchet MS', Verdana, sans-serif;
  color: #1c2733;
  background: #eef1f5;
  line-height: 1.55;
}

a { color: #d9762b; }
a:hover { color: #a85a1e; }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 20px; }

/* ---------- Header / Nav ---------- */
header.site-header {
  background: #ffffff;
  border-bottom: 3px solid #d9762b;
  padding: 34px 20px 26px;
  text-align: center;
}
header.site-header h1.brand-title {
  margin: 0 0 6px;
  font-size: 34px;
  font-weight: 800;
  color: #12314f;
  letter-spacing: -0.5px;
}
header.site-header p.brand-tagline {
  margin: 0 0 22px;
  font-size: 15px;
  color: #4a5a6a;
  font-weight: 600;
}
nav.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
nav.main-nav a {
  color: #12314f;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  padding: 9px 16px;
  border-radius: 18px;
}
nav.main-nav a:hover, nav.main-nav a.active {
  background: #12314f;
  color: #fff;
}
nav.main-nav a.cta {
  background: #d9762b;
  color: #fff;
}
nav.main-nav a.cta:hover {
  background: #a85a1e;
}

/* ---------- Hero ---------- */
.hero {
  background: #ffffff;
  border-bottom: 4px solid #d9762b;
  padding: 40px 0;
}
.hero h1 {
  font-size: 30px;
  color: #12314f;
  margin: 0 0 10px;
}
.hero p.lead {
  font-size: 16px;
  color: #4a5a6a;
  max-width: 640px;
  margin: 0 0 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: #12314f;
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
  padding: 11px 22px;
  border-radius: 22px;
  margin: 4px 8px 4px 0;
}
.btn:hover { background: #0c2338; color: #fff; }
.btn.orange { background: #d9762b; }
.btn.orange:hover { background: #a85a1e; }

/* ---------- Sections ---------- */
main { padding: 34px 0 60px; }
section { margin-bottom: 40px; }
h2 {
  color: #12314f;
  font-size: 23px;
  border-bottom: 3px solid #d9762b;
  padding-bottom: 8px;
  margin-bottom: 18px;
}
h3 {
  color: #2e5395;
  font-size: 17px;
  margin: 22px 0 8px;
}

.card {
  background: #fff;
  border: 2px solid #12314f;
  border-radius: 8px;
  padding: 20px 22px;
  margin-bottom: 18px;
}

.info-box {
  background: #ffe9a8;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 18px;
}

.badge {
  display: inline-block;
  background: #d9762b;
  color: #fff;
  font-size: 11px;
  font-weight: bold;
  padding: 3px 10px;
  border-radius: 10px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ---------- Why Physics entries ---------- */
.why-entry {
  background: #fff;
  border: 2px solid #12314f;
  border-radius: 8px;
  padding: 18px;
  margin-bottom: 22px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  align-items: center;
}
.why-entry img { width: 280px; max-width: 100%; border-radius: 6px; flex-shrink: 0; }
.why-entry .why-text { flex: 1; min-width: 240px; }
.why-entry h3 { margin-top: 0; }
.why-entry .try-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: bold;
  color: #d9762b;
  text-decoration: none;
}
.why-entry .try-link:hover { text-decoration: underline; }

/* ---------- Topics / animation list ---------- */
.topic-card {
  background: #fff;
  border: 2px solid #12314f;
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 18px;
}
.topic-card h3 { margin-top: 0; }
.topic-card .misconception {
  background: #fce4e4;
  border-radius: 6px;
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 13.5px;
}
.topic-card .misconception b { color: #a30000; }

.course-card { display:flex; gap:20px; align-items:flex-start; flex-wrap:wrap; }
.course-card .course-icon { width:130px; height:105px; flex-shrink:0; }
.course-card .course-body { flex:1; min-width:220px; }

/* ---------- Bio / about ---------- */
.bio {
  display: flex;
  gap: 26px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.bio img.portrait {
  width: 220px;
  height: 220px;
  object-fit: cover;
  border-radius: 10px;
  border: 4px solid #d9762b;
  flex-shrink: 0;
}
.bio .bio-text { flex: 1; min-width: 260px; }

/* ---------- Forms ---------- */
.form-embed {
  border: 2px solid #12314f;
  border-radius: 8px;
  overflow: hidden;
  min-height: 600px;
}
.form-embed iframe { width: 100%; height: 900px; border: none; display: block; }

/* ---------- Footer ---------- */
footer.site-footer {
  background: #12314f;
  color: #cfe0f0;
  padding: 30px 0;
  font-size: 13px;
  text-align: center;
}
footer.site-footer a { color: #ffe9a8; }
footer.site-footer img.footer-icon { height: 34px; margin-bottom: 10px; }
footer.site-footer .footer-name { font-weight: bold; color: #fff; font-size: 15px; }
footer.site-footer .footer-tagline { font-size: 11.5px; color: #9fb6cc; margin-bottom: 10px; }

/* ---------- Utility ---------- */
ul.bullet-list { padding-left: 20px; }
ul.bullet-list li { margin-bottom: 6px; }
.small-note { font-size: 12.5px; color: #4a5a6a; background: #fff; border-left: 4px solid #d9762b; padding: 8px 14px; border-radius: 4px; }
