:root {
    --navy: #0d1b2a;
    --blue: #1b4dff;
    --gold: #f6b73c;
    --bg: #f4f7fb;
    --text: #182230;
    --muted: #6b7280;
    --border: #dfe5ee
}

* {
    box-sizing: border-box
}

body {
    margin: 0;
    font: 15px/1.55 system-ui, -apple-system, Segoe UI, sans-serif;
    background: var(--bg);
    color: var(--text)
}

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

.nav {
    height: 72px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6%;
    border-bottom: 1px solid var(--border)
}

.nav a {
    margin-left: 18px
}

.brand {
    font-weight: 900;
    letter-spacing: .5px;
    color: var(--navy) !important
}

.btn {
    display: inline-block;
    background: var(--blue);
    color: #fff !important;
    border: 0;
    border-radius: 10px;
    padding: 10px 18px;
    font-weight: 700;
    cursor: pointer
}

.secondary {
    background: #fff;
    color: var(--navy) !important;
    border: 1px solid var(--border)
}

.danger {
    background: #b42318
}

.large {
    padding: 14px 22px
}

.full {
    width: 100%
}

main {
    max-width: 1180px;
    margin: auto;
    padding: 28px
}

.hero {
    min-height: 520px;
    padding: 70px 6%;
    display: grid;
    grid-template-columns: 1.4fr .8fr;
    gap: 50px;
    align-items: center;
    background: linear-gradient(135deg, #eef3ff, #fff7e5)
}

.hero h1 {
    font-size: 52px;
    line-height: 1.05;
    margin: 14px 0
}

.hero p {
    font-size: 19px;
    color: var(--muted);
    max-width: 720px
}

.hero-card,
.card,
.auth-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 12px 30px rgba(13, 27, 42, .07)
}

.auth-card {
    max-width: 460px;
    margin: 55px auto
}

.badge {
    display: inline-block;
    background: #e9efff;
    color: #2146b7;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 800
}

.section {
    padding: 50px 6%
}

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

.stat {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px
}

.stat b {
    font-size: 32px;
    display: block
}

.stat span,
small {
    display: block;
    color: var(--muted)
}

footer {
    text-align: center;
    padding: 28px;
    color: var(--muted)
}

label {
    display: block;
    font-weight: 700;
    margin: 12px 0
}

input,
select,
textarea {
    width: 100%;
    padding: 11px 12px;
    margin-top: 5px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fff;
    font: inherit
}

input[type=checkbox] {
    width: auto
}

.alert {
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px
}

.success {
    background: #eaf8ef;
    color: #176b38
}

.error {
    background: #feeceb;
    color: #9f231b
}

.demo,
.notice {
    background: #f5f7fb;
    border-radius: 10px;
    padding: 12px;
    margin-top: 14px
}

.dashboard-body {
    display: flex;
    min-height: 100vh
}

.dashboard-body aside {
    width: 245px;
    background: var(--navy);
    color: #fff;
    padding: 24px;
    position: fixed;
    inset: 0 auto 0 0;
    overflow: auto
}

.dashboard-body aside a,
.link-button {
    display: block;
    color: #dfe8f3;
    padding: 9px 0;
    background: none;
    border: 0;
    font: inherit;
    cursor: pointer
}

.dashboard-body aside .brand {
    color: #fff !important;
    font-size: 18px;
    margin-bottom: 2px
}

.dashboard-body aside hr {
    border: 0;
    border-top: 1px solid #29405a
}

.main-panel {
    margin-left: 245px;
    width: calc(100% - 245px)
}

.main-panel header {
    height: 72px;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 14px 28px;
    text-align: right
}

.grid2 {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px
}

.narrow {
    max-width: 650px
}

.table-wrap {
    overflow: auto
}

table {
    border-collapse: collapse;
    width: 100%;
    min-width: 650px
}

th,
td {
    text-align: left;
    border-bottom: 1px solid var(--border);
    padding: 11px 8px;
    vertical-align: top
}

.checks {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px
}

.notice small {
    margin-top: 4px
}

@media(max-width:800px) {

    .hero,
    .grid2 {
        grid-template-columns: 1fr
    }

    .hero h1 {
        font-size: 38px
    }

    .cards,
    .stats {
        grid-template-columns: 1fr 1fr
    }

    .dashboard-body aside {
        width: 75px;
        padding: 15px 10px
    }

    .dashboard-body aside a {
        font-size: 0
    }

    .dashboard-body aside a:before {
        content: '•';
        font-size: 20px
    }

    .dashboard-body aside small,
    .dashboard-body aside hr {
        display: none
    }

    .main-panel {
        margin-left: 75px;
        width: calc(100% - 75px)
    }

    .checks {
        grid-template-columns: 1fr
    }
}

