/*
 * Brainbots public theme — landing page and all public pages.
 * Scoped under body.rk-public so legacy pages are only restyled, never broken.
 */

:root {
    --rkp-navy: #16213f;
    --rkp-navy-deep: #101b33;
    --rkp-yellow: #ffc72c;
    --rkp-yellow-soft: #fff4d1;
    --rkp-indigo: #4f6bed;
    --rkp-lavender: #edeafb;
    --rkp-cream: #fff8e6;
    --rkp-page: #f7f8fc;
    --rkp-text: #101828;
    --rkp-muted: #667085;
    --rkp-border: #e7e9f2;
    --rkp-radius: 22px;
    --rkp-shadow: 0 14px 40px rgba(16, 24, 40, 0.08);
}

body.rk-public {
    background: var(--rkp-page);
    color: var(--rkp-text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

body.rk-public h1,
body.rk-public h2,
body.rk-public h3,
body.rk-public h4 {
    font-family: 'Poppins', 'Inter', sans-serif;
    color: var(--rkp-navy);
}

/* ---------- Public header ---------- */

body.rk-public .tg-header__top {
    background: var(--rkp-navy-deep);
    color: #b9c6e0;
    padding: 8px 0;
}
body.rk-public .tg-header__top a,
body.rk-public .tg-header__top-info li,
body.rk-public .tg-header__top-social li { color: #b9c6e0; }

body.rk-public .tg-header__area {
    background: #fff;
    box-shadow: 0 6px 22px rgba(16, 24, 40, 0.06);
}
body.rk-public .tgmenu__wrap { padding: 8px 0; }
body.rk-public .tgmenu__nav .logo img { max-height: 46px; width: auto; }

body.rk-public .tgmenu__navbar-wrap > ul.navigation > li > a {
    color: var(--rkp-navy);
    font-weight: 600;
    font-size: 15px;
}
body.rk-public .tgmenu__navbar-wrap > ul.navigation > li > a:hover,
body.rk-public .tgmenu__navbar-wrap > ul.navigation > li.active > a {
    color: var(--rkp-indigo);
}
body.rk-public .tgmenu__search-form {
    background: #f1f0fb;
    border-radius: 999px;
    padding: 4px 8px 4px 16px;
    border: 1px solid transparent;
}
body.rk-public .tgmenu__search-form:focus-within { border-color: var(--rkp-indigo); }
body.rk-public .tgmenu__search-form input { background: transparent; font-size: 14px; }
body.rk-public .tgmenu__search-form .select-grp { border-right: 1px solid #dcdcf0; }

body.rk-public .tgmenu__action .cart-count {
    background: #f1f0fb;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
}
body.rk-public .tgmenu__action .cart-count:hover { background: var(--rkp-yellow-soft); }
body.rk-public .mini-cart-count {
    background: var(--rkp-yellow);
    color: var(--rkp-navy);
    font-weight: 700;
}

/* Legacy buttons in public pages */
body.rk-public .btn.btn-two,
body.rk-public .btn.btn-three {
    background: var(--rkp-indigo);
    border-color: var(--rkp-indigo);
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
}
body.rk-public .btn.btn-two:hover,
body.rk-public .btn.btn-three:hover { background: #3f57c9; border-color: #3f57c9; }

/* ---------- Public footer ---------- */

body.rk-public .footer__area {
    background: var(--rkp-navy-deep);
    color: #c9d4ea;
    margin-top: 0;
}
body.rk-public .footer__widget-title { color: #fff; }
body.rk-public .footer__link ul li a,
body.rk-public .footer__content p,
body.rk-public .footer__content ul li,
body.rk-public .footer__contact-content p,
body.rk-public .copy-right-text p,
body.rk-public .footer__bottom-menu ul li a { color: #b9c6e0; }
body.rk-public .footer__link ul li a:hover,
body.rk-public .footer__bottom-menu ul li a:hover { color: var(--rkp-yellow); }
body.rk-public .footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); }
body.rk-public .footer__area .logo img { max-height: 46px; }

/* ---------- Landing: hero ---------- */

.rkp-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(120% 120% at 85% 10%, #2a3d6b 0%, #1a2749 45%, #101b33 100%);
    color: #fff;
    padding: 76px 0 84px;
}
.rkp-hero::before {
    content: '';
    position: absolute;
    width: 520px;
    height: 520px;
    right: -140px;
    top: -180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79, 107, 237, 0.35), transparent 65%);
}
.rkp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
    align-items: center;
    position: relative;
    z-index: 2;
}
.rkp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    background: rgba(255, 199, 44, 0.14);
    border: 1px solid rgba(255, 199, 44, 0.45);
    color: var(--rkp-yellow);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}
.rkp-hero h1 {
    color: #fff;
    font-size: 52px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin: 0 0 18px;
}
.rkp-hero h1 em {
    font-style: normal;
    color: var(--rkp-yellow);
    position: relative;
    white-space: nowrap;
}
.rkp-hero h1 em::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 2px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 199, 44, 0.25);
    z-index: -1;
}
.rkp-lead {
    font-size: 17px;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    max-width: 520px;
    margin: 0 0 30px;
}
.rkp-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 34px; }
.rkp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.rkp-btn:hover { text-decoration: none; transform: translateY(-1px); }
.rkp-btn-yellow { background: var(--rkp-yellow); color: var(--rkp-navy); box-shadow: 0 12px 26px rgba(255, 199, 44, 0.3); }
.rkp-btn-yellow:hover { background: #f5ba12; color: var(--rkp-navy); }
.rkp-btn-ghost { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.28); color: #fff; }
.rkp-btn-ghost:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.rkp-btn-indigo { background: var(--rkp-indigo); color: #fff; box-shadow: 0 12px 26px rgba(79, 107, 237, 0.28); }
.rkp-btn-indigo:hover { background: #3f57c9; color: #fff; }

.rkp-trust { display: flex; flex-wrap: wrap; gap: 26px; }
.rkp-trust div { display: flex; flex-direction: column; }
.rkp-trust strong { font-family: 'Poppins', sans-serif; font-size: 22px; color: #fff; }
.rkp-trust span { font-size: 12px; color: rgba(255, 255, 255, 0.62); }

.rkp-hero-art { position: relative; display: grid; place-items: center; }
.rkp-hero-art .rkp-robot-wrap {
    width: min(360px, 100%);
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.35));
    animation: rkp-float 6s ease-in-out infinite;
}
.rkp-hero-art .rkp-robot-wrap svg { width: 100%; height: auto; }
.rkp-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 15px;
    border-radius: 14px;
    background: #fff;
    color: var(--rkp-navy);
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}
.rkp-badge i { color: var(--rkp-indigo); }
.rkp-badge.b1 { top: 6%; left: -4%; }
.rkp-badge.b2 { bottom: 18%; right: -2%; }
.rkp-badge.b3 { bottom: -2%; left: 8%; }

@keyframes rkp-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ---------- Landing: sections ---------- */

.rkp-section { padding: 72px 0; }
.rkp-section.tight { padding: 52px 0; }
.rkp-section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.rkp-kicker {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rkp-indigo);
    background: var(--rkp-lavender);
    padding: 6px 13px;
    border-radius: 999px;
    margin-bottom: 14px;
}
.rkp-section-head h2 { font-size: 34px; line-height: 1.22; margin: 0 0 12px; letter-spacing: -0.01em; }
.rkp-section-head p { margin: 0; color: var(--rkp-muted); font-size: 16px; line-height: 1.6; }

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

