:root {
    --primary: #8F008A;
    --primary-dark: #5e0b67;
    --primary-soft: #f6ebf7;
    --ink: #201a2c;
    --muted: #625a74;
    --line: #e9e2ee;
    --white: #ffffff;
    --bg: #fcfbfe;
    --success: #18a957;
    --shadow: 0 18px 50px rgba(35, 18, 52, 0.08);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: 1240px;
    --header-h: 90px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

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

.section {
    padding: 88px 0;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.section-heading {
    max-width: 820px;
    margin: 0 auto 44px;
    text-align: center;
}

.section-heading.left {
    max-width: 640px;
    text-align: left;
    margin: 0 0 28px;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

h1 {
    font-size: clamp(2.5rem, 4vw, 4.5rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(2rem, 3vw, 3.1rem);
    font-weight: 800;
}

h3 {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    font-weight: 700;
}

p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.lead {
    font-size: clamp(1.02rem, 1.5vw, 1.16rem);
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 28px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
    border: 1px solid transparent;
    white-space: nowrap;
}

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

.btn-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 10px 24px rgba(143, 0, 138, 0.22);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--white);
    color: var(--ink);
    border-color: var(--line);
}

.btn-secondary:hover {
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* Topbar */
.topbar {
    background: #f8f4fb;
    border-bottom: 1px solid #efe8f3;
    font-size: 13px;
}

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

.topbar .container,
.site-header .container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    color: var(--muted);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid rgba(32, 26, 44, 0.06);
}

.nav-wrap {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.brand {
    display: inline-flex;
    align-items: center;
    flex-direction: row;
    gap: 0;
    min-width: 0;
    font-weight: 800;
    color: var(--ink);
    margin-right: 10px;
    margin-left: -6px;
    transform: none;
}

.brand-logo {
    height: 120px;
    width: auto;
    object-fit: contain;
    object-position: left center;
    display: block;
}

.brand-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    font-weight: 800;
    flex-shrink: 0;
}

.brand-text {
    display: none;
    margin-top: -2px;
    font-size: 0.56rem;
    line-height: 1.1;
    font-weight: 700;
    color: #5E0B67;
    letter-spacing: 0.01em;
    white-space: nowrap;
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: var(--white);
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    border-radius: 10px;
    position: relative;
    transition: 0.22s ease;
    content: '';
}

.nav-toggle span::before {
    position: absolute;
    top: -6px;
}

.nav-toggle span::after {
    position: absolute;
    top: 6px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    color: var(--ink);
    font-weight: 600;
    font-size: 0.96rem;
    text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.nav-phone {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--ink);
}

/* Keep header identical even when Bootstrap is loaded */
.site-header .nav-links a {
    font-weight: 600 !important;
    text-decoration: none !important;
}

.site-header .topbar-links a {
    text-decoration: none !important;
}

.site-header .nav-actions .btn.btn-primary {
    min-height: 50px !important;
    padding: 0 22px !important;
    border-radius: 999px !important;
    background: var(--primary) !important;
    color: var(--white) !important;
    border: 1px solid transparent !important;
    box-shadow: 0 10px 24px rgba(143, 0, 138, 0.22) !important;
}

.site-header .nav-actions .btn.btn-primary:hover {
    background: var(--primary-dark) !important;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    background:
            radial-gradient(circle at top left, rgba(143, 0, 138, 0.08), transparent 34%),
            linear-gradient(180deg, #fbf8fe 0%, #ffffff 62%);
    padding: 42px 0 56px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 42px;
    align-items: center;
}

.hero-copy p {
    max-width: 640px;
    margin-top: 18px;
}

.capsim-inline-logo {
    display: inline-block;
    vertical-align: baseline;
    position: relative;
    top: 6px;
    height: 24px;
    width: auto;
    margin: 0 8px;
}

.old-capstone-inline-logo {
    height: 34px;
    top: 8px;
}

.trademark-note {
    margin-top: 12px;
    font-size: 0.78rem;
    font-style: italic;
    color: #5f5872;
    padding-left: 0;
    border-left: none;
}

.logo-trademark-mark {
    font-size: 0.8em;
    font-weight: 700;
    color: var(--muted);
}

.hero-copy p a,
.trademark-note a {
    color: #0d6efd;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hero-copy p a:hover,
.hero-copy p a:focus,
.trademark-note a:hover,
.trademark-note a:focus {
    color: #0a58ca;
}

.hero-card {
    position: relative;
    background: var(--white);
    border: 1px solid rgba(143, 0, 138, 0.08);
    border-radius: 30px;
    box-shadow: var(--shadow);
    padding: 18px;
}

.hero-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 22px;
}

.hero-badge {
    position: absolute;
    left: -14px;
    bottom: 24px;
    background: var(--white);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    border-radius: 18px;
    padding: 14px 16px;
    max-width: 240px;
}

.hero-image-quote {
    margin: 0 0 14px;
    width: 100%;
    color: #5e0b67;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    font-size: 2rem;
    line-height: 1.25;
    font-weight: 700;
    font-style: italic;
    letter-spacing: -0.01em;
    text-align: center;
    text-shadow: none;
    box-shadow: none;
}

.hero-badge strong {
    display: block;
    color: var(--ink);
    font-size: 0.98rem;
    margin-bottom: 4px;
}

.hero-badge span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

/* Stats */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
    align-items: stretch;
}

.stat-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-top: 3px solid #56b36a;
    border-radius: 22px;
    padding: 18px 18px 20px;
    box-shadow: 0 8px 22px rgba(35, 18, 52, 0.05);
    height: 100%;
}

.stat-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.stat-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    background: #f8eef9;
    border: 1px solid #ecd8ef;
}

