* { box-sizing: border-box; }
:root {
  --fs-base: clamp(0.95rem, 0.25vw + 0.9rem, 1.05rem);
  --fs-h1: clamp(1.45rem, 1.1vw + 1.1rem, 2.1rem);
  --fs-h2: clamp(1.2rem, 0.8vw + 0.95rem, 1.6rem);
  --fs-h3: clamp(1.05rem, 0.6vw + 0.9rem, 1.25rem);
  --fs-small: clamp(0.82rem, 0.2vw + 0.78rem, 0.92rem);
}
body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: #f5f7fb;
  color: #1c2433;
  font-size: var(--fs-base);
  line-height: 1.5;
}
.container h1 { font-size: var(--fs-h1); line-height: 1.2; }
.container h2 { font-size: var(--fs-h2); line-height: 1.25; }
.container h3 { font-size: var(--fs-h3); line-height: 1.3; }
.container p, .container li, .container label, .container td, .container th { font-size: var(--fs-base); }
.container small { font-size: var(--fs-small); }
.topbar {
  background: #0f2b46;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}
.topbar a { color: #fff; text-decoration: none; margin-right: 12px; }
.brand { font-size: 20px; font-weight: 700; }
.container { max-width: 1100px; margin: 20px auto; padding: 0 12px; }
.hero {
  background: linear-gradient(130deg, #102a43, #4f9da6);
  color: #fff;
  padding: 22px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  border: 1px solid #dbe2ef;
}
.testimonial-card {
  background: #fff;
  border-radius: 10px;
  padding: 14px;
  border: 1px solid #dbe2ef;
  display: grid;
  gap: 6px;
  width: 300px;
  min-width: 300px;
}
.card img { width: 100%; height: 180px; object-fit: cover; border-radius: 8px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.actions a, button, .button {
  background: #155e75;
  color: #fff;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  text-decoration: none;
  cursor: pointer;
}
.form-card {
  max-width: 650px;
  background: #fff;
  border: 1px solid #dbe2ef;
  border-radius: 10px;
  padding: 14px;
  display: grid;
  gap: 10px;
}
.form-inline {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 12px;
}
label { display: grid; gap: 4px; font-weight: 600; }
.muted { color: #4d5b73; }
.extra-education {
  border: 1px dashed #a9b8cf;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
  display: grid;
  gap: 8px;
  background: #fbfcff;
}
input, textarea, select {
  border: 1px solid #b7c3d7;
  border-radius: 6px;
  padding: 8px;
  min-width: 150px;
  font-size: var(--fs-base);
}
textarea { min-height: 90px; }
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid #dbe2ef;
}
th, td { border-bottom: 1px solid #dbe2ef; padding: 8px; text-align: left; }
.error {
  background: #ffe3e3;
  border: 1px solid #f08c8c;
  color: #8a1f1f;
  padding: 8px 10px;
  border-radius: 8px;
}
.success {
  background: #e6fcf5;
  border: 1px solid #63e6be;
  color: #0f5132;
  padding: 8px 10px;
  border-radius: 8px;
}
.profile-photo {
  max-width: 220px;
  border-radius: 12px;
}
.video-strip {
  display: block;
  overflow-x: hidden;
  padding-bottom: 8px;
}
.video-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: scroll-left 38s linear infinite;
}
.video-card {
  display: inline-grid;
  width: 280px;
  min-width: 280px;
  gap: 6px;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #dbe2ef;
  padding: 8px;
}
.video-card img {
  width: 100%;
  border-radius: 6px;
}
.video-desc {
  color: #3d4b63;
  line-height: 1.3;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
}
.testimonial-strip {
  display: block;
  overflow-x: hidden;
  padding-bottom: 8px;
}
.testimonial-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: testimonial-scroll-left 42s linear infinite;
}
.bottom-links {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-35%); }
}
@keyframes testimonial-scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (max-width: 720px) {
  .topbar { display: block; }
  .topbar nav { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
  .container { margin: 14px auto; }
  th, td { padding: 7px; }
  .testimonial-card { width: 260px; min-width: 260px; }
}
@media (max-width: 420px) {
  .container { padding: 0 10px; }
  .hero { padding: 16px; }
  .card, .testimonial-card { padding: 10px; }
  .topbar a { margin-right: 8px; }
}
