:root {
  --green: #04aa6d;
  --green-dark: #038957;
  --ink: #1f2937;
  --muted: #64748b;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f3f7f5;
  --yellow: #fff4a3;
  --pink: #ffc0c7;
  --cream: #fff7e8;
  --blue: #d9eee1;
  --shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #f7f8fa;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
}

.site-shell {
  min-height: 100vh;
}

#footer,
#belowtopnav #footer,
.bottomad,
.w3-main .footer:not(.globaltuts-site-footer) {
  display: none !important;
}

.topbar {
  align-items: center;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 18px rgba(15, 23, 42, 0.06);
  display: flex;
  gap: 16px;
  justify-content: space-between;
  left: 0;
  height: 68px;
  min-height: 68px;
  min-width: 0;
  padding: 0 34px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 12px;
  font-weight: 800;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: var(--green);
  border-radius: 8px;
  color: #fff;
  display: inline-flex;
  font-size: 19px;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.brand-text {
  display: grid;
  font-size: 20px;
  line-height: 1.1;
  min-width: 0;
}

.brand-text span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 6px;
  min-width: 0;
}

.nav-links a {
  border-radius: 6px;
  color: #243044;
  flex: 0 0 auto;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 12px;
  text-decoration: none;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a:focus,
.nav-links a.active {
  background: var(--green);
  color: #fff;
}

.nav-scroll-shell {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: 6px;
  justify-content: flex-end;
  min-width: 0;
}

.nav-scroll-shell .nav-links {
  -ms-overflow-style: none;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.nav-scroll-shell .nav-links::-webkit-scrollbar {
  display: none;
}

.nav-slide-btn {
  align-items: center;
  background: var(--green);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: none;
  flex: 0 0 auto;
  font-size: 24px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  line-height: 1;
  width: 38px;
}

.nav-scroll-shell.has-scroll .nav-slide-btn {
  display: inline-flex;
}

.nav-slide-btn:disabled {
  cursor: default;
  opacity: 0.35;
}

.menu-toggle {
  background: var(--green);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: none;
  font-size: 24px;
  height: 42px;
  width: 46px;
}

.hero {
  background:
    linear-gradient(135deg, rgba(4, 170, 109, 0.95), rgba(10, 88, 66, 0.92)),
    url("../img/code.png") center/cover;
  color: #fff;
  padding: 92px 28px 86px;
}

.hero-inner {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  margin: 0 auto;
  max-width: 1180px;
}

.eyebrow {
  color: var(--yellow);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.02;
  margin: 10px 0 18px;
  max-width: 760px;
}

.hero p {
  color: #edfdf6;
  font-size: 20px;
  max-width: 680px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.tutorial-search {
  margin-top: 26px;
  max-width: 620px;
  position: relative;
}

.tutorial-search label {
  color: var(--yellow);
  display: block;
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.tutorial-search-row {
  background: #fff;
  border-radius: 25px;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.18);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  overflow: hidden;
}

.tutorial-search input {
  border: 0;
  border-bottom-left-radius: 25px;
  border-top-left-radius: 25px;
  color: var(--ink);
  font-size: 17px;
  min-height: 50px;
  outline: 0;
  padding: 0 20px;
  width: 100%;
}

.tutorial-search button {
  background: var(--green);
  border: 0;
  color: #fff;
  cursor: pointer;
  font-size: 20px;
  font-weight: 800;
  min-height: 50px;
  min-width: 72px;
  padding: 0 22px;
}

.tutorial-search button:hover,
.tutorial-search button:focus {
  background: var(--green-dark);
}

.tutorial-search-status {
  color: #edfdf6 !important;
  font-size: 15px !important;
  margin: 10px 0 0 !important;
}

#listofsearchresults {
  background-color: #fff;
  border-bottom: 1px solid #282a35;
  border-left: 1px solid #282a35;
  border-right: 1px solid #282a35;
  color: #000;
  display: none;
  left: 0;
  position: absolute;
  text-align: left;
  top: 78px;
  width: 80%;
  z-index: 25;
}

#listofsearchresults a {
  background-color: #fff;
  color: #777;
  display: block;
  opacity: 0.95;
  padding: 10px 30px;
  text-decoration: none;
  width: 100%;
}

#listofsearchresults a:hover {
  color: #000;
  opacity: 1;
}