.stat-icon i {
    font-size: 16px;
    line-height: 1;
}

.stat-card strong {
    display: inline-block;
    color: var(--primary-dark);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0;
    line-height: 1;
}

.stat-copy {
    display: block;
    color: var(--muted);
    font-size: 0.95rem;
}

/* Two column sections */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 44px;
    align-items: center;
}

.media-stack {
    position: relative;
    min-height: 500px;
}

.media-main,
.media-float {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid rgba(143, 0, 138, 0.07);
}

.media-main img,
.media-float img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-main {
    width: 82%;
    height: 420px;
}

.media-float {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 48%;
    height: 230px;
    background: var(--white);
    padding: 10px;
}

.check-list {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
    display: grid;
    gap: 14px;
}

.check-list li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    color: var(--ink);
    font-weight: 500;
}

.check-list li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(24, 169, 87, 0.12);
    color: var(--success);
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Audience */
.audience-wrap {
    background: linear-gradient(180deg, #fcf8fe 0%, #ffffff 100%);
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.audience-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 28px;
    box-shadow: 0 18px 40px rgba(35, 18, 52, 0.05);
    height: 100%;
}

.audience-card p {
    margin-top: 12px;
}

.audience-card ul {
    margin: 18px 0 0;
    padding-left: 18px;
    color: var(--muted);
}

.audience-card li + li {
    margin-top: 8px;
}

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

.pillar {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
    text-align: center;
}

.pillar strong {
    display: block;
    color: var(--ink);
    margin-bottom: 8px;
    font-size: 1rem;
}

/* Process */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    align-items: stretch;
}

.process-card {
    position: relative;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 26px 22px;
    box-shadow: 0 12px 34px rgba(35, 18, 52, 0.04);
    height: 100%;
}

.process-step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-weight: 800;
    margin-bottom: 16px;
}

/* Portfolio */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.program-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 16px 36px rgba(35, 18, 52, 0.05);
    height: 100%;
}

.program-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.program-card-body {
    padding: 22px;
}

.tag-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.tag {
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--primary-soft);
    color: var(--primary-dark);
    font-size: 0.8rem;
    font-weight: 700;
}

/* Testimonial */
.testimonial-section {
    padding-top: 70px;
    padding-bottom: 70px;
}

.testimonial-shell {
    display: grid;
    grid-template-columns: 1.5fr 0.8fr;
    gap: 22px;
    align-items: stretch;
}

