/* =====================================================
   TechConnect Learning Hub - Refactored style.css
   Cleaned from the existing stylesheet.
   Purpose: single replacement file for homepage, resource pages, team, blog, partners and responsive layout.
===================================================== */

:root {
  --primary: #1557d6;
  --primary-dark: #0f3f9f;
  --primary-soft: #eef5ff;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --soft-bg: #f8fbff;
  --radius: 18px;
  --shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus,
.skip-link:active {
  position: static;
  left: 0;
  top: 0;
  width: auto;
  height: auto;
  padding: 12px 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  z-index: 9999;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 70%, black 30%);
  outline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  box-shadow: 0 0 0 4px rgba(21,87,214,0.12);
  border-radius: 8px;
}

a {
  text-decoration: none;
  color: var(--primary);
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  height: 72px;
  overflow: visible;
}

.nav {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 200px;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 12px;
  background: white;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-title {
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
}

.tech-dark {
  color: #0f172a;
}

.tech-blue {
  color: #1557d6;
}

.brand-subtitle {
  margin-top: 5px;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f97316;
  line-height: 1;
  text-align: center;
}

nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-weight: 750;
  color: var(--ink);
  font-size: 0.94rem;
}

nav a {
  padding: 4px 0;
  border-bottom: 2px solid transparent;
}

nav a:hover, nav a.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.nav-dropdown-trigger {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
  font-weight: 750;
  cursor: pointer;
}

.nav-dropdown-trigger:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 260px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
  padding: 10px;
  display: none;
  flex-direction: column;
  z-index: 9999;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border-bottom: none;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}

.nav-dropdown-menu a:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-bottom: none;
}

.header-cta, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  font-weight: 850;
  border: 1px solid transparent;
  transition: 0.2s ease;
  white-space: nowrap;
}

.header-cta, .btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 12px 28px rgba(21,87,214,0.22);
}

.btn-secondary {
  background: white;
  color: var(--primary);
  border-color: rgba(21,87,214,0.28);
}

.btn:hover {
  transform: translateY(-2px);
}

.hero {
  background: #f8fbff;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  position: relative;
  padding: 0;
}

.hero::before {
  display: none;
}

.hero::after {
  display: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  min-height: auto;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 32px;
  padding: 56px 0;
}

.hero-copy {
  max-width: 100%;
  padding: 0;
}

.eyebrow {
  width: fit-content;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(238,245,255,0.95);
  color: var(--primary-dark);
  border: 1px solid rgba(21,87,214,0.15);
  font-size: 0.86rem;
  font-weight: 850;
  margin-bottom: 16px;
}

h1 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.055em;
  margin-bottom: 20px;
  color: var(--ink);
  max-width: 100%;
}

.blue {
  color: var(--primary);
}

.hero-copy p {
  color: var(--text);
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  max-width: 85%;
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 100%;
  width: 100%;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--line);
}

.point {
  padding: 20px 0;
  background: transparent;
  border: none;
  box-shadow: none;
  border-bottom: none;
}

.point:last-child {
  border-bottom: none;
  padding-bottom: 20px;
}

.point strong {
  display: block;
  font-size: 1rem;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 6px;
}

.point span {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

section {
  padding: 64px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 50px;
}

.kicker {
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 900;
  font-size: 0.82rem;
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
  color: var(--ink);
  margin-bottom: 16px;
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.area-card {
  min-height: 160px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 100%);
  box-shadow: 0 4px 16px rgba(15,23,42,0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  cursor: pointer;
}

.area-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(21,87,214,0.15);
  border-color: var(--primary);
}

.area-card span {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.area-card strong {
  display: block;
  font-size: 1rem;
  color: var(--ink);
  font-weight: 700;
  margin-bottom: 6px;
}

.cloud-card {
  position: relative;
  height: auto;
  min-height: unset;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: white;
  box-shadow: 0 4px 16px rgba(15,23,42,0.08);
  display: block;
  transition: all 0.3s ease;
}

.cloud-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(21,87,214,0.15);
  border-color: var(--primary);
}

.cloud-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.cloud-card span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--primary-dark);
  font-weight: 850;
  font-size: 0.9rem;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.areas-layout {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.areas {
  background: white;
  padding: 48px 0;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.arrow-process {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 28px 0 8px;
}

.flip-card {
  perspective: 1200px;
  height: 210px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card:hover .flip-card-inner,
.flip-card:focus-within .flip-card-inner {
  transform: rotateY(180deg);
}

.flip-card-face,
.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 20px;
  border: 1.5px solid var(--line);
}

.flip-card-front {
  background: #ffffff;
}

.flip-card-front .icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(21, 87, 214, 0.07);
  font-size: 1.7rem;
  margin-bottom: 16px;
}

.flip-card-front h3 {
  font-size: 1.05rem;
  font-weight: 850;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0;
}

.mini-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 1rem;
  color: white;
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.mini-cta:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.flip-card-back h3 {
  margin-bottom: 12px;
  font-size: 0.92rem;
  font-weight: 850;
  letter-spacing: -0.01em;
  color: white;
  margin: 0 0 12px;
}

.flip-card-back p {
  margin-bottom: 1rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.85);
  margin: 0;
}