.span_search {
  background-color: #ffecee;
}

.search_active {
  background-color: #ffecee !important;
  color: #000 !important;
}

.search_active .span_search {
  background-color: #ffccd1;
}

.btn {
  border-radius: 6px;
  display: inline-flex;
  font-weight: 800;
  min-height: 46px;
  padding: 12px 18px;
  text-decoration: none;
}

.btn-primary {
  background: #fff;
  color: var(--green-dark);
}

.btn-secondary {
  background: #111827;
  color: #fff;
}

.try-panel {
  background: #18202d;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.try-header {
  align-items: center;
  background: #111827;
  display: flex;
  gap: 8px;
  padding: 14px 16px;
}

.dot {
  border-radius: 50%;
  height: 11px;
  width: 11px;
}

.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }

.try-panel pre {
  color: #d9f99d;
  font-size: 15px;
  margin: 0;
  overflow: auto;
  padding: 20px;
}

.section {
  margin: 0 auto;
  max-width: 1180px;
  padding: 64px 28px;
}

.section-title {
  align-items: end;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.section-title h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
  margin: 0;
}

.section-title p {
  color: var(--muted);
  margin: 8px 0 0;
  max-width: 620px;
}

.course-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.course-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  display: grid;
  gap: 14px;
  min-height: 205px;
  padding: 22px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.course-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.course-card h3 {
  font-size: 26px;
  margin: 0;
}

.course-card p {
  color: #334155;
  margin: 0;
}

.course-card span {
  align-self: end;
  color: var(--green-dark);
  font-weight: 800;
}