/* Stage 2 - Marketplace Barang */
.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 24px
}

.hero.compact {
    min-height: 280px;
    padding: 64px max(24px, calc((100% - 1132px)/2));
    display: flex;
    align-items: center
}

.hero.compact h1 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin: .5rem 0
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 999px;
    background: #e9f0ff;
    color: #17458f;
    font-weight: 700
}

.filters {
    display: grid;
    grid-template-columns: 2fr repeat(3, 1fr) auto;
    gap: 12px;
    margin-bottom: 28px
}

.filters input,
.filters select,
.inline-form input,
.qty {
    width: 100%;
    padding: 11px;
    border: 1px solid #dce2ec;
    border-radius: 10px
}

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

.product-card {
    background: #fff;
    border: 1px solid #e7ebf2;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 8px 30px rgba(18, 39, 73, .06)
}

.product-card a {
    text-decoration: none;
    color: inherit
}

.product-card h3 {
    margin: 8px 0;
    min-height: 48px
}

.product-image {
    height: 190px;
    border-radius: 12px;
    background: #f4f6fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    font-size: 54px
}

.product-image.large {
    height: 340px
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.price {
    color: #0d6a45;
    font-weight: 800;
    font-size: 1.15rem
}

.card-actions,
.inline-form,
.page-head,
.checkout-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px
}

.card-actions {
    margin-top: 12px
}

.btn.small {
    padding: 7px 11px;
    font-size: .85rem
}

.btn.secondary {
    background: #edf1f7;
    color: #183153
}

.btn.danger {
    background: #b42318;
    color: #fff
}

.btn.block {
    width: 100%;
    margin-top: 18px
}

.empty {
    text-align: center;
    padding: 48px;
    color: #64748b
}

.product-detail {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px
}

.prose {
    line-height: 1.75
}

.review {
    padding: 18px 0;
    border-bottom: 1px solid #e7ebf2
}

.two-col {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 1fr);
    gap: 24px
}

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

.form-grid .full {
    grid-column: 1/-1
}

.address-option {
    display: flex;
    gap: 12px;
    padding: 14px;
    border: 1px solid #e1e6ef;
    border-radius: 12px;
    margin-bottom: 10px
}

.order-summary>div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 9px 0
}

.order-summary .total {
    font-size: 1.2rem
}

.status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 999px;
    background: #eef2f6;
    text-transform: capitalize;
    font-size: .85rem;
    font-weight: 700
}

.status.completed {
    background: #dcfce7;
    color: #166534
}

.status.cancelled {
    background: #fee2e2;
    color: #991b1b
}

.status.shipped {
    background: #dbeafe;
    color: #1e40af
}

.status.processing,
.status.confirmed {
    background: #fef3c7;
    color: #92400e
}

.timeline>div {
    border-left: 3px solid #dbe3ef;
    padding: 0 0 18px 16px
}

.timeline small,
td small {
    display: block;
    color: #64748b;
    margin-top: 3px
}

.muted {
    color: #64748b
}

.card summary {
    cursor: pointer;
    margin-bottom: 16px
}

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

    .filters {
        grid-template-columns: 1fr 1fr
    }

    .product-detail,
    .two-col {
        grid-template-columns: 1fr
    }
}

@media(max-width:640px) {
    .product-grid {
        grid-template-columns: 1fr
    }

    .filters,
    .form-grid {
        grid-template-columns: 1fr
    }

    .filters .btn,
    .form-grid .full {
        grid-column: auto
    }

    .container {
        padding: 24px 14px
    }

    .product-image.large {
        height: 300px
    }

    .page-head {
        align-items: flex-start;
        flex-direction: column
    }

    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap
    }
}

/* Stage 2B — GankGuan Foundation Corporate Website */
:root {
    --gg-black: #080a0c;
    --gg-charcoal: #12171c;
    --gg-gold: #d5aa4b;
    --gg-gold-soft: #f4ead2;
    --gg-cream: #faf8f2;
    --gg-white: #fff;
    --gg-gray: #6f7780;
    --gg-line: #e8e6df
}

.foundation-site {
    background: var(--gg-white);
    color: #171b1f
}

.foundation-site .site-main {
    max-width: none;
    padding: 0
}

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

.topbar {
    background: var(--gg-black);
    color: #c9ccd0;
    font-size: 12px;
    letter-spacing: .04em
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    padding-block: 9px
}