.testimonial-box {
    border: 1px solid #eadcf0;
    border-radius: 28px;
    background: linear-gradient(180deg, #fcf8ff 0%, #ffffff 100%);
    padding: 34px;
    box-shadow: 0 18px 42px rgba(35, 18, 52, 0.08);
}

.eyebrow-light {
    background: rgba(143, 0, 138, 0.12);
}

.testimonial-box h2 {
    margin-top: 16px;
    font-size: clamp(1.4rem, 2.2vw, 2.1rem);
}

.testimonial-box blockquote {
    margin: 20px 0 0;
    color: var(--ink);
    font-size: clamp(1.06rem, 1.5vw, 1.3rem);
    font-weight: 500;
    line-height: 1.65;
}

.testimonial-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #efe7f3;
}

.avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--primary);
    color: var(--white);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.testimonial-source {
    display: grid;
    gap: 2px;
}

.testimonial-source strong {
    color: var(--ink);
}

.testimonial-source span {
    color: var(--muted);
    font-size: 0.94rem;
}

.testimonial-side {
    border: 1px solid #ece4f1;
    border-radius: 24px;
    background: var(--white);
    padding: 22px;
    box-shadow: 0 12px 30px rgba(35, 18, 52, 0.06);
}

.testimonial-kicker {
    font-size: 0.84rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--primary-dark);
}