.tone-green { background: #d9eee1; }
.tone-yellow { background: #fff4a3; }
.tone-pink { background: #ffc0c7; }
.tone-cream { background: #f3ecea; }
.tone-blue { background: #dcecff; }
.tone-dark { background: #1f2937; color: #fff; }
.tone-dark p, .tone-dark span { color: #e5e7eb; }

.learn-band {
  background: #282a35;
  color: #fff;
}

.learn-band .section-title p {
  color: #d1d5db;
}

.path-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.path-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 24px;
}

.path-card h3 {
  margin-top: 0;
}

.path-card ul {
  margin-bottom: 0;
  padding-left: 20px;
}

.updates-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.update-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
}

.update-card img {
  aspect-ratio: 16 / 9;
  display: block;
  object-fit: cover;
  width: 100%;
}

.update-card div {
  padding: 18px;
}

.update-card h3 {
  margin: 0 0 8px;
}

.about-preview {
  padding-top: 32px;
}

.about-card,
.about-hero-inner {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 34px;
  grid-template-columns: 320px minmax(0, 1fr);
  overflow: hidden;
  padding: 28px;
}

.about-card {
  background: linear-gradient(135deg, #ffffff 0%, #eefaf4 100%);
}

.about-photo-wrap {
  background: #d9eee1;
  border: 1px solid #b7ead2;
  border-radius: 8px;
  padding: 12px;
}

.about-photo-wrap.large {
  max-width: 360px;
}

.about-photo {
  aspect-ratio: 4 / 5;
  border-radius: 7px;
  display: block;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.about-copy h2,
.about-hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  margin: 8px 0 14px;
}

.about-copy p,
.about-lead,
.story-card p {
  color: #334155;
  font-size: 18px;
}

.about-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}

.about-facts span {
  background: #eefaf4;
  border: 1px solid #b7ead2;
  border-radius: 999px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 800;
  padding: 8px 12px;
}

.about-hero {
  background:
    linear-gradient(135deg, rgba(4, 170, 109, 0.94), rgba(17, 24, 39, 0.92)),
    url("../img/code.png") center/cover;
  padding: 72px 28px;
}

.about-hero-inner {
  margin: 0 auto;
  max-width: 1080px;
}

.about-story-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  padding: 24px;
}

.story-card.accent {
  border-left-color: #282a35;
}

.story-card h2 {
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 12px;
}

.contact-hero .about-hero-inner {
  background: linear-gradient(135deg, #ffffff 0%, #eefaf4 100%);
}

.contact-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
}

.contact-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  padding: 24px;
}

.contact-card.primary-contact {
  border-left-color: #282a35;
}

.contact-card h2 {
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 12px;
}

.contact-card p {
  color: #334155;
  font-size: 18px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.contact-list div {
  background: #f8fafc;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  padding: 14px;
}

.contact-list span {
  color: var(--muted);
  display: block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-list strong {
  color: #111827;
  display: block;
  font-size: 18px;
  margin-top: 4px;
}

.contact-list a {
  color: var(--green-dark);
}

.contact-points {
  margin-bottom: 0;
  padding-left: 20px;
}

.contact-points li {
  margin: 10px 0;
}

.contact-note .section-title {
  margin-bottom: 0;
}

.not-found-hero {
  background:
    linear-gradient(135deg, rgba(4, 170, 109, 0.95), rgba(17, 24, 39, 0.92)),
    url("../img/code.png") center/cover;
  color: #fff;
  padding: 82px 28px;
}

.not-found-inner {
  align-items: center;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.75fr);
  margin: 0 auto;
  max-width: 1080px;
}

.not-found-inner h1 {
  font-size: clamp(42px, 7vw, 84px);
  line-height: 1;
  margin: 10px 0 18px;
}

.not-found-inner p {
  color: #edfdf6;
  font-size: 20px;
  max-width: 660px;
}

.not-found-code {
  background: rgba(17, 24, 39, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-left: 5px solid var(--yellow);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 28px;
}

.not-found-code span {
  color: var(--yellow);
  display: block;
  font-size: clamp(70px, 12vw, 130px);
  font-weight: 900;
  line-height: 0.9;
}

.not-found-code strong {
  display: block;
  font-size: 28px;
  margin-top: 14px;
}

.legal-hero {
  background:
    linear-gradient(135deg, rgba(4, 170, 109, 0.95), rgba(17, 24, 39, 0.92)),
    url("../img/code.png") center/cover;
  color: #fff;
  padding: 72px 28px;
}

.legal-hero-inner {
  margin: 0 auto;
  max-width: 980px;
}

.legal-hero h1 {
  font-size: clamp(38px, 6vw, 70px);
  line-height: 1.05;
  margin: 10px 0 16px;
}

.legal-hero p {
  color: #edfdf6;
  font-size: 20px;
  max-width: 760px;
}

.legal-updated {
  color: #d9f99d !important;
  font-size: 15px !important;
  font-weight: 800;
  margin-top: 18px;
}

.legal-section {
  display: grid;
  gap: 18px;
}

.legal-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--green);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  padding: 24px;
}

.legal-card:nth-child(even) {
  border-left-color: #282a35;
}

.legal-card h2 {
  font-size: 28px;
  line-height: 1.15;
  margin: 0 0 12px;
}

.legal-card p {
  color: #334155;
  font-size: 18px;
}

.reference-card {
  background: #f8fafc;
}

.reference-card ul {
  display: grid;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.reference-card li {
  background: #fff;
  border: 1px solid #d7dee8;
  border-radius: 8px;
  padding: 12px 14px;
}

.legal-card a,
.footer a {
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.footer {
  background: #111827;
  color: #cbd5e1;
  padding: 34px 28px;
  text-align: center;
}

.home-footer {
  background: #111827;
  box-sizing: border-box;
  color: #f8fafc;
  display: block !important;
  padding: 40px 0 28px;
  text-align: left;
  width: 100%;
}

.simple-footer-top {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
  justify-content: space-between;
}

.simple-footer-brand p {
  color: #9ca3af;
  font-size: 14px;
  line-height: 1.6;
  margin: 8px 0 0;
  max-width: 360px;
}

.simple-footer-logo {
  color: #ffffff;
  display: inline-block;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-decoration: none;
}

.simple-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  justify-content: flex-end;
}

.simple-footer-links a {
  color: #d1d5db;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.simple-footer-links a:hover,
.simple-footer-links a:focus {
  color: #ffffff;
}

.simple-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #9ca3af;
  font-size: 13px;
  margin-top: 24px;
  padding-top: 16px;
  text-align: center;
}

.simple-footer-inner {
  margin: 0 auto;
  max-width: 1180px;
  padding-left: 24px;
  padding-right: 24px;
}

.home-footer-inner {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(300px, 0.85fr) minmax(360px, 1.15fr);
  margin: 0 auto;
  max-width: 1180px;
}

.footer-main-card,
.footer-pages-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.22);
  padding: 28px;
}

.footer-main-card {
  display: grid;
  gap: 28px;
}

.footer-logo {
  align-items: center;
  color: #ffffff;
  display: inline-flex;
  gap: 14px;
  line-height: 1.05;
  margin-bottom: 18px;
  text-decoration: none;
}

.footer-logo span {
  align-items: center;
  background: var(--green);
  border-radius: 8px;
  color: #ffffff;
  display: inline-flex;
  font-size: 30px;
  font-weight: 900;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.footer-logo strong {
  font-size: 28px;
  font-weight: 900;
}

.footer-brand-block p {
  color: #d1d5db;
  font-size: 17px;
  line-height: 1.9;
  margin: 0;
  max-width: 560px;
}

.footer-owner {
  background: rgba(4, 170, 109, 0.12);
  border: 1px solid rgba(4, 170, 109, 0.28);
  border-radius: 8px;
  margin-top: 18px;
  padding: 12px 14px;
}

.footer-owner span {
  color: #9ca3af;
  display: block;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-owner strong {
  color: #ffffff;
  font-size: 18px;
}

.footer-contact-block a {
  color: #7ee2b8;
  font-weight: 800;
  text-decoration: none;
}

.footer-contact-block h2,
.footer-pages-card h2 {
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  margin: 0 0 18px;
}

.footer-contact-block ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-contact-block li {
  display: grid;
  gap: 4px;
  margin-bottom: 14px;
  padding-left: 0;
}

.footer-contact-block span {
  color: #9ca3af;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.footer-contact-block strong {
  color: #e5e7eb;
  font-size: 17px;
  font-weight: 600;
}

.footer-page-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.footer-page-link {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #d1d5db;
  min-height: 132px;
  padding: 18px;
  text-decoration: none;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.footer-page-link span {
  color: #ffffff;
  display: block;
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 8px;
}

.footer-page-link small {
  color: #aeb8c7;
  display: block;
  font-size: 14px;
  line-height: 1.55;
}

.footer-page-link:hover,
.footer-page-link:focus {
  background: rgba(4, 170, 109, 0.16);
  border-color: rgba(4, 170, 109, 0.44);
  transform: translateY(-2px);
}

.footer-contact-block a:hover {
  color: #ffffff;
}

.home-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin: 42px auto 0;
  max-width: 1180px;
  padding-top: 20px;
}

.home-footer-bottom span {
  color: #9ca3af;
  font-size: 14px;
}

.tutorial-page {
  background: #f8fafc;
}

.tutorial-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: calc(100vh - 68px);
}

.tutorial-sidebar {
  background: #ffffff;
  border-right: 1px solid var(--line);
  padding: 24px 18px;
  position: sticky;
  top: 68px;
  height: calc(100vh - 68px);
  overflow: auto;
}

.tutorial-sidebar a {
  border-radius: 6px;
  display: block;
  font-weight: 700;
  padding: 10px 12px;
  text-decoration: none;
}

.tutorial-sidebar a:hover {
  background: #e7f6ef;
  color: var(--green-dark);
}

.tutorial-content {
  margin: 0 auto;
  max-width: 920px;
  padding: 48px 28px 70px;
}

.lesson-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
  margin: 22px 0;
  padding: 24px;
}

.code-box {
  background: #1f2937;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  color: #e5e7eb;
  overflow: auto;
  padding: 18px;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pill {
  background: #e7f6ef;
  border-radius: 999px;
  color: var(--green-dark);
  font-weight: 800;
  padding: 8px 12px;
}

@media (max-width: 900px) {
  .topbar {
    padding: 0 16px;
  }

  .menu-toggle {
    display: inline-block;
  }

  .topbar {
    gap: 10px;
  }

  .nav-scroll-shell {
    flex: 0 0 auto;
    min-width: 0;
  }

  .nav-scroll-shell .nav-links {
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: none;
    display: none;
    flex-direction: column;
    left: 0;
    max-height: calc(100vh - 68px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 12px;
    position: absolute;
    right: 0;
    top: 68px;
  }

  .nav-scroll-shell .nav-links.is-open {
    box-shadow: var(--shadow);
    display: flex !important;
  }

  .nav-scroll-shell .nav-links a {
    width: 100%;
  }

  .nav-scroll-shell.has-scroll .nav-slide-btn,
  .nav-scroll-shell .nav-slide-btn {
    display: none !important;
  }

  .hero-inner,
  .about-card,
  .about-hero-inner,
  .not-found-inner,
  .tutorial-layout {
    grid-template-columns: 1fr;
  }

  .tutorial-search-row {
    grid-template-columns: 1fr;
  }

  #listofsearchresults {
    top: 128px;
    width: 100%;
  }

  .about-photo-wrap {
    max-width: 320px;
  }

  .tutorial-sidebar {
    height: auto;
    position: static;
  }

  .course-grid,
  .path-grid,
  .updates-grid,
  .about-story-grid,
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .hero {
    padding: 64px 18px;
  }

  .section {
    padding: 48px 18px;
  }

  .about-hero {
    padding: 48px 18px;
  }

  .not-found-hero {
    padding: 54px 18px;
  }

  .legal-hero {
    padding: 52px 18px;
  }

  .about-card,
  .about-hero-inner {
    padding: 18px;
  }

  .section-title {
    align-items: start;
    flex-direction: column;
  }

  .course-grid,
  .path-grid,
  .updates-grid,
  .about-story-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .home-footer {
    padding: 44px 18px 20px;
  }

  .footer-main-card,
  .footer-pages-card {
    padding: 20px;
  }

  .footer-page-grid {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .footer-logo strong {
    font-size: 25px;
  }

  .footer-contact-block h2,
  .footer-pages-card h2 {
    font-size: 25px;
  }
}

/* Tutorial pages shell (injected by globaltuts_menu.js) */
body.globaltuts-fixed-shell {
  background: #f7f8fa;
  font-family: 'Source Sans Pro', Arial, sans-serif;
}

#topnav.globaltuts-tutorial-nav {
  background: #ffffff !important;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 18px rgba(15, 23, 42, 0.06);
  height: auto !important;
  left: 0;
  position: fixed;
  right: 0;
  top: 0;
  width: 100%;
  z-index: 140;
}

.globaltuts-site-header {
  width: 100%;
}

.globaltuts-site-header .topbar {
  position: relative;
  top: auto;
}

.globaltuts-site-topbar .nav-scroll-shell {
  flex: 1 1 auto;
  justify-content: flex-end;
  min-width: 0;
}

.globaltuts-site-topbar .menu-toggle {
  flex: 0 0 auto;
}

.globaltuts-tutorial-bar {
  align-items: center;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  border-top: 1px solid #e5e7eb;
  display: flex;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
}

.globaltuts-tutorial-bar .globaltuts-menu-links {
  -ms-overflow-style: none;
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: 8px;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
}

.globaltuts-tutorial-bar .globaltuts-menu-links::-webkit-scrollbar {
  display: none;
}

.globaltuts-tutorial-bar .globaltuts-menu-links a {
  background: #ffffff;
  border: 1px solid #dbe3ea;
  border-radius: 999px;
  color: #243044 !important;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 800;
  padding: 8px 14px;
  text-decoration: none !important;
  white-space: nowrap;
}

.globaltuts-tutorial-bar .globaltuts-menu-links a:hover {
  background: rgba(108, 92, 231, 0.18) !important;
  border-color: rgba(108, 92, 231, 0.35) !important;
  color: #ffffff !important;
}

.globaltuts-tutorial-bar .globaltuts-menu-links a.globaltuts-active {
  background: linear-gradient(135deg, var(--green), #8b5cf6) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}

.globaltuts-tutorial-bar .globaltuts-slide-btn,
.globaltuts-tutorial-bar .globaltuts-left-toggle {
  align-items: center;
  background: var(--green);
  border: 0;
  border-radius: 6px;
  color: #ffffff !important;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 900;
  height: 38px;
  justify-content: center;
  min-width: 38px;
  padding: 0 12px;
}

.globaltuts-tutorial-bar .globaltuts-left-toggle,
.globaltuts-tutorial-bar .globaltuts-top-toggle {
  display: none;
}

.globaltuts-lesson-footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  box-sizing: border-box;
  display: block !important;
  margin-top: 0;
  padding: 28px 24px 22px;
  width: 100%;
}

#belowtopnav .globaltuts-lesson-footer {
  flex-shrink: unset;
  margin-top: 0;
  order: unset;
}

#belowtopnav > .globaltuts-lesson-footer,
#belowtopnav > #globaltuts-site-footer.globaltuts-lesson-footer {
  box-sizing: border-box;
  clear: both;
  display: block !important;
  float: none !important;
  margin-left: 0;
  margin-right: 0;
  margin-top: 0;
  max-width: none;
  position: static !important;
  width: 100%;
}

#belowtopnav #main > .globaltuts-lesson-footer,
#belowtopnav #main > #globaltuts-site-footer {
  display: none !important;
}

.globaltuts-lesson-footer-inner {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 18px 28px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1180px;
  padding-left: 24px;
  padding-right: 24px;
}

.globaltuts-lesson-footer-brand a {
  color: #111827;
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
}

.globaltuts-lesson-footer-brand p {
  color: #64748b;
  font-size: 14px;
  line-height: 1.55;
  margin: 4px 0 0;
  max-width: 360px;
}

.globaltuts-lesson-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.globaltuts-lesson-footer-links a {
  color: #047857;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.globaltuts-lesson-footer-links a:hover,
.globaltuts-lesson-footer-links a:focus {
  color: #04aa6d;
  text-decoration: underline;
}

.globaltuts-lesson-footer-copy {
  border-top: 1px solid #eef2f7;
  color: #94a3b8;
  font-size: 13px;
  margin: 18px auto 0;
  max-width: 1180px;
  padding-left: 24px;
  padding-right: 24px;
  padding-top: 14px;
  text-align: center;
}

@media (max-width: 900px) {
  .globaltuts-tutorial-bar {
    padding: 0 12px;
  }

  .globaltuts-tutorial-bar .globaltuts-left-toggle,
  .globaltuts-tutorial-bar .globaltuts-top-toggle {
    display: inline-flex;
  }

  .globaltuts-tutorial-bar .globaltuts-slide-btn {
    display: none !important;
  }

  .globaltuts-tutorial-bar .globaltuts-menu-links {
    background: #ffffff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: none;
    flex-direction: column;
    gap: 0;
    left: 0;
    max-height: calc(100vh - var(--globaltuts-shell-top));
    overflow-x: hidden;
    overflow-y: auto;
    padding: 10px 12px;
    position: fixed;
    right: 0;
    top: var(--globaltuts-shell-top);
    z-index: 80;
  }

  .globaltuts-tutorial-bar .globaltuts-menu-links.is-open {
    display: flex !important;
  }

  .globaltuts-tutorial-bar .globaltuts-menu-links a {
    border-radius: 6px;
    width: 100%;
  }

  #belowtopnav > .globaltuts-lesson-footer,
  #belowtopnav > #globaltuts-site-footer.globaltuts-lesson-footer {
    margin-left: 0 !important;
    max-width: none !important;
    width: 100% !important;
  }

  .globaltuts-lesson-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .globaltuts-lesson-footer-links {
    width: 100%;
  }
}

/* Shell 9 — lesson content upgrade */
body.globaltuts-fixed-shell #belowtopnav {
  padding-top: var(--globaltuts-shell-top, 120px);
}