.site-header {
    background: #fff;
    position: relative;
    z-index: 20;
    border-bottom: 1px solid var(--gg-line)
}

.foundation-nav {
    height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between
}

.foundation-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--gg-black) !important;
    margin: 0 !important
}

.foundation-brand img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 50%
}

.foundation-brand span {
    display: flex;
    flex-direction: column;
    line-height: 1
}

.foundation-brand b {
    font-size: 19px;
    letter-spacing: .08em
}

.foundation-brand small {
    font-size: 10px;
    letter-spacing: .34em;
    margin-top: 5px;
    color: #777
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 27px
}

.nav-links a {
    margin: 0;
    color: #24292e;
    font-size: 14px;
    font-weight: 700
}

.nav-links a:hover,
.nav-links .market-link {
    color: #9d761f
}

.nav-account {
    background: var(--gg-black);
    color: #fff !important;
    padding: 11px 17px;
    border-radius: 4px
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 27px
}

.foundation-hero {
    position: relative;
    min-height: 680px;
    background: radial-gradient(circle at 75% 25%, #30353b 0, #161a1f 28%, #080a0c 70%);
    overflow: hidden;
    color: #fff
}

.foundation-hero:after {
    content: "";
    position: absolute;
    width: 560px;
    height: 560px;
    border: 1px solid rgba(213, 170, 75, .22);
    border-radius: 50%;
    right: -90px;
    top: 40px;
    box-shadow: 0 0 0 65px rgba(255, 255, 255, .018), 0 0 0 135px rgba(255, 255, 255, .012)
}

.foundation-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, .35), transparent 65%)
}

.foundation-hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.35fr .65fr;
    gap: 70px;
    align-items: center;
    min-height: 680px
}

.hero-copy h1 {
    font-family: Georgia, serif;
    font-size: clamp(43px, 5.6vw, 73px);
    line-height: 1.06;
    max-width: 850px;
    margin: 20px 0
}

.hero-copy h1 span {
    color: var(--gg-gold)
}

.hero-copy>p {
    font-size: 18px;
    color: #cfd3d7;
    max-width: 720px
}

.eyebrow {
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .22em;
    color: #9a7423
}

.eyebrow.light {
    color: #e6c875
}

.hero-actions {
    display: flex;
    gap: 13px;
    margin-top: 33px
}

.btn-gold {
    background: var(--gg-gold);
    color: #111 !important
}

.btn-outline-light {
    border: 1px solid #b7bdc3;
    color: #fff !important;
    background: transparent
}

.btn-dark {
    background: var(--gg-black);
    color: #fff !important
}

.hero-trust {
    display: flex;
    gap: 28px;
    color: #bfc4c8;
    font-size: 13px;
    margin-top: 28px
}

.hero-logo-panel {
    background: rgba(255, 255, 255, .96);
    padding: 20px 20px 13px;
    border: 1px solid rgba(255, 255, 255, .16);
    box-shadow: 0 25px 80px rgba(0, 0, 0, .3)
}

.hero-logo-panel img {
    width: 100%;
    display: block
}

.hero-logo-panel p {
    text-align: center;
    color: #111;
    letter-spacing: .22em;
    font-weight: 900;
    margin: 14px 0 3px
}

.quick-links {
    margin-top: -1px;
    background: var(--gg-gold)
}

.quick-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr)
}

.quick-grid>a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 25px;
    border-right: 1px solid rgba(0, 0, 0, .16);
    color: #171717
}

.quick-grid strong {
    font: 700 32px Georgia, serif;
    opacity: .5
}

.quick-grid span {
    display: flex;
    flex-direction: column
}

.quick-grid b {
    font-size: 15px
}

.quick-grid small {
    color: #493a18
}

.section-white,
.section-soft {
    padding: 100px 0
}

.section-soft {
    background: var(--gg-cream)
}

.about-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 80px;
    align-items: center
}

.about-visual {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.about-visual>img {
    width: 100%;
    max-width: 380px;
    height: auto;
    object-fit: contain;
    border: 1px solid var(--gg-line);
}

.about-accent {
    position: static;
    right: auto;
    bottom: auto;
    width: 100%;
    max-width: 380px;
    margin-top: 18px;
    background: var(--gg-black);
    color: #fff;
    padding: 24px;
}

.about-accent b {
    font-size: 23px;
    display: block;
    color: var(--gg-gold)
}

.about-accent span {
    font-size: 13px;
    color: #ccd0d4
}

.section-copy h2,
.section-heading h2,
.impact-grid h2,
.cta-grid h2 {
    font: 700 clamp(34px, 4.5vw, 53px)/1.13 Georgia, serif;
    margin: 13px 0 22px
}

.section-copy>p,
.section-heading>p {
    font-size: 17px;
    color: var(--gg-gray)
}

.vision-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 28px 0
}