.testimonial-stats {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.testimonial-stat {
    border: 1px solid #efe7f3;
    border-radius: 14px;
    padding: 13px 14px;
    background: #faf7fc;
}

.testimonial-stat strong {
    display: block;
    color: var(--ink);
    font-size: 1.15rem;
    line-height: 1.25;
}

.testimonial-stat span {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    margin-top: 3px;
}

.testimonial-link-note {
    margin-top: 14px;
    text-align: right;
}

.testimonial-link-note a {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(94, 11, 103, 0.1);
    border: 1px solid rgba(94, 11, 103, 0.28);
    color: #5e0b67;
    font-weight: 700;
    text-decoration: none;
}

.testimonial-link-note a:hover,
.testimonial-link-note a:focus {
    background: rgba(94, 11, 103, 0.16);
}

.quote-band {
    width: 100%;
    max-width: 100%;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    color: var(--white);
    border-radius: 32px;
    padding: 48px 56px;
    box-shadow: 0 24px 50px rgba(94, 11, 103, 0.22);
}

.quote-band h2 {
    max-width: 980px;
    font-size: clamp(2rem, 3.4vw, 3.4rem);
    line-height: 1.15;
    margin-top: 16px;
}

.quote-band p,
.quote-band .muted-light {
    color: rgba(255, 255, 255, 0.84);
}

.quote-band p {
    margin-top: 18px;
    font-size: 1.05rem;
}

/* Partners */
.partners-section {
    background: linear-gradient(180deg, #ffffff 0%, #fcf9fe 100%);
}

.logo-cloud {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-top: 28px;
    align-items: stretch;
}

.logo-item {
    min-height: 96px;
    border: 1px solid var(--line);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    background: var(--white);
    text-align: left;
    padding: 18px;
    box-shadow: 0 8px 22px rgba(35, 18, 52, 0.04);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.logo-item:hover {
    transform: translateY(-2px);
    border-color: #dbc5e5;
    box-shadow: 0 14px 28px rgba(35, 18, 52, 0.08);
}

.partner-link {
    text-decoration: none;
    color: inherit;
    display: block;
    cursor: pointer;
}

.logo-item-static-status {
    align-items: center;
    justify-content: center;
    min-height: 88px;
}

.partner-link .partner-name {
    color: var(--primary-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    font-weight: 800;
}

.partner-link:hover .partner-name,
.partner-link:focus-visible .partner-name {
    color: var(--primary);
    text-decoration-thickness: 2px;
}

.partner-link-icon {
    font-size: 0.72em;
    margin-left: 6px;
    opacity: 0.85;
}

.partner-link:hover .logo-item,
.partner-link:focus-visible .logo-item {
    border-color: #c8a6db;
    background: #fdf9ff;
}

.partner-name {
    color: var(--ink);
    font-weight: 700;
}

.partner-type {
    color: var(--muted);
    font-size: 0.86rem;
}

/* Insights */
.insights-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    align-items: stretch;
}

.insight-card {
    border: 1px solid var(--line);
    border-radius: 22px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 14px 34px rgba(35, 18, 52, 0.04);
    height: 100%;
}

.insight-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.insight-card-body {
    padding: 20px;
}

/* CTA */
.cta {
    padding: 88px 0 96px;
}

.cta-panel {
    width: 100%;
    display: grid;
    grid-template-columns: 1.4fr auto;
    align-items: center;
    gap: 24px;
    padding: 36px 40px;
    border-radius: 28px;
    background: linear-gradient(180deg, #faf5fd 0%, #f3e7f7 100%);
    border: 1px solid #ead9f0;
}

/* Footer */
.site-footer {
    background: #180f22;
    color: rgba(255, 255, 255, 0.82);
    padding: 72px 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 0.8fr 1fr;
    gap: 28px;
}

.site-footer h3,
.site-footer h4 {
    color: var(--white);
}

#footer-brand {
    margin: 0;
}

.footer-logo {
    height: 54px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: grid;
    gap: 12px;
}

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

.footer-bottom {
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    font-size: 0.94rem;
}

/* Inner pages compatibility (replacing imbibiz.css) */
.page-hero {
    padding: 110px 0 70px;
    color: #fff;
    background: linear-gradient(120deg, rgba(43, 15, 95, 0.88), rgba(13, 99, 200, 0.72)), url("../images/pages/programs-banner.webp") center/cover no-repeat;
}

.page-hero p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

body.about-page .page-hero {
    background: linear-gradient(120deg, rgba(43, 15, 95, 0.84), rgba(13, 99, 200, 0.68)), url("../images/pages/about-banner.webp") center/cover no-repeat;
}

body.programs-page .page-hero {
    background: linear-gradient(120deg, rgba(43, 15, 95, 0.84), rgba(13, 99, 200, 0.68)), url("../images/pages/programs-banner.webp") center/cover no-repeat;
}

body.contact-page .page-hero {
    background: linear-gradient(120deg, rgba(43, 15, 95, 0.84), rgba(13, 99, 200, 0.68)), url("../images/pages/contact-banner.webp") center/cover no-repeat;
}

.section-title {
    font-weight: 800;
    color: var(--primary-dark);
}

.soft-bg {
    background: linear-gradient(180deg, #ffffff 0%, #faf7ff 100%);
}

.card-hover {
    border: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    box-shadow: 0 8px 24px rgba(24, 17, 41, 0.08);
    border-top: 3px solid var(--success);
}

.card-hover:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(24, 17, 41, 0.14);
}

.icon-badge {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #e9f4ff;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-box {
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 8px 20px rgba(24, 17, 41, 0.08);
    border-left: 4px solid var(--success);
}

/* Blog / program library cards: normalize any raster source (jpg/png/webp/gif) */
.blog-card {
    overflow: hidden;
}

.blog-card img,
.blog-card .card-img-top {
    width: 100%;
    display: block;
    aspect-ratio: 16 / 10;
    height: auto;
    max-height: 260px;
    object-fit: cover;
    object-position: center;
    background-color: #f4f2f8;
}

.program-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.program-card-link .card-body h3 {
    transition: color 0.2s ease;
    color: var(--primary-dark);
    font-weight: 800;
}

.program-meta {
    color: #6a637d;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.4;
}

.program-meta i {
    color: var(--primary);
    margin-right: 4px;
}

.program-meta-sep {
    margin: 0 7px;
    color: #8e88a1;
}

.program-author-label {
    color: #18a957;
    font-weight: 700;
}

.program-read-more {
    margin-top: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.9rem;
}

.program-card-link:hover .card-body h3 {
    color: var(--primary);
}

.download-course-card {
    padding: 20px !important;
}

.download-course-card h3 {
    font-size: 1.08rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: 0.01em;
}

.download-course-card p {
    font-size: 0.97rem;
    line-height: 1.5;
    color: #4c4660;
}

.download-course-card .badge {
    font-size: 0.82rem;
    padding: 0.45em 0.7em;
}

.btn-purple {
    background: var(--primary);
    color: #fff;
    border: none;
}

.btn-purple:hover,
.btn-purple:focus {
    background: var(--primary-dark);
    color: #fff;
}

.text-purple {
    color: var(--primary) !important;
}

.social-linkedin {
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(10, 102, 194, 0.1);
    border: 1px solid rgba(10, 102, 194, 0.25);
    color: #0a66c2;
    font-weight: 600;
    text-decoration: none;
}

.social-linkedin:hover,
.social-linkedin:focus {
    background: rgba(10, 102, 194, 0.16);
    color: #08579f;
}

.program-cta-btn {
    background: var(--primary);
    color: #fff;
    border: 1px solid transparent;
    box-shadow: 0 10px 24px rgba(143, 0, 138, 0.22);
    font-weight: 700;
}

.program-cta-btn:hover,
.program-cta-btn:focus {
    background: var(--primary-dark);
    color: #fff;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Large tablets */
@media (max-width: 1100px) {
    .hero-grid,
    .grid-2,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .portfolio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pillars {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .testimonial-shell {
        grid-template-columns: 1fr;
    }

    .hero-card {
        max-width: 640px;
    }

    .hero-badge {
        left: 18px;
        bottom: 18px;
    }

    .hero-image-quote {
        width: 100%;
        font-size: 1.5rem;
        padding: 0;
    }

    .cta-panel {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }
}

/* Tablets and mobile nav */
@media (max-width: 860px) {
    :root {
        --header-h: 74px;
    }

    .topbar {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 10px);
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        padding: 16px;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--line);
        border-radius: 24px;
        box-shadow: var(--shadow);
    }

    .nav-menu.open {
        display: flex;
    }

    .nav-links,
    .nav-actions {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        margin: 0;
    }

    .nav-links a,
    .nav-actions .btn {
        justify-content: center;
        width: 100%;
    }

    .nav-phone {
        display: none;
    }

    .stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .audience-grid,
    .portfolio-grid,
    .insights-grid,
    .process-grid,
    .pillars,
    .logo-cloud {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 70px 0;
    }

    .hero {
        padding-top: 28px;
    }

    .media-stack {
        min-height: auto;
    }

    .media-main {
        width: 100%;
        height: 340px;
    }

    .media-float {
        position: static;
        width: 72%;
        height: 190px;
        margin-top: -48px;
        margin-left: auto;
    }

    .quote-band {
        padding: 28px 24px;
        border-radius: 24px;
    }

    .quote-band h2 {
        max-width: 100%;
    }

    .cta-panel {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .testimonial-box,
    .testimonial-side {
        padding: 22px;
    }

    .page-hero {
        padding: 86px 0 56px;
    }
}

/* Mobile */
@media (max-width: 560px) {
    .container {
        width: min(var(--container), calc(100% - 24px));
    }

    .btn-row {
        flex-direction: column;
    }

    .btn-row .btn {
        width: 100%;
    }

    .brand-logo {
        height: 60px;
    }

    .brand-text {
        font-size: 0.52rem;
    }

    .hero-badge {
        position: static;
        margin-top: 14px;
        max-width: none;
    }

    .hero-image-quote {
        margin-top: 0;
        width: 100%;
        font-size: 1.02rem;
        line-height: 1.35;
        padding: 0;
        text-align: center;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .media-main {
        height: 280px;
    }

    .media-float {
        width: 78%;
        height: 150px;
        margin-top: -34px;
    }

    .program-card img,
    .insight-card img {
        height: 190px;
    }

    .quote-band,
    .cta-panel,
    .audience-card,
    .program-card-body,
    .insight-card-body,
    .stat-card,
    .process-card {
        padding-left: 18px;
        padding-right: 18px;
    }

    .logo-cloud {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}