#leftmenuinnerinner a.active,
#leftmenuinnerinner a.w3-green,
#leftmenuinner a.active {
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.42), rgba(139, 92, 246, 0.28)) !important;
  border-left: 3px solid var(--accent-2, #ff7675) !important;
  color: #ffffff !important;
  font-weight: 800;
}

.globaltuts-lesson-main {
  max-width: 980px;
  padding: 8px 28px 36px;
}

.globaltuts-lesson-panel-toggle {
  background: #ffffff;
  border: 1px solid #dbe3ea;
  border-radius: 999px;
  color: #065f46;
  cursor: pointer;
  display: none;
  font-size: 14px;
  font-weight: 800;
  margin: 0 0 12px;
  padding: 8px 14px;
}

.globaltuts-crumbs {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 14px;
}

.globaltuts-crumbs a {
  color: #047857;
  text-decoration: none;
}

.globaltuts-crumbs a:hover {
  text-decoration: underline;
}

.globaltuts-hero-card--modern {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  margin: 0 0 24px;
  padding: 24px 26px;
}

.globaltuts-hero-card--modern h1 {
  color: #0f172a;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  margin: 8px 0 4px;
}

.globaltuts-eyebrow {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0;
  text-transform: uppercase;
}

.globaltuts-lead-copy,
.globaltuts-hero-card .globaltuts-lead-copy {
  color: #334155;
  font-size: 18px;
  line-height: 1.7;
  margin: 0;
}