.vision-grid>div {
    border-left: 3px solid var(--gg-gold);
    padding-left: 18px
}

.vision-grid h3 {
    margin: 0 0 6px
}

.vision-grid p {
    color: var(--gg-gray);
    margin: 0
}

.text-link {
    font-weight: 900;
    color: #8a681e
}

.section-heading {
    max-width: 760px;
    margin-bottom: 45px
}

.section-heading.center {
    text-align: center;
    margin-inline: auto
}

.section-heading.split {
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: end
}

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

.program-card {
    background: #fff;
    padding: 30px;
    border: 1px solid var(--gg-line);
    position: relative;
    min-height: 290px
}

.program-card>span {
    position: absolute;
    right: 20px;
    top: 18px;
    font: 700 30px Georgia, serif;
    color: #dedbd3
}

.program-icon {
    font-size: 32px;
    color: #a67d24;
    margin: 24px 0
}

.program-card h3 {
    font: 700 23px Georgia, serif
}

.program-card p {
    color: var(--gg-gray)
}

.impact-section {
    background: var(--gg-charcoal);
    color: #fff;
    padding: 85px 0
}

.impact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 65px;
    align-items: center
}

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

.impact-stats article {
    padding: 25px;
    border-left: 1px solid #343a40;
    border-bottom: 1px solid #343a40
}

.impact-stats b {
    font: 700 45px Georgia, serif;
    color: var(--gg-gold);
    display: block
}

.impact-stats span {
    color: #bdc2c6
}

.foundation-products .home-product {
    border-radius: 0;
    box-shadow: none;
    padding: 0 0 18px
}

.home-product .product-image {
    border-radius: 0;
    height: 245px
}

.home-product h3,
.home-product small,
.home-product .price {
    margin-left: 16px;
    margin-right: 16px
}

.home-product small {
    display: block;
    margin-top: 14px;
    color: #9a7423;
    font-weight: 800
}

.product-placeholder {
    font: 900 52px Georgia, serif;
    color: #c29b47
}

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

.news-card {
    background: #fff;
    border: 1px solid var(--gg-line);
    padding: 27px;
    position: relative
}

.news-number {
    position: absolute;
    right: 20px;
    top: 15px;
    font: 700 42px Georgia, serif;
    color: #eeeae0
}

.news-card h3 {
    font: 700 24px Georgia, serif;
    position: relative
}

.news-card p {
    color: var(--gg-gray)
}

.news-card a {
    font-weight: 900;
    color: #8a681e
}

.cta-section {
    background: linear-gradient(110deg, #80601d, #c99b3c);
    color: #fff;
    padding: 78px 0
}

.cta-grid {
    display: grid;
    grid-template-columns: 1.4fr .6fr;
    gap: 55px;
    align-items: center
}

.cta-grid p {
    color: #f5ead3;
    font-size: 17px
}

.cta-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    flex-wrap: wrap
}

.cta-section .btn-gold {
    background: #fff
}

.foundation-footer {
    background: #060708;
    color: #b8bdc1;
    padding: 70px 0 25px
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 55px
}

.footer-grid h4 {
    color: #fff;
    margin-top: 0
}

.footer-grid>div>a {
    display: block;
    color: #b8bdc1;
    margin: 9px 0
}

.footer-brand {
    color: #fff !important
}

.footer-brand img {
    border: 1px solid #34393e
}

.footer-about p {
    max-width: 350px
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #25292d;
    margin-top: 50px;
    padding-top: 23px;
    font-size: 12px
}

.page-hero {
    background: var(--gg-charcoal);
    color: #fff;
    padding: 85px 0
}

.page-hero h1 {
    font: 700 clamp(38px, 5vw, 60px) Georgia, serif;
    margin: 15px 0
}

.page-hero p {
    color: #c8cdd1;
    font-size: 18px
}

.content-section {
    padding-top: 65px;
    padding-bottom: 85px
}

.content-card {
    padding: 45px
}

.foundation-prose h2,
.foundation-prose h3 {
    font-family: Georgia, serif
}

.foundation-site .auth-card {
    margin-top: 65px;
    margin-bottom: 65px
}

.foundation-site .container>.alert {
    margin-top: 18px
}