.flip-card-back ul {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.flip-card-back li {
  font-size: 0.82rem;
  line-height: 1.5;
  color: rgba(255,255,255,0.9);
  padding: 5px 0;
  border-bottom: 1px solid rgba(255,255,255,0.18);
}

.flip-card-back li:last-child {
  border-bottom: none;
}

.arrow-step-blue  .flip-card-front {
  border-top: 4px solid #1557d6;
}

.arrow-step-orange .flip-card-front {
  border-top: 4px solid #f97316;
}

.arrow-step-purple .flip-card-front {
  border-top: 4px solid #7c3aed;
}

.arrow-step-blue  .flip-card-front h3 {
  color: #1557d6;
}

.arrow-step-orange .flip-card-front h3 {
  color: #f97316;
}

.arrow-step-purple .flip-card-front h3 {
  color: #7c3aed;
}

.arrow-step-blue  .flip-card-back {
  background: linear-gradient(145deg, #1557d6, #0f3f9f);
  border-color: #0f3f9f;
}

.arrow-step-orange .flip-card-back {
  background: linear-gradient(145deg, #f97316, #c2410c);
  border-color: #c2410c;
}

.arrow-step-purple .flip-card-back {
  background: linear-gradient(145deg, #7c3aed, #5b21b6);
  border-color: #5b21b6;
}

.arrow-step-blue  .flip-card-back h3 {
  color: #bfdbfe;
}

.arrow-step-orange .flip-card-back h3 {
  color: #fed7aa;
}

.arrow-step-purple .flip-card-back h3 {
  color: #ddd6fe;
}

.arrow-step-blue  .flip-card-back li {
  color: #dbeafe;
  border-bottom-color: rgba(255,255,255,0.15);
}

.arrow-step-orange .flip-card-back li {
  color: #ffedd5;
  border-bottom-color: rgba(255,255,255,0.15);
}

.arrow-step-purple .flip-card-back li {
  color: #ede9fe;
  border-bottom-color: rgba(255,255,255,0.15);
}

.flip-hint {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin: 4px 0 20px;
  letter-spacing: 0.02em;
}

.approach {
  background: white;
}

.approach-intro {
  display: grid;
  grid-template-columns: minmax(300px, 42%) 1fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 40px;
}

.approach-main-block {
  padding: 36px 40px;
  background: var(--primary);
  color: white;
  border-radius: var(--radius);
}

.approach-main-block h2 {
  color: white;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.approach-main-block p {
  color: #dbeafe;
  margin-top: 14px;
  font-size: 1rem;
  line-height: 1.7;
}

.approach-hint {
  font-size: 0.88rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.approach-hint::before {
  content: "↕";
  font-size: 1rem;
  color: var(--primary);
}

.approach-flip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.approach-flip-grid .step-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.approach-flip-grid .flip-card-front .icon {
  margin-bottom: 12px;
}

.foundation {
  background: var(--soft-bg);
}

.foundation-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.foundation-card, .info-card, .topic-card, .panel {
  border: 1px solid var(--line);
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(15,23,42,0.05);
}

.foundation-card {
  padding: 26px;
  min-height: 245px;
}

.icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.35rem;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.12rem;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.foundation-card p, .info-card p, .topic-card p, .panel p {
  color: var(--text);
  font-size: 0.96rem;
}

.values-grid, .audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.info-card {
  padding: 24px;
}

.topics {
  background: var(--soft-bg);
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.topic-card {
  padding: 22px;
  min-height: 150px;
  text-align: center;
}

.topic-card h3 {
  text-align: center;
  position: relative;
  padding-bottom: 14px;
  margin-bottom: 16px;
  display: inline-block;
}

.topic-card h3::after {
  content: "";
  width: 100%;
  height: 5px;
  background: var(--primary);
  display: block;
  margin-top: 12px;
  border-radius: 999px;
}

.team {
  background: white;
}

.split {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
}

.panel {
  padding: 30px;
}

.team-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.team-item {
  padding: 18px;
  border-radius: 16px;
  background: var(--primary-soft);
  border: 1px solid #dbeafe;
}

.team-item p {
  color: var(--text);
  font-size: 0.9rem;
}

.volunteer {
  background: var(--primary);
  color: white;
  border: none;
}

.volunteer p {
  color: #dbeafe;
  margin-bottom: 20px;
}

.contact {
  background: var(--soft-bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(350px, 45%) 1fr;
  gap: 22px;
  align-items: start;
}

.contact-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}

.contact-row:last-child {
  border-bottom: none;
}

.cta {
  background: var(--primary);
  color: white;
  text-align: center;
}

.cta h2 {
  color: white;
}

.cta p {
  color: #dbeafe;
  max-width: 680px;
  margin: 14px auto 26px;
}

footer {
  background: #07172f;
  color: #cbd5e1;
  padding: 30px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.92rem;
}

.partners {
  background: var(--soft-bg);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.partner-card {
  padding: 28px;
  border-radius: 24px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(15,23,42,0.05);
  text-align: center;
  transition: all 0.3s ease;
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(21,87,214,0.12);
  border-color: var(--primary);
}

.partner-card h3 {
  margin-bottom: 12px;
}

.partner-card p {
  color: var(--text);
  line-height: 1.7;
}

.main-events {
  width: 100%;
  margin-top: 20px;
}

.events-card {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  background: white;
  border: 1.5px solid var(--line);
  box-shadow: 0 6px 20px rgba(15,23,42,0.07);
  display: flex;
  flex-direction: column;
}

.events-card-header {
  padding: 14px 22px;
  background: linear-gradient(90deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.events-card-scroll span {
  color: var(--primary-dark);
  font-weight: 800;
  line-height: 1.45;
  font-size: 0.9rem;
}

@keyframes verticalEvents {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-50%); }
}

.content-section {
  margin: 28px auto;
  background: var(--soft-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-toggle {
  list-style: none;
  cursor: pointer;
  padding: 28px 0;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 1.5rem;
  font-weight: 850;
  color: var(--ink);
}

.section-toggle::-webkit-details-marker {
  display: none;
}

.toggle-icon {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 2.2rem;
  font-weight: 900;
  transition: transform 0.3s ease;
}

.content-section[open] .toggle-icon {
  transform: rotate(180deg);
}

.section-content {
  padding: 0 0 56px;
}

.contact-highlights {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.contact-highlight {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 6px 18px rgba(15,23,42,0.05);
}

.contact-highlight span {
  font-size: 1.2rem;
}

.contact-highlight p {
  margin: 0;
  font-weight: 700;
  color: var(--ink);
}

.contact-panel {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.cta-content {
  max-width: 760px;
  margin: 0 auto;
}

.mobile-menu-btn {
  display: none;
  margin-left: auto;
  margin-right: 14px;
  border: none;
  background: var(--primary);
  color: white;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 1.5rem;
  font-weight: 900;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -280px;
  width: 280px;
  height: 100vh;
  z-index: 9999;
  background: white;
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 40px rgba(15,23,42,0.16);
  padding: 72px 24px 24px;
  transition: right 0.3s ease;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu a {
  display: block;
  padding: 16px 0;
  color: var(--ink);
  font-weight: 800;
  border-bottom: 1px solid var(--line);
}

.mobile-close {
  position: absolute;
  top: 18px;
  right: 20px;
  border: none;
  background: var(--primary-soft);
  color: var(--primary);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.8rem;
  cursor: pointer;
}

@media (max-width: 1100px) {
  nav { display: none; }
  .mobile-menu-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .hero-grid { grid-template-columns: 1fr; min-height: auto; padding: 48px 0; gap: 28px; }
  .hero-copy { max-width: 100%; }
  h1 { font-size: clamp(1.7rem, 3.2vw, 2.8rem); max-width: 100%; }
  .hero-copy p { max-width: 90%; }
  .hero-image { min-height: 360px; }
  .areas-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
  .foundation-grid, .topic-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-intro, .split, .contact-grid { grid-template-columns: 1fr; }
  .arrow-process { grid-template-columns: repeat(2, 1fr); }
  .approach-flip-grid { grid-template-columns: repeat(3, 1fr); }
}

.professional-head h2 {
  margin-bottom: 12px;
  line-height: 1.15;
}

@media (min-width: 900px) { .professional-head h2 { white-space: nowrap; } }

.professional-head {
  margin-bottom: 0;
  max-width: 100%;
}

.professional-head p {
  margin-bottom: 0;
  max-width: 780px;
}

@media (max-width: 900px) {
  .foundation-grid { grid-template-columns: repeat(2, 1fr); }
  .values-grid, .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-flip-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .arrow-process { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .container { width: min(100% - 28px, 1180px); }
  .nav { height: 68px; }
  .brand-title, .brand-subtitle { display: none; }
  .brand { min-width: auto; }
  .brand img { width: 46px; height: 46px; }
  .header-cta { min-height: 40px; padding: 0 14px; font-size: 0.9rem; }
  .hero { padding: 0; }
  .hero-image { width: 100%; min-height: 260px; border-radius: 0; }
  .hero-grid { min-height: auto; padding: 36px 0 28px; gap: 20px; }
  h1 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); max-width: 100%; }
  .hero-copy p { max-width: 100%; font-size: 1rem; }
  .hero-points { grid-template-columns: 1fr; gap: 16px; }
  .point { padding: 16px 0; border-bottom: none; }
  .point:last-child { border-bottom: none; padding-bottom: 16px; }
  .hero-points, .areas-grid, .foundation-grid, .values-grid, .audience-grid, .topic-grid, .team-list { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .btn { width: 100%; }
  section { padding: 64px 0; }
  .section-head { margin-bottom: 32px; }
  .area-card { min-height: 140px; padding: 20px; }
  .arrow-process { grid-template-columns: 1fr; gap: 14px; }
  .flip-card { height: 200px; }
  .approach-flip-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .partners-grid { grid-template-columns: 1fr; }
  .arrow-process { grid-template-columns: 1fr; }
}

.mission-section {
  background: var(--soft-bg);
  padding: 72px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.vm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.vm-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.vm-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.09);
}

.vm-blue {
  border-left: 4px solid #1557d6;
  background: #f8fbff;
}

.vm-green {
  border-left: 4px solid #0f6e56;
  background: #f0fdf7;
}

.vm-orange {
  border-left: 4px solid #f97316;
  background: #fff8f4;
}

.vm-purple {
  border-left: 4px solid #7c3aed;
  background: #faf7ff;
}

.vm-icon {
  font-size: 1.8rem;
  line-height: 1;
  margin-bottom: 4px;
}

.vm-label {
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  line-height: 1;
}

.vm-blue   .vm-label {
  color: #1557d6;
}

.vm-green  .vm-label {
  color: #0f6e56;
}

.vm-orange .vm-label {
  color: #c2410c;
}

.vm-purple .vm-label {
  color: #7c3aed;
}

.vm-text {
  font-size: 0.97rem;
  color: var(--text);
  line-height: 1.7;
  margin: 0;
}

@media (max-width: 640px) {
  .vm-grid {
    grid-template-columns: 1fr;
  }
  .vm-card {
    padding: 22px 20px;
  }
}

.blog-topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.blog-topbar-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.blog-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.blog-logo-image {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 12px;
}

.blog-logo-text strong {
  display: block;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  color: var(--primary);
}

.blog-logo-text span {
  display: block;
  margin-top: 5px;
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #f97316;
}

.blog-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.blog-nav a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding: 8px 0;
}

.blog-nav a:hover {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.blog-list-page,
.blog-detail-page {
  background: #ffffff;
}

.blog-hero {
  padding: 48px 0;
  background: radial-gradient(circle at top left, rgba(21, 87, 214, 0.08), transparent 34%),
    radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.08), transparent 34%),
    linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}

.blog-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 520px;
  align-items: center;
  gap: 64px;
}

.blog-hero-content {
  max-width: 760px;
}

.blog-hero-top {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  color: var(--primary);
  font-weight: 850;
  text-decoration: none;
}

.blog-back-link:hover {
  color: var(--primary-dark);
}

.blog-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.04;
  letter-spacing: -0.055em;
  margin: 0 0 24px;
  color: var(--ink);
}

.blog-hero h1 span {
  color: var(--primary);
}

.blog-hero p {
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 12px;
}

.blog-hero-image {
  display: flex;
  justify-content: center;
  align-items: center;
}

.blog-hero-image img {
  width: 100%;
  max-width: 520px;
  height: auto;
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.10);
}

.blog-body {
  padding: 72px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.blog-card h2 {
  font-size: 1.7rem;
  margin-bottom: 16px;
  color: var(--ink);
  margin-top: 4px;
}

.blog-card p {
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 22px;
}

.blog-content,
.blog-article-section {
  padding: 72px 0;
}

.blog-layout {
  max-width: 960px;
}

.blog-article,
.blog-article-content {
  max-width: 940px;
  margin: 0 auto;
}

.blog-article h2,
.blog-article-content h2 {
  margin-top: 42px;
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: var(--ink);
}

.blog-article p,
.blog-article li,
.blog-article-content p,
.blog-article-content li {
  color: #334155;
  font-size: 1.05rem;
  line-height: 1.85;
}

.blog-article p,
.blog-article-content p {
  margin-bottom: 20px;
}

.blog-article ul,
.blog-article-content ul {
  margin: 16px 0 28px 24px;
}

.blog-diagram {
  display: block;
  width: 100%;
  max-width: 880px;
  margin: 34px auto;
  border-radius: 22px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.10);
}

.blog-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 34px 0;
}

.blog-feature-card {
  padding: 24px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid #dbe4ff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.blog-feature-card h3 {
  color: var(--primary);
  margin-bottom: 10px;
}

.cloud-architecture {
  margin: 38px 0;
  padding: 34px;
  border-radius: 28px;
  background: #f8fbff;
  border: 1px solid #dbe4ff;
  text-align: center;
}

.cloud-users,
.cloud-layer {
  max-width: 520px;
  margin: 0 auto;
  padding: 18px 22px;
  border-radius: 18px;
  background: #ffffff;
  border: 2px solid var(--primary);
  font-weight: 900;
  color: var(--primary);
  box-shadow: 0 10px 24px rgba(21, 87, 214, 0.08);
}

.cloud-layer.primary {
  background: var(--primary);
  color: #ffffff;
}

.cloud-arrow,
.mule-arrow {
  font-size: 2rem;
  font-weight: 900;
  color: #f97316;
  margin: 10px 0;
}

.cloud-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.cloud-services span {
  padding: 14px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #dbe4ff;
  font-weight: 800;
  color: var(--ink);
}

.mule-architecture {
  margin: 38px 0;
  padding: 34px;
  border-radius: 28px;
  background: #f8fbff;
  border: 1px solid #dbe4ff;
}

.mule-layer {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px;
  border-radius: 22px;
  color: #ffffff;
  text-align: center;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.mule-layer strong {
  display: block;
  font-size: 1.35rem;
  margin-bottom: 8px;
}

.mule-layer span {
  display: block;
  opacity: 0.95;
}

.mule-layer.experience {
  background: var(--primary);
}

.mule-layer.process {
  background: #f97316;
}

.mule-layer.system {
  background: #7c3aed;
}

@media (max-width: 1000px) {
  .blog-hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
  }

  .blog-hero-top {
    justify-content: center;
  }

  .blog-hero p {
    margin: 0 auto;
  }

  .blog-hero-image img {
    max-width: 100%;
  }
}

@media (max-width: 760px) {
  .blog-topbar-inner {
    flex-direction: column;
    justify-content: center;
    gap: 12px;
    padding: 16px 0;
  }

  .blog-logo-text {
    display: none;
  }

  .blog-nav {
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    font-size: 0.9rem;
  }

  .blog-hero {
    padding: 48px 0;
  }

  .blog-body,
  .blog-content,
  .blog-article-section {
    padding: 48px 0;
  }

  .blog-grid,
  .blog-feature-grid,
  .cloud-services {
    grid-template-columns: 1fr;
  }

  .cloud-architecture,
  .mule-architecture {
    padding: 22px;
  }
}

.blog-card {
  border: 1px solid #dbe4ff;
  border-radius: 24px;
  padding: 32px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  height: 100%;
  position: relative;
  transition: all 0.3s ease;
  background: linear-gradient(135deg, #ffffff 0%, #f8fbff 100%);
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(21,87,214,0.12);
  border-color: var(--primary);
}

.blog-card .btn-primary {
  transition: all 0.25s ease;
}

.blog-card .btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 10px 28px rgba(21,87,214,0.25);
}

.blog-tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 850;
  margin-bottom: 12px;
  background: rgba(238,245,255,0.75);
  border: 1px solid rgba(21,87,214,0.15);
}

.blog-card .btn {
  margin-top: auto;
}

.mobile-dropdown {
  border-bottom: 1px solid var(--line);
}

.mobile-dropdown-toggle {
  width: 100%;
  border: none;
  background: transparent;
  padding: 16px 0;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mobile-dropdown-icon {
  color: var(--primary);
  font-size: 1.4rem;
  font-weight: 900;
  transition: transform 0.25s ease;
}

.mobile-dropdown-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding-left: 22px;
}

.mobile-dropdown-menu a {
  display: block;
  padding: 13px 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 750;
  border-bottom: 1px solid var(--line);
}

.mobile-dropdown.open .mobile-dropdown-menu {
  max-height: 420px;
}

.mobile-dropdown.open .mobile-dropdown-icon {
  transform: rotate(45deg);
}

.skills-track img,
.skill-marquee-card {
  width: 220px;
  height: 120px;
  flex: 0 0 220px;
  border-radius: 18px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #dbe4ff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.skills-track img,
.skill-marquee-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #ffffff;
}

@keyframes skillsScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.card-hint {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  opacity: 0.85;
}

.values-cta {
  margin-top: 3rem;
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 2rem;
  background: linear-gradient(135deg, #eef4ff, #f8fbff);
  border: 1px solid #dbeafe;
}

.values-cta h3 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 0.75rem;
  color: #0f172a;
}

.values-cta p {
  max-width: 680px;
  margin: 0 auto 1.75rem;
  color: #475569;
}

.values-cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.values-skills-section {
  background: var(--soft-bg);
}

.values-skills-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr);
  gap: 34px;
  align-items: stretch;
}

.values-skills-left,
.values-skills-right {
  min-width: 0;
}

.compact-process {
  grid-template-columns: repeat(3, 1fr);
  margin-top: 22px;
}

.values-panel {
  height: 100%;
  padding: 28px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.values-panel h2 {
  font-size: clamp(1.6rem, 2vw, 2rem);
  margin-bottom: 14px;
}

.values-panel-intro {
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.compact-values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.compact-value-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  min-height: 120px;
  padding: 14px;
  border-radius: 18px;
  background: #f8fbff;
  border: 1px solid #dbeafe;
  transition: 0.25s ease;
}

.compact-value-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(21, 87, 214, 0.1);
}

.compact-value-card span {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--primary-soft);
  font-size: 1.25rem;
}

.compact-value-card h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.compact-value-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.values-panel-cta {
  margin-top: 24px;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(135deg, #1557d6, #0f3f9f);
  color: #ffffff;
}

.values-panel-cta h3 {
  color: #ffffff;
  margin-bottom: 8px;
}

.values-panel-cta p {
  color: #dbeafe;
  margin-bottom: 18px;
  line-height: 1.6;
}

.values-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.values-panel-actions .btn-secondary {
  background: #ffffff;
  color: var(--primary);
  border-color: #ffffff;
}

.values-purpose-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: start;
}

.values-purpose-left,
.values-purpose-right {
  min-width: 0;
}

.flip-card-inner,
.flip-card-front,
.events-card-scroll,
.events-card-body,
#areas {
  transform: translateZ(0);
}

.flip-card-inner,
.flip-card-front,
.flip-card-back,
.events-card-scroll {
  will-change: transform;
}

.flip-card-back {
  padding: 24px 22px;
  background: linear-gradient(145deg, #1557d6, #0f3f9f);
  border-color: #0f3f9f;
  color: white;
  transform: rotateY(180deg) translateZ(0);
}

.events-card-scroll {
  display: flex;
  flex-direction: column;
  gap: 14px;
  animation: verticalEvents 12s linear infinite;
  animation-delay: 0.3s;
  animation-fill-mode: both;
  animation-duration: 12000ms;
}

.events-card-body {
  height: 100px;
  padding: 12px 22px;
  overflow: hidden;
  position: relative;
}

@media (max-width: 1100px) {
  .values-skills-grid,
  .values-purpose-grid {
    grid-template-columns: 1fr;
  }

  .compact-process {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .values-purpose-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .compact-values-grid,
  .compact-process {
    grid-template-columns: 1fr;
  }

  .values-panel {
    padding: 28px;
  }

  .values-panel-actions .btn,
  .hero-actions .btn {
    width: 100%;
  }

  .skills-track img,
  .skill-marquee-card {
    width: 220px;
    height: 120px;
    overflow: hidden;
  }
}

.instagram-cta {
  background: linear-gradient(135deg, #7a2ff0 0%, #ff3d5f 52%, #ff6b1a 100%) !important;
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 12px 28px rgba(249, 115, 22, 0.24) !important;
}

.section-inline-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 10px;
}

.hero-image {
  position: relative;
  display: block;
  width: min(1320px, calc(100% - 40px));
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  background: #f8fbff;
  opacity: 1;
  filter: none;
  box-shadow: none;
}

/* Uses <picture> in index.html so desktop and mobile can use different hero images */
.hero-picture,
.hero-picture img {
  display: block;
  width: 100%;
}

.hero-picture img {
  height: auto;
  object-fit: contain;
}

.hero-image::before,
.hero-image::after {
  content: none !important;
  display: none !important;
  background: none !important;
}

.hero-launch-pill {
  position: absolute;
  top: 28px;
  left: 32px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 107, 26, 0.35);
  color: #e94d00;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(6, 22, 63, 0.08);
  backdrop-filter: blur(10px);
}

.hero-action-bar {
  width: fit-content;
  margin: -86px auto 0;
  position: relative;
  z-index: 20;
  padding: 18px 24px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dfe8f7;
  box-shadow: 0 18px 42px rgba(6, 22, 63, 0.14);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-action-bar .btn {
  width: auto;
}

.hero-trust {
  margin-left: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero-trust span {
  padding: 9px 14px;
  border-radius: 999px;
  background: #f8fbff;
  border: 1px solid #dfe8f7;
  color: #164295;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.skills-marquee {
  width: 100%;
  overflow: hidden;
  padding: 18px 0 34px;
  background: #f8fbff;
  padding-top: 24px;
}

.skills-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: skillsScroll 28s linear infinite;
}

.skills-marquee:hover .skills-track {
  animation-play-state: paused;
}

.skills-track > .cloud-card {
  width: 320px !important;
  height: auto !important;
  flex: 0 0 320px !important;
  overflow: hidden;
  border-radius: 18px;
  background: #ffffff;
}

.skills-track > .cloud-card img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  padding: 0 !important;
}

.tm-footer-center {
  justify-content: center;
  text-align: center;
}

.tm-linkedin-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
  border: 1px solid rgba(21,87,214,.15);
  transition: 0.2s ease;
}

.tm-linkedin-btn:hover {
  background: var(--primary);
  color: #fff;
}

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

@media (max-width: 768px) {
  .hero-image {
    width: 100%;
    min-height: 0;
    border-radius: 0;
  }

  /* Keep the event pill inside the hero image on mobile */
  .hero-launch-pill {
    position: absolute;
    top: 12px;
    left: 16px;
    right: auto;
    transform: none;
    width: max-content;
    max-width: calc(100% - 32px);
    margin: 0;
    padding: 8px 14px;
    font-size: 0.82rem;
    line-height: 1.2;
    white-space: nowrap;
    border-radius: 999px;
  }

  .hero-action-bar {
    width: min(100% - 28px, 520px);
    margin: 16px auto 0;
    align-items: stretch;
    padding: 16px;
  }

  .hero-action-bar .btn {
    width: 100%;
  }

  .hero-trust {
    margin-left: 0;
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 580px) {
  .tm-grid {
    grid-template-columns: 1fr;
  }
}

.tm-grid {
  grid-template-columns: repeat(3, 1fr);
  display: grid;
  gap: 18px;
  align-items: stretch;
}

.tm-grid--mentors {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tm-grid--leadership {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tm-subsection-head {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.tm-card {
  height: 100%;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
}

.tm-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.09);
}

.tm-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.tm-card-blue::before {
  background: #1557d6;
}

.tm-card-orange::before {
  background: #f97316;
}

.tm-card-purple::before {
  background: #7c3aed;
}

.tm-card-rose::before {
  background: #be123c;
}

.tm-card-teal::before {
  background: #0f766e;
}

.tm-card-indigo::before {
  background: #4f46e5;
}

.tm-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.tm-av {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 850;
  flex-shrink: 0;
}

.av-blue {
  background: #EEF5FF;
  color: #1557d6;
}

.av-orange {
  background: #FFF7ED;
  color: #c2410c;
}

.av-purple {
  background: #F5F3FF;
  color: #7c3aed;
}

.av-rose {
  background: #FFF1F2;
  color: #be123c;
}

.av-teal {
  background: #F0FDFA;
  color: #0f766e;
}

.av-indigo {
  background: #EEF2FF;
  color: #4f46e5;
}

.tm-av-info {
  flex: 1;
  min-width: 0;
}

.tm-av-info h3 {
  font-size: 0.92rem;
  font-weight: 850;
  color: var(--ink);
  margin: 0 0 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tm-av-info span {
  font-size: 0.78rem;
  color: var(--muted);
}

.tm-exp {
  font-size: 0.7rem;
  font-weight: 850;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.exp-blue {
  background: #EEF5FF;
  color: #1557d6;
}

.exp-orange {
  background: #FFF7ED;
  color: #c2410c;
}

.exp-purple {
  background: #F5F3FF;
  color: #7c3aed;
}

.exp-rose {
  background: #FFF1F2;
  color: #be123c;
}

.exp-teal {
  background: #F0FDFA;
  color: #0f766e;
}

.exp-indigo {
  background: #EEF2FF;
  color: #4f46e5;
}

.tm-card > p {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.65;
  margin-bottom: 14px;
}

.tm-tags {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 14px;
  flex: 1;
}

.tm-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  white-space: nowrap;
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--soft-bg);
  border: 1px solid var(--line);
  color: var(--muted);
}

.tm-footer {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.tm-sector {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 700;
}

.tm-linkedin-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  transition: 0.2s ease;
}

.tm-linkedin-cta:hover {
  color: var(--primary-dark);
  transform: translateX(4px);
}

.tm-volunteer-wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  background: var(--soft-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.tm-volunteer-wide h3 {
  font-size: 1.1rem;
  font-weight: 850;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}

.tm-volunteer-wide p {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.6;
}

.tm-volunteer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tm-volunteer-list li {
  font-size: 0.84rem;
  color: var(--text);
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .tm-grid--leadership {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .tm-grid--mentors {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tm-volunteer-wide {
    grid-template-columns: 1fr;
  }

  .tm-volunteer-list li {
    white-space: normal;
  }
}

@media (max-width: 580px) {
  .tm-grid--mentors,
  .tm-grid--leadership {
    grid-template-columns: 1fr;
  }
}

.tm-card-green::before {
  background: #16a34a;
}

.av-green {
  background: #f0fdf4;
  color: #16a34a;
}

.exp-green {
  background: #f0fdf4;
  color: #16a34a;
}

.faq-list {
  display: grid;
  gap: 14px;
  max-width: 900px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 850;
  color: var(--ink);
  font-size: 1.05rem;
}

.faq-item p {
  margin-top: 14px;
  color: var(--text);
  line-height: 1.7;
}

.faq-item a {
  color: var(--primary);
  font-weight: 800;
}

.partner-feature {
  margin-top: 34px;
  padding: 34px;
  border-radius: 28px;
  background: linear-gradient(135deg, #ffffff, #f8fbff);
  border: 1px solid var(--line);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.partner-feature-badge {
  display: inline-flex;
  width: fit-content;
  padding: 9px 16px;
  border-radius: 999px;
  background: #eef5ff;
  border: 1px solid rgba(21, 87, 214, 0.18);
  color: var(--primary);
  font-weight: 850;
  font-size: 0.86rem;
  margin-bottom: 18px;
}

.partner-feature h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.partner-feature p {
  max-width: 780px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 12px;
}

.partnership-roadmap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.roadmap-item {
  min-height: 120px;
  padding: 20px 16px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 10px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.roadmap-item span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 900;
}

.roadmap-item.complete {
  border-color: rgba(21, 87, 214, 0.35);
  background: linear-gradient(135deg, #eef5ff, #ffffff);
}

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

.collaboration-card {
  padding: 26px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.collaboration-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--primary-soft);
  font-size: 1.55rem;
  margin-bottom: 16px;
}

.collaboration-card p {
  color: var(--text);
  line-height: 1.65;
  font-size: 0.92rem;
}

@media (max-width: 1000px) {
  .partnership-roadmap,
  .collaboration-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .partnership-roadmap,
  .collaboration-grid {
    grid-template-columns: 1fr;
  }

  .partner-feature {
    padding: 24px;
  }
}

.partner-feature-content {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 12px;
}

.partner-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  font-size: 2rem;
  flex: 0 0 180px;
}

.partner-logo img {
  width: 100%;
  max-width: 180px;
  height: auto;
  display: block;
  object-fit: contain;
}

.partner-details {
  flex: 1;
}

.partner-details h3 {
  margin-bottom: 12px;
}

.partner-details p {
  margin-bottom: 12px;
}

@media (max-width: 768px) {
  .partner-feature-content {
    flex-direction: column;
    text-align: center;
  }

  .partner-logo img {
    margin: 0 auto;
    max-width: 140px;
  }
}

.pt-logo-image {
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pt-logo-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.featured-partner::before {
  content: "Featured";
  position: absolute;
  top: 12px;
  right: 12px;
  background: #1557d6;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.pt-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: ptScroll 34s linear infinite;
  will-change: transform;
}

.pt-card {
  position: relative;
  flex: 0 0 240px;
  min-height: 270px;
  padding: 24px 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
}

.featured-partner {
  border: 2px solid #fbbf24;
  position: relative;
  border-color: #fecdd3;
  background: linear-gradient(
    180deg,
    #fffdf5 0%,
    #ffffff 100%
  );
}

.pt-badge {
  position: absolute;
  top: 12px;
  right: 12px;

  background: linear-gradient(
    135deg,
    #f59e0b,
    #fbbf24
  );

  color: #fff;

  padding: 6px 12px;

  border-radius: 999px;

  font-size: 0.75rem;
  font-weight: 800;

  box-shadow: 0 8px 16px rgba(245,158,11,.25);
}

.pt-logo-frame {
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  width: 98px;
  height: 98px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e5eefb;
  display: grid;
  place-items: center;
  padding: 12px;
  margin-top: 10px;
}

.pt-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pt-logo {
  width: 98px;
  height: 98px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin-bottom: 4px;
}

.soft-blue {
  background: #eaf2ff;
}

.soft-green {
  background: #e9fbf3;
}

.soft-orange {
  background: #fff1e6;
}

.soft-purple {
  background: #f3eefe;
}

.pt-card h3 {
  min-height: 44px;
  font-size: 1rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pt-card span:not(.pt-badge) {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.pt-card a {
  margin-top: 10px;
  color: var(--primary);
  font-weight: 850;
  font-size: 0.82rem;
}

.featured-partner a {
  color: #e11d48;
}


/* =====================================================
   FINAL PARTNER MARQUEE OVERRIDES
   Keeps scrolling marquee, fixes empty space, consistent logo frames and softer featured badge.
===================================================== */
.pt-marquee {
  overflow: hidden;
  position: relative;
  margin-bottom: 24px;
  padding: 10px 0 14px;
}

.pt-marquee::before,
.pt-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 72px;
  z-index: 2;
  pointer-events: none;
}

.pt-marquee::before {
  left: 0;
  background: linear-gradient(to right, var(--bg), rgba(255,255,255,0));
}

.pt-marquee::after {
  right: 0;
  background: linear-gradient(to left, var(--bg), rgba(255,255,255,0));
}

.pt-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: ptScroll 34s linear infinite;
  will-change: transform;
}

.pt-marquee:hover .pt-track {
  animation-play-state: paused;
}

@keyframes ptScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.pt-card {
  position: relative;
  flex: 0 0 240px;
  min-height: 270px;
  padding: 24px 18px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.pt-card:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 14px 30px rgba(21, 87, 214, 0.10);
}


.pt-logo-frame {
  width: 98px;
  height: 98px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid #e5eefb;
  display: grid;
  place-items: center;
  padding: 12px;
  margin-top: 10px;
}

.pt-logo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pt-logo {
  width: 98px;
  height: 98px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin-bottom: 4px;
}

.soft-blue { background: #eaf2ff; }
.soft-green { background: #e9fbf3; }
.soft-orange { background: #fff1e6; }
.soft-purple { background: #f3eefe; }

.pt-card h3 {
  min-height: 44px;
  font-size: 1rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.25;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pt-card span:not(.pt-badge) {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.pt-card a {
  margin-top: 10px;
  color: var(--primary);
  font-weight: 850;
  font-size: 0.82rem;
}

.featured-partner a {
  color: #e11d48;
}

@media (max-width: 760px) {
  .pt-card {
    flex-basis: 220px;
    min-height: 255px;
  }

  .pt-logo,
  .pt-logo-frame {
    width: 88px;
    height: 88px;
  }

  .pt-marquee::before,
  .pt-marquee::after {
    width: 38px;
  }
}
.pt-badge{
  position:absolute;
  top:-10px;
  right:-10px;

  background:#1557d6;
  color:#fff;

  width:72px;
  height:72px;

  border-radius:50%;

  display:flex;
  align-items:center;
  justify-content:center;

  font-size:.75rem;
  font-weight:900;
  text-align:center;

  box-shadow:
    0 12px 24px rgba(21,87,214,.35);

  border:4px solid #fff;

  z-index:10;
}
.founding-partner {
  border: 2px solid #fbbf24;
  background: linear-gradient(180deg, #fffdf5 0%, #ffffff 100%);
}

.future-partner {
  border: 1px solid var(--line);
  background: #ffffff;
}

.pt-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 850;
  z-index: 5;
}

.founding-badge {
  background: linear-gradient(135deg, #c6401b, #d54613);
  color: #ffffff;
  box-shadow: 0 8px 16px rgba(245, 158, 11, 0.28);
}

.future-badge {
  background: #eef5ff;
  color: #1557d6;
  border: 1px solid rgba(21, 87, 214, 0.18);
}
.pt-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 32px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 24px;
  margin-top: 32px;
}

.pt-cta-text {
  flex: 1;
  min-width: 0;
}

.pt-cta-text strong {
  display: block;
  margin-bottom: 8px;
}

.pt-cta-btn {
  flex: 0 0 auto;
  margin-left: auto;
}
@media (max-width: 768px) {
  .pt-cta {
    flex-direction: column;
    align-items: stretch;
    padding: 24px 20px;
  }

  .pt-cta-text {
    width: 100%;
  }

  .pt-cta-btn {
    width: 100%;
    margin-left: 0;
    white-space: normal;
    text-align: center;
  }
}

/* =====================================================
   RESPONSIVE HERO IMAGE OVERRIDES
   Keeps the mobile portrait hero from being cropped.
===================================================== */
.hero-image {
  min-height: 0;
}

.hero-picture img {
  aspect-ratio: auto;
}

@media (max-width: 1100px) {
  .hero-image {
    min-height: 0;
  }
}

@media (max-width: 760px) {
  .hero-image {
    min-height: 0;
  }
}