.globaltuts-lesson-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.04);
  margin: 0 0 18px;
  padding: 22px 24px;
}

.globaltuts-lesson-card h2 {
  border-bottom: 1px solid #eef2f7;
  color: #0f172a;
  font-size: 24px;
  margin: 0 0 14px;
  padding-bottom: 10px;
}

.globaltuts-code-example,
.globaltuts-lesson-card .w3-example.globaltuts-code-example {
  border: 1px solid #dbeafe;
  border-radius: 14px;
  margin: 18px 0;
  overflow: hidden;
}

.globaltuts-bottom-nav,
.globaltuts-hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 16px;
}

.globaltuts-bottom-nav a,
.globaltuts-hero-actions a {
  background: var(--green);
  border-radius: 8px;
  color: #ffffff !important;
  font-weight: 800;
  padding: 10px 16px;
  text-decoration: none !important;
}

.globaltuts-soft-rule {
  border: 0;
  border-top: 1px solid #eef2f7;
  margin: 18px 0;
}

.globaltuts-hidden-form {
  display: none !important;
}

@media (max-width: 900px) {
  .globaltuts-lesson-main {
    padding: 8px 16px 28px;
  }

  .globaltuts-lesson-panel-toggle {
    display: inline-flex;
  }

  .globaltuts-hero-card--modern {
    padding: 18px 16px;
  }

  .globaltuts-lesson-card {
    padding: 16px;
  }
}