.rkp-card {
    background: #fff;
    border: 1px solid var(--rkp-border);
    border-radius: var(--rkp-radius);
    padding: 28px;
    box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    height: 100%;
}
.rkp-card:hover { transform: translateY(-3px); box-shadow: var(--rkp-shadow); }
.rkp-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    display: grid;
    place-items: center;
    font-size: 21px;
    margin-bottom: 18px;
    background: var(--rkp-lavender);
    color: var(--rkp-indigo);
}
.rkp-card-icon.yellow { background: var(--rkp-yellow-soft); color: #8a6200; }
.rkp-card-icon.green { background: #e7f8ee; color: #157347; }
.rkp-card h3 { font-size: 19px; margin: 0 0 8px; }
.rkp-card p { margin: 0; color: var(--rkp-muted); font-size: 14px; line-height: 1.65; }
.rkp-card ul { margin: 16px 0 0; padding: 0; list-style: none; }
.rkp-card ul li {
    font-size: 13px;
    color: #475467;
    padding-left: 24px;
    position: relative;
    margin-bottom: 7px;
}
.rkp-card ul li::before {
    content: '\f00c';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #22c55e;
    position: absolute;
    left: 0;
    font-size: 12px;
}

/* Age paths */
.rkp-path {
    background: #fff;
    border: 1px solid var(--rkp-border);
    border-radius: var(--rkp-radius);
    padding: 26px;
    position: relative;
    overflow: hidden;
}
.rkp-path::after {
    content: '';
    position: absolute;
    right: -40px;
    top: -40px;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--rkp-cream);
}
.rkp-path .age {
    display: inline-block;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: var(--rkp-navy);
    background: var(--rkp-yellow);
    border-radius: 999px;
    padding: 5px 12px;
    margin-bottom: 14px;
}
.rkp-path h3 { position: relative; z-index: 1; font-size: 18px; margin: 0 0 8px; }
.rkp-path p { position: relative; z-index: 1; margin: 0; color: var(--rkp-muted); font-size: 14px; }

/* Courses */
.rkp-courses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.rkp-course {
    background: #fff;
    border: 1px solid var(--rkp-border);
    border-radius: var(--rkp-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.rkp-course:hover { transform: translateY(-4px); box-shadow: var(--rkp-shadow); }
.rkp-course-thumb {
    height: 176px;
    background: linear-gradient(135deg, #dfe4f5, #f2f4fc);
    position: relative;
    overflow: hidden;
}
.rkp-course-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rkp-course-thumb .fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #98a6c2;
    font-size: 42px;
}
.rkp-course-tag {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--rkp-navy);
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.rkp-course-body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.rkp-course-body h3 { font-size: 17px; line-height: 1.4; margin: 0 0 8px; }
.rkp-course-body h3 a { color: var(--rkp-navy); text-decoration: none; }
.rkp-course-body h3 a:hover { color: var(--rkp-indigo); }
.rkp-course-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--rkp-muted); font-size: 12px; margin-bottom: 16px; }
.rkp-course-meta i { color: var(--rkp-indigo); margin-right: 5px; }
.rkp-course-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--rkp-border);
}
.rkp-price { font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 19px; color: var(--rkp-navy); }
.rkp-price small { font-size: 12px; color: var(--rkp-muted); font-weight: 500; }
.rkp-link {
    font-size: 13px;
    font-weight: 700;
    color: var(--rkp-indigo);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.rkp-link:hover { color: #3f57c9; text-decoration: none; }

/* Steps */
.rkp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: rkpstep; }
.rkp-step {
    background: #fff;
    border: 1px solid var(--rkp-border);
    border-radius: 18px;
    padding: 24px;
}
.rkp-step::before {
    counter-increment: rkpstep;
    content: counter(rkpstep, decimal-leading-zero);
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--rkp-indigo);
    background: var(--rkp-lavender);
    border-radius: 10px;
    display: inline-grid;
    place-items: center;
    width: 38px;
    height: 38px;
    font-size: 13px;
    margin-bottom: 14px;
}
.rkp-step h3 { font-size: 16px; margin: 0 0 6px; }
.rkp-step p { margin: 0; font-size: 13px; color: var(--rkp-muted); line-height: 1.6; }