@media(max-width:980px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 120px;
        left: 0;
        right: 0;
        background: #fff;
        padding: 20px;
        flex-direction: column;
        align-items: flex-start;
        border-bottom: 1px solid var(--gg-line)
    }

    .nav-links.open {
        display: flex
    }

    .nav-toggle {
        display: block
    }

    .foundation-hero-grid,
    .about-grid,
    .impact-grid,
    .cta-grid {
        grid-template-columns: 1fr
    }

    .hero-logo-panel {
        display: none
    }

    .program-grid {
        grid-template-columns: 1fr 1fr
    }

    .news-grid {
        grid-template-columns: 1fr 1fr
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr
    }

    .foundation-hero-grid {
        min-height: 610px
    }

    .foundation-hero {
        min-height: 610px
    }

    .cta-actions {
        justify-content: flex-start
    }
}

@media(max-width:650px) {
    .topbar span:last-child {
        display: none
    }

    .foundation-nav {
        height: 74px
    }

    .foundation-brand img {
        width: 45px;
        height: 45px
    }

    .foundation-brand b {
        font-size: 16px
    }

    .foundation-hero-grid {
        min-height: 590px
    }

    .foundation-hero {
        min-height: 590px
    }

    .hero-actions,
    .hero-trust {
        flex-direction: column;
        align-items: flex-start
    }

    .quick-grid,
    .program-grid,
    .news-grid,
    .impact-stats,
    .vision-grid,
    .footer-grid {
        grid-template-columns: 1fr
    }

    .quick-grid>a {
        border-bottom: 1px solid rgba(0, 0, 0, .13)
    }

    .section-white,
    .section-soft {
        padding: 70px 0
    }

    .about-accent {
        position: relative;
        right: auto;
        bottom: auto;
        width: 100%
    }

    .section-heading.split {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px
    }

    .footer-bottom {
        flex-direction: column;
        gap: 9px
    }

    .content-card {
        padding: 25px
    }
}

.dashboard-brand {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding-bottom: 13px !important
}

.dashboard-brand img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover
}

.dashboard-brand span {
    display: flex;
    flex-direction: column;
    font-size: 14px
}

.dashboard-brand span small {
    font-size: 8px;
    letter-spacing: .18em;
    color: #d5aa4b
}

/* V2.1.3 — Dedicated Courses and Gallery pages */
.course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px
}

.course-card {
    background: #fff;
    border: 1px solid var(--gg-line);
    display: flex;
    flex-direction: column
}

.course-thumb {
    height: 230px;
    background: #111820;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center
}

.course-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover
}

.course-placeholder,
.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #101418, #292e33);
    color: var(--gg-gold);
    font: 900 58px Georgia, serif
}

.course-body {
    padding: 26px;
    display: flex;
    flex-direction: column;
    flex: 1
}

.course-body h2,
.gallery-card h2 {
    font: 700 26px/1.2 Georgia, serif;
    margin: 10px 0
}

.course-body>p {
    color: var(--gg-gray);
    flex: 1
}

.course-meta {
    display: grid;
    gap: 5px;
    border-top: 1px solid var(--gg-line);
    padding: 16px 0;
    color: #5d646b;
    font-size: 13px
}

.course-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
    gap: 28px;
    align-items: start
}

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

.course-info span {
    padding: 14px;
    background: var(--gg-cream);
    color: #555
}

.course-info b {
    display: block;
    color: #171b1f;
    margin-bottom: 5px
}

.course-side {
    position: sticky;
    top: 24px
}

.course-side>img {
    width: 100%;
    max-height: 280px;
    object-fit: cover;
    margin-bottom: 18px
}

.course-side>.course-placeholder {
    height: 230px;
    margin-bottom: 18px
}

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

.gallery-card {
    margin: 0;
    background: #fff;
    border: 1px solid var(--gg-line)
}

.gallery-image {
    height: 280px;
    background: #14191e;
    overflow: hidden
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.04)
}

.gallery-card figcaption {
    padding: 24px
}

.gallery-card figcaption p {
    color: var(--gg-gray);
    margin-bottom: 0
}

.gallery-card figcaption small {
    margin: 3px 0 10px
}

@media(max-width:980px) {

    .course-grid,
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .course-detail-grid {
        grid-template-columns: 1fr
    }

    .course-side {
        position: static
    }

    .course-info {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(max-width:650px) {

    .course-grid,
    .gallery-grid,
    .course-info {
        grid-template-columns: 1fr
    }

    .course-thumb,
    .gallery-image {
        height: 240px
    }
}