/* AI band */
.rkp-ai-band {
    background: linear-gradient(115deg, #223458, #16213f 60%, #101b33);
    border-radius: 28px;
    padding: 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
    color: #fff;
    overflow: hidden;
    position: relative;
}
.rkp-ai-band h2 { color: #fff; font-size: 30px; margin: 0 0 12px; }
.rkp-ai-band p { color: rgba(255, 255, 255, 0.75); margin: 0 0 22px; line-height: 1.65; }
.rkp-ai-band .rkp-kicker { background: rgba(255, 199, 44, 0.15); color: var(--rkp-yellow); }
.rkp-ai-list { list-style: none; margin: 0; padding: 0; }
.rkp-ai-list li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    margin-bottom: 10px;
}
.rkp-ai-list i { color: var(--rkp-yellow); margin-top: 3px; }

.rkp-chat {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 20px;
    padding: 20px;
    backdrop-filter: blur(4px);
}
.rkp-chat-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.rkp-chat-head .dot { width: 9px; height: 9px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18); }
.rkp-chat-head strong { font-size: 13px; color: #fff; }
.rkp-chat-head span { font-size: 11px; color: rgba(255, 255, 255, 0.5); margin-left: auto; }
.rkp-bubble {
    border-radius: 14px;
    padding: 12px 15px;
    font-size: 13px;
    line-height: 1.55;
    margin-bottom: 10px;
    max-width: 92%;
}
.rkp-bubble.user { background: var(--rkp-indigo); color: #fff; margin-left: auto; }
.rkp-bubble.bot { background: #fff; color: #101828; }
.rkp-hints { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.rkp-hint {
    font-size: 11px;
    font-weight: 700;
    padding: 6px 11px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: rgba(255, 255, 255, 0.78);
}
.rkp-hint.active { background: var(--rkp-yellow); border-color: var(--rkp-yellow); color: var(--rkp-navy); }

/* Safety */
.rkp-safety { background: var(--rkp-cream); border-radius: 28px; padding: 44px; }
.rkp-safety-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 28px; }
.rkp-safety-item { background: #fff; border-radius: 16px; padding: 22px; }
.rkp-safety-item i { color: var(--rkp-indigo); font-size: 18px; margin-bottom: 10px; display: block; }
.rkp-safety-item h3 { font-size: 15px; margin: 0 0 6px; }
.rkp-safety-item p { margin: 0; font-size: 13px; color: var(--rkp-muted); line-height: 1.6; }

/* CTA */
.rkp-cta {
    background: var(--rkp-yellow);
    border-radius: 28px;
    padding: 46px 52px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    position: relative;
    overflow: hidden;
}
.rkp-cta h2 { font-size: 30px; margin: 0 0 8px; color: var(--rkp-navy); }
.rkp-cta p { margin: 0; color: #5b4a12; font-size: 15px; }
.rkp-cta .rkp-btn { background: var(--rkp-navy); color: #fff; box-shadow: 0 14px 28px rgba(22, 33, 63, 0.25); }
.rkp-cta .rkp-btn:hover { background: #0c1427; color: #fff; }
.rkp-cta .rkp-cta-robot { position: absolute; right: 200px; bottom: -30px; width: 150px; opacity: 0.16; }

/* Legacy page polish */
body.rk-public .breadcrumb__area { background: var(--rkp-navy); padding: 84px 0 56px; }
body.rk-public .breadcrumb__content { padding-left: 0; margin-left: 0; }
body.rk-public .breadcrumb__content .title {
    color: #fff;
    margin: 0 0 10px;
    padding-left: 0;
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.16;
    letter-spacing: -0.01em;
    overflow: visible;
    text-shadow: 0 1px 3px rgba(0, 0, 0, .28);
}
body.rk-public .breadcrumb__content .breadcrumb a,
body.rk-public .breadcrumb__content .breadcrumb span { color: rgba(255, 255, 255, .86); }
body.rk-public .breadcrumb__content .breadcrumb a:hover { color: var(--rkp-yellow); }
body.rk-public .courses__item,
body.rk-public .course__item { border-radius: 18px; overflow: hidden; }
body.rk-public .section__title .title { color: var(--rkp-navy); }

/* Responsive */
@media (max-width: 1200px) {
    .rkp-hero { padding: 60px 0 68px; }
    .rkp-hero h1 { font-size: 44px; }
    .rkp-hero-art .rkp-robot-wrap { width: 300px; }
}
@media (max-width: 991px) {
    .rkp-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 34px; }
    .rkp-hero-art { display: none; }
    .rkp-grid-3, .rkp-courses, .rkp-safety-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rkp-grid-4, .rkp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rkp-ai-band { grid-template-columns: minmax(0, 1fr); padding: 34px; }
    .rkp-section { padding: 52px 0; }
    .rkp-section-head h2 { font-size: 28px; }
    .rkp-cta { flex-direction: column; align-items: flex-start; padding: 34px; }
    .rkp-safety { padding: 30px; }
}
@media (max-width: 640px) {
    .rkp-hero h1 { font-size: 34px; }
    .rkp-lead { font-size: 15px; }
    .rkp-grid-3, .rkp-courses, .rkp-grid-4, .rkp-steps, .rkp-safety-grid { grid-template-columns: minmax(0, 1fr); }
    .rkp-section-head h2 { font-size: 24px; }
    .rkp-trust { gap: 16px; }
    .rkp-actions .rkp-btn { width: 100%; }
    .rkp-cta h2 { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    .rkp-hero-art .rkp-robot-wrap { animation: none; }
    .rkp-card, .rkp-course, .rkp-btn { transition: none; }
}

/* Keep the hero heading white above the generic public h1 rule */
body.rk-public .rkp-hero h1 { color: #fff; }
body.rk-public .rkp-hero h1 em { color: var(--rkp-yellow); }
.rkp-hero-grid > * { min-width: 0; }
.rkp-hero-art .rkp-robot-wrap { max-width: 100%; }

/* The legacy search widget does not fit the public navigation at desktop widths */
body.rk-public .tgmenu__search-form { display: none; }
body.rk-public .tgmenu__navbar-wrap > ul.navigation { gap: 4px; }
body.rk-public .tgmenu__navbar-wrap > ul.navigation > li > a { font-size: 14px; }
@media (max-width: 1320px) {
    body.rk-public .tgmenu__navbar-wrap > ul.navigation > li > a { font-size: 13px; padding-left: 9px; padding-right: 9px; }
    .rkp-hero-art .rkp-robot-wrap { width: min(300px, 92%); }
}

/* The legacy contact strip is not part of the child-facing landing page */
body.rk-home .tg-header__top { display: none; }

/* ---------- Brainbots public header (part B4) ---------- */
.rkp-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    border-bottom: 1px solid rgba(22, 33, 63, 0.08);
    box-shadow: 0 6px 24px rgba(22, 33, 63, 0.06);
}
.rkp-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.rkp-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: var(--rkp-navy);
    text-decoration: none;
    white-space: nowrap;
}
.rkp-brand img { max-height: 42px; width: auto; }
.rkp-nav { display: flex; align-items: center; gap: 20px; flex: 1; }
.rkp-nav a {
    color: var(--rkp-navy);
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
}
.rkp-nav a:hover { color: #c99400; }
.rkp-header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.rkp-link { color: var(--rkp-navy); font-weight: 600; text-decoration: none; }
.rkp-cart {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: #f3f5fb;
    color: var(--rkp-navy);
    text-decoration: none;
}
.rkp-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--rkp-yellow);
    color: var(--rkp-navy);
    font-size: 11px;
    font-weight: 800;
    line-height: 18px;
    text-align: center;
}
.rkp-nav-toggle {
    display: none;
    border: 0;
    background: #f3f5fb;
    color: var(--rkp-navy);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 18px;
}
.rkp-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px 20px 18px;
    border-top: 1px solid rgba(22, 33, 63, 0.08);
    background: #fff;
}
.rkp-mobile-nav a {
    padding: 10px 4px;
    color: var(--rkp-navy);
    font-weight: 600;
    text-decoration: none;
}

/* ---------- Brainbots public footer (part B4) ---------- */
.rkp-footer {
    background: var(--rkp-navy-deep);
    color: #b9c6e0;
    margin-top: 64px;
}
.rkp-footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 54px 20px 34px;
    display: grid;
    grid-template-columns: 1.6fr repeat(3, 1fr);
    gap: 36px;
}
.rkp-footer-brand img { max-height: 46px; width: auto; margin-bottom: 16px; }
.rkp-footer-brand p { margin: 0 0 12px; font-size: 15px; line-height: 1.7; }
.rkp-footer-contact { color: #8fa2c6; font-size: 14px; }
.rkp-footer-col h2 {
    color: #fff;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 14px;
}
.rkp-footer-col a {
    display: block;
    color: #b9c6e0;
    font-size: 15px;
    line-height: 1.6;
    padding: 4px 0;
    text-decoration: none;
}
.rkp-footer-col a:hover { color: var(--rkp-yellow); }
.rkp-footer-col p { font-size: 14px; line-height: 1.7; }
.rkp-footer-social { display: flex; gap: 10px; margin-top: 12px; }
.rkp-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    padding: 0;
}
.rkp-footer-social img { max-width: 16px; max-height: 16px; filter: brightness(0) invert(1); }
.rkp-footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 20px 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
}
.rkp-footer-bottom p { margin: 0; }
.rkp-footer-bottom nav { display: flex; gap: 18px; }
.rkp-footer-bottom a { color: #b9c6e0; text-decoration: none; }
.rkp-footer-bottom a:hover { color: var(--rkp-yellow); }

@media (max-width: 991px) {
    .rkp-nav, .rkp-header-actions .rkp-link, .rkp-header-actions .rkp-btn { display: none; }
    .rkp-nav-toggle { display: inline-block; }
    .rkp-footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575px) {
    .rkp-footer-grid { grid-template-columns: 1fr; }
    .rkp-brand span { display: none; }
}

/* ---------- Inner pages: About, Instructors, Contact ---------- */
.rkp-page-hero {
    position: relative;
    overflow: hidden;
    background: radial-gradient(120% 140% at 85% 0%, #2a3d6b 0%, #1a2749 50%, #101b33 100%);
    color: #fff;
    padding: 64px 0 70px;
}
.rkp-page-hero::after {
    content: '';
    position: absolute;
    width: 360px; height: 360px;
    right: -90px; bottom: -160px;
    border-radius: 50%;
    background: rgba(255, 210, 74, 0.14);
}
.rkp-page-hero .container { position: relative; z-index: 1; }
.rkp-crumbs { font-size: 13px; color: rgba(255, 255, 255, 0.6); margin-bottom: 14px; }
.rkp-crumbs a { color: rgba(255, 255, 255, 0.85); }
.rkp-page-hero h1 { color: #fff; font-size: 44px; line-height: 1.15; margin: 0 0 14px; max-width: 760px; letter-spacing: -0.01em; }
.rkp-page-hero h1 em { font-style: normal; color: var(--rkp-yellow); }
.rkp-page-hero p { color: rgba(255, 255, 255, 0.74); font-size: 17px; line-height: 1.6; max-width: 640px; margin: 0; }

.rkp-split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.rkp-split h2 { font-size: 32px; line-height: 1.25; margin: 0 0 14px; }
.rkp-split p { color: var(--rkp-muted); font-size: 15px; line-height: 1.75; }
.rkp-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.rkp-stat {
    background: #fff; border: 1px solid var(--rkp-border); border-radius: var(--rkp-radius);
    padding: 24px; box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
}
.rkp-stat strong { display: block; font-family: 'Poppins', sans-serif; font-size: 30px; color: var(--rkp-indigo); line-height: 1.1; }
.rkp-stat span { font-size: 13px; color: var(--rkp-muted); }
.rkp-stat.yellow { background: var(--rkp-yellow-soft); border-color: #f6e2a3; }
.rkp-stat.yellow strong { color: #8a6200; }

.rkp-band { background: #fff; border-top: 1px solid var(--rkp-border); border-bottom: 1px solid var(--rkp-border); }

/* Teachers */
.rkp-team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.rkp-teacher {
    background: #fff; border: 1px solid var(--rkp-border); border-radius: var(--rkp-radius);
    padding: 28px; text-align: center; box-shadow: 0 8px 24px rgba(16, 24, 40, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.rkp-teacher:hover { transform: translateY(-3px); box-shadow: var(--rkp-shadow); }
.rkp-avatar {
    width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px; overflow: hidden;
    display: grid; place-items: center; background: var(--rkp-indigo-soft, #edeafb); color: var(--rkp-indigo);
    font-family: 'Poppins', sans-serif; font-weight: 700; font-size: 32px; border: 4px solid var(--rkp-yellow);
}
.rkp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rkp-teacher h3 { font-size: 19px; margin: 0 0 4px; }
.rkp-teacher h3 a { color: inherit; }
.rkp-teacher .role { display: block; color: var(--rkp-muted); font-size: 14px; margin-bottom: 14px; }
.rkp-teacher .meta { display: flex; justify-content: center; gap: 16px; font-size: 13px; color: #475467; }
.rkp-teacher .meta i { color: var(--rkp-indigo); margin-right: 5px; }
.rkp-teacher .meta .star { color: #f5a400; }
.rkp-empty {
    text-align: center; background: #fff; border: 1px dashed var(--rkp-border); border-radius: var(--rkp-radius); padding: 48px 24px;
}
.rkp-empty i { font-size: 34px; color: var(--rkp-indigo); margin-bottom: 12px; }
.rkp-empty p { color: var(--rkp-muted); margin: 0; }

/* Contact */
.rkp-contact { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 28px; align-items: start; }
.rkp-contact-list { display: grid; gap: 16px; }
.rkp-contact-item {
    display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid var(--rkp-border);
    border-radius: var(--rkp-radius); padding: 20px 22px;
}
.rkp-contact-item .rkp-card-icon { flex: 0 0 48px; width: 48px; height: 48px; margin: 0; font-size: 19px; }
.rkp-contact-item h3 { font-size: 16px; margin: 0 0 4px; }
.rkp-contact-item p, .rkp-contact-item a { margin: 0; font-size: 14px; color: var(--rkp-muted); display: block; line-height: 1.6; word-break: break-word; }
.rkp-contact-item a:hover { color: var(--rkp-indigo); }
.rkp-form {
    background: #fff; border: 1px solid var(--rkp-border); border-radius: 24px; padding: 34px;
    box-shadow: 0 14px 36px rgba(16, 24, 40, 0.07);
}
.rkp-form h2 { font-size: 26px; margin: 0 0 6px; }
.rkp-form > p { color: var(--rkp-muted); font-size: 14px; margin: 0 0 22px; }
.rkp-form .rkp-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.rkp-form .full { grid-column: 1 / -1; }
.rkp-form label { display: block; font-size: 13px; font-weight: 600; color: var(--rkp-navy); margin-bottom: 6px; }
.rkp-form input, .rkp-form textarea, .rkp-form select {
    width: 100%; border: 1px solid var(--rkp-border); border-radius: 12px; padding: 12px 14px; font-size: 15px;
    background: #fbfbfe; color: var(--rkp-navy); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.rkp-form textarea { min-height: 140px; resize: vertical; }
.rkp-form input:focus, .rkp-form textarea:focus, .rkp-form select:focus {
    outline: none; border-color: var(--rkp-indigo); box-shadow: 0 0 0 4px rgba(79, 107, 237, 0.14); background: #fff;
}
.rkp-form .rkp-btn { margin-top: 20px; border: 0; }
.rkp-faq { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.rkp-faq details { background: #fff; border: 1px solid var(--rkp-border); border-radius: 14px; padding: 18px 22px; }
.rkp-faq summary { cursor: pointer; font-weight: 600; color: var(--rkp-navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.rkp-faq summary::-webkit-details-marker { display: none; }
.rkp-faq summary::after { content: '+'; font-size: 20px; line-height: 1; color: var(--rkp-indigo); }
.rkp-faq details[open] summary::after { content: '\2212'; }
.rkp-faq details p { margin: 12px 0 0; color: var(--rkp-muted); font-size: 14px; line-height: 1.7; }

@media (max-width: 991px) {
    .rkp-split, .rkp-contact { grid-template-columns: 1fr; gap: 28px; }
    .rkp-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .rkp-page-hero h1 { font-size: 34px; }
}
@media (max-width: 575px) {
    .rkp-team, .rkp-form .rkp-fields { grid-template-columns: 1fr; }
    .rkp-page-hero { padding: 44px 0 50px; }
    .rkp-page-hero h1 { font-size: 28px; }
    .rkp-form { padding: 24px 18px; }
}
body.rk-public .rkp-page-hero h1 { color: #fff; }
body.rk-public .rkp-page-hero h1 em { color: var(--rkp-yellow); }

/* Catalogue course cards (shared rkp-course look) */
.rkp-course-card { display: flex; flex-direction: column; }
.rkp-course-card .rkp-course-thumb { height: 190px; }
.rkp-course-card .rkp-course-thumb > a:first-child { display: block; height: 100%; }
.rkp-course-card .rkp-wish {
    position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center; background: rgba(255, 255, 255, 0.92); color: var(--rkp-indigo);
    box-shadow: 0 6px 16px rgba(16, 24, 40, 0.15);
}
.rkp-wish:hover { background: #fff; color: #e11d48; }
.rkp-course-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.rkp-chip {
    display: inline-block; font-size: 12px; font-weight: 600; color: var(--rkp-indigo);
    background: #edeafb; border-radius: 999px; padding: 4px 12px; text-decoration: none;
}
.rkp-chip:hover { color: var(--rkp-navy); }
.rkp-rating { font-size: 13px; color: #475467; }
.rkp-rating i { color: #f5a400; }
.rkp-course-card .rkp-course-foot { margin-top: auto; }
.rkp-course-card .rkp-price { display: flex; flex-direction: column; line-height: 1.25; }
.rkp-course-card .rkp-price small { font-size: 13px; font-weight: 600; color: var(--rkp-navy); }
.rkp-free {
    align-self: flex-start; font-size: 12px; font-weight: 700; color: #157347; background: #e7f8ee;
    border-radius: 999px; padding: 3px 10px; margin-bottom: 4px;
}

/* Sign in / sign up */
.rkp-auth { padding: 56px 0 72px; background: var(--rkp-page, #f5f6fa); }
.rkp-auth-card {
    display: grid; grid-template-columns: 0.9fr 1.1fr; max-width: 1040px; margin: 0 auto;
    border-radius: 28px; overflow: hidden; box-shadow: 0 24px 60px rgba(16, 24, 40, 0.12); background: #fff;
}
.rkp-auth-side {
    position: relative; overflow: hidden; color: #fff; padding: 48px 40px;
    background: radial-gradient(120% 120% at 85% 10%, #2a3d6b 0%, #1a2749 50%, #101b33 100%);
}
body.rk-public .rkp-auth-side h2 { color: #fff; font-size: 30px; line-height: 1.25; margin: 18px 0 22px; }
.rkp-auth-side ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.rkp-auth-side li { color: rgba(255, 255, 255, 0.82); font-size: 15px; }
.rkp-auth-side li i { color: var(--rkp-yellow); margin-right: 8px; }
.rkp-auth-robot { width: 190px; margin: 34px auto 0; }
.rkp-auth-form { border: 0; border-radius: 0; box-shadow: none; padding: 44px 44px 36px; }
body.rk-public .rkp-auth-form h1 { font-size: 30px; margin: 0 0 6px; }
.rkp-auth-row { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 14px; }
.rkp-auth-row a, .rkp-auth-switch a { color: var(--rkp-indigo); font-weight: 600; }
.rkp-check { display: inline-flex; align-items: center; gap: 8px; margin: 0 !important; font-weight: 500 !important; cursor: pointer; }
.rkp-form .rkp-check input { width: 18px; height: 18px; padding: 0; accent-color: var(--rkp-indigo); }
.rkp-auth-switch { text-align: center; margin: 20px 0 0; font-size: 14px; color: var(--rkp-muted); }
.rkp-social {
    display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--rkp-border);
    border-radius: 12px; padding: 12px; font-weight: 600; color: var(--rkp-navy); background: #fff;
}
.rkp-social:hover { border-color: var(--rkp-indigo); color: var(--rkp-navy); }
.rkp-divider { display: flex; align-items: center; gap: 12px; color: var(--rkp-muted); font-size: 13px; margin: 18px 0; }
.rkp-divider::before, .rkp-divider::after { content: ''; flex: 1; height: 1px; background: var(--rkp-border); }
.rkp-choice { border: 0; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rkp-choice legend { font-size: 13px; font-weight: 600; color: var(--rkp-navy); margin-bottom: 6px; float: none; width: auto; }
.rkp-choice label { margin: 0; cursor: pointer; }
.rkp-choice input { position: absolute; opacity: 0; pointer-events: none; }
.rkp-choice span {
    display: flex; align-items: center; gap: 10px; border: 2px solid var(--rkp-border); border-radius: 14px;
    padding: 14px; font-weight: 600; color: var(--rkp-navy); background: #fbfbfe; transition: all 0.15s ease;
}
.rkp-choice span i { color: var(--rkp-indigo); }
.rkp-choice input:checked + span { border-color: var(--rkp-indigo); background: #edeafb; }
.rkp-choice input:focus-visible + span { box-shadow: 0 0 0 4px rgba(79, 107, 237, 0.2); }
@media (max-width: 991px) {
    .rkp-auth-card { grid-template-columns: 1fr; }
    .rkp-auth-side { padding: 32px 28px; }
    .rkp-auth-side ul, .rkp-auth-robot { display: none; }
    body.rk-public .rkp-auth-side h2 { margin-bottom: 0; font-size: 24px; }
}
@media (max-width: 575px) {
    .rkp-auth { padding: 24px 0 40px; }
    .rkp-auth-form { padding: 28px 20px; }
    .rkp-choice { grid-template-columns: 1fr; }
}
