/* Course detail page (/course/{slug}/) — product-style layout. */

.cp { padding-top: 8px; padding-bottom: 48px; }
.cp h2 { font-size: 21px; line-height: 1.35; color: var(--ath-navy, #0a1a33); margin: 0 0 14px; }
.cp h2 span { color: var(--ath-muted, #5a6b87); font-weight: 600; font-size: .8em; }

/* Hero: banner + buy box. */
.cp-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: start; margin: 4px 0 34px; }
.cp-media { border-radius: 16px; overflow: hidden; background: #0a1a33; box-shadow: 0 10px 30px rgba(10, 26, 51, .12); aspect-ratio: 3 / 2; position: sticky; top: 90px; }
.cp-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.cp-media-ph { height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 28px; color: #fff; background: radial-gradient(circle at 85% 15%, rgba(245, 165, 36, .35), transparent 45%), linear-gradient(135deg, #0a1a33, #1d3a6b); }
.cp-media-ph span { align-self: flex-start; background: #f5a524; color: #0a1a33; font-weight: 700; font-size: 13px; border-radius: 99px; padding: 4px 12px; }
.cp-media-ph b { font-size: 26px; line-height: 1.25; }
.cp-media-ph i { font-style: normal; color: #cfdaf0; font-size: 18px; }

.cp-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.cp-tags span { font-size: 12.5px; font-weight: 700; border-radius: 99px; padding: 3px 10px; background: #eef2f8; color: #33415c; }
.cp-tags .cp-kind { background: #fff4de; color: #8a5a00; }
.cp.k-video .cp-tags .cp-kind { background: #f1e8ff; color: #6b2fbf; }
.cp.k-ebook .cp-tags .cp-kind { background: #e3f4ff; color: #0b5c8f; }
.cp-tags .cp-live { background: #ffe7e7; color: #c01d1d; }
.cp-title { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.25; margin: 0 0 6px; color: var(--ath-navy, #0a1a33); }
.cp-ta { font-size: 17px; color: #33415c; margin: 0 0 6px; }
.cp-note { color: var(--ath-muted, #5a6b87); margin: 0 0 14px; font-size: 15px; }

.cp-chips { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cp-chips li { border: 1px solid var(--ath-border, #e6ebf2); border-radius: 10px; padding: 6px 11px; font-size: 14px; color: #33415c; background: #fff; }
.cp-chips b { color: var(--ath-navy, #0a1a33); }

.cp-buybox { border: 1px solid var(--ath-border, #e6ebf2); border-radius: 16px; padding: 18px; background: #fff; box-shadow: 0 6px 20px rgba(10, 26, 51, .06); }
.cp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.cp-price b { font-size: 34px; line-height: 1; color: var(--ath-navy, #0a1a33); }
.cp-price s { color: #8592a8; font-size: 18px; }
.cp-off { background: #dcfce7; color: #15803d; font-weight: 700; font-size: 13.5px; border-radius: 99px; padding: 3px 10px; }
.cp-pay { display: block; width: 100%; text-align: center; border: 0; border-radius: 12px; padding: 14px 18px; font-size: 17px; font-weight: 700; cursor: pointer; background: #f5a524; color: #0a1a33 !important; text-decoration: none !important; box-shadow: 0 4px 0 #c7820f; transition: transform .08s; }
.cp-pay:hover { background: #ffb43c; }
.cp-pay:active { transform: translateY(2px); box-shadow: 0 2px 0 #c7820f; }
.cp-paynote { text-align: center; font-size: 13px; color: var(--ath-muted, #5a6b87); margin: 8px 0 0; }
.cp-unlock { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: #f0fdf4; color: #166534; font-size: 14px; line-height: 1.5; }
.cp-ask { margin: 10px 0 0; font-size: 14px; color: var(--ath-muted, #5a6b87); }
.cp-ask a { color: #128c4b; font-weight: 700; }

/* The plugin's buy card: only its result message is shown here. */
.cp-buy .aax-buy { border: 0; padding: 0; margin: 10px 0 0; box-shadow: none; background: none; }
.cp-buy .aax-buy-top, .cp-buy .aax-buy-price, .cp-buy .aax-buy-actions, .cp-buy .aax-buy-small { display: none !important; }

/* Body. */
.cp-body { max-width: 860px; }
.cp-section { margin: 0 0 34px; }
.cp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.cp-facts div { border-radius: 14px; padding: 16px; background: #f5f8fc; border: 1px solid var(--ath-border, #e6ebf2); display: flex; flex-direction: column; gap: 2px; }
.cp-facts b { font-size: 28px; line-height: 1.1; color: var(--ath-navy, #0a1a33); }
.cp-facts span { font-weight: 700; color: #33415c; }
.cp-facts i { font-style: normal; font-size: 13.5px; color: var(--ath-muted, #5a6b87); }
.cp-facts .c-v { background: #f6f0ff; border-color: #e7dafc; }
.cp-facts .c-f { background: #eef7ff; border-color: #d6eafc; }
.cp-facts .c-t { background: #fff8eb; border-color: #fae6bf; }
.cp-facts .c-d { background: #effcf3; border-color: #cdeed8; }

.cp-about .ath-entry { font-size: 17px; line-height: 1.85; }
.cp-about .ath-entry h2 { font-size: 18px; margin: 22px 0 8px; }
.cp-about .ath-entry ul { padding-left: 0; list-style: none; }
.cp-about .ath-entry ul li { position: relative; padding-left: 30px; margin: 0 0 8px; }
.cp-about .ath-entry ul li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 20px; height: 20px; border-radius: 50%; background: #dcfce7; color: #15803d; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; line-height: 1; }

.cp-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.cp-steps li { counter-increment: s; border: 1px solid var(--ath-border, #e6ebf2); border-radius: 14px; padding: 16px; background: #fff; display: flex; flex-direction: column; gap: 4px; }
.cp-steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; background: #0a1a33; color: #f5a524; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 6px; }
.cp-steps b { color: var(--ath-navy, #0a1a33); }
.cp-steps span { font-size: 14.5px; color: #4a5872; line-height: 1.55; }
.cp-steps a { color: #1d5fd1; font-weight: 700; }

.cp-faq details { border: 1px solid var(--ath-border, #e6ebf2); border-radius: 12px; margin: 0 0 8px; background: #fff; }
.cp-faq summary { cursor: pointer; padding: 13px 16px; font-weight: 700; color: var(--ath-navy, #0a1a33); list-style: none; position: relative; padding-right: 40px; }
.cp-faq summary::-webkit-details-marker { display: none; }
.cp-faq summary::after { content: "+"; position: absolute; right: 16px; top: 10px; font-size: 20px; color: #8592a8; }
.cp-faq details[open] summary::after { content: "−"; }
.cp-faq details p { margin: 0; padding: 0 16px 14px; color: #33415c; line-height: 1.7; }
.cp-faq details a { color: #128c4b; font-weight: 700; }

.cp-rel { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.cp-rel a { display: flex; flex-direction: column; gap: 4px; border: 1px solid var(--ath-border, #e6ebf2); border-radius: 14px; padding: 14px; background: #fff; text-decoration: none !important; color: #33415c; transition: box-shadow .15s, transform .15s; }
.cp-rel a:hover { box-shadow: 0 8px 22px rgba(10, 26, 51, .1); transform: translateY(-2px); }
.cp-rel b { color: var(--ath-navy, #0a1a33); line-height: 1.35; }
.cp-rel i { font-style: normal; font-size: 13.5px; color: var(--ath-muted, #5a6b87); }
.cp-rel em { font-style: normal; font-weight: 700; color: var(--ath-navy, #0a1a33); margin-top: auto; padding-top: 6px; }
.cp-rel em s { color: #8592a8; font-weight: 400; font-size: .9em; }
.cp-rk { align-self: flex-start; font-size: 11.5px; font-weight: 700; border-radius: 99px; padding: 2px 9px; background: #fff4de; color: #8a5a00; }
.cp-rel .k-video .cp-rk { background: #f1e8ff; color: #6b2fbf; }
.cp-rel .k-ebook .cp-rk { background: #e3f4ff; color: #0b5c8f; }
.cp-all { margin: 14px 0 0; }
.cp-all a { font-weight: 700; color: #1d5fd1; }

/* Sticky buy bar after the buy box scrolls away. */
.cp-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 905; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #0a1a33; color: #cfdaf0; padding: 10px max(16px, calc((100vw - 1180px) / 2 + 16px)); box-shadow: 0 -6px 18px rgba(0, 0, 0, .18); }
.cp-bar[hidden] { display: none; }
.cp-bar div { min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.cp-bar div b { color: #fff; font-size: 20px; }
.cp-bar div s { color: #8a9bb8; }
.cp-bar div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.cp-bar .cp-pay { width: auto; flex: 0 0 auto; padding: 10px 22px; font-size: 16px; box-shadow: none; }
body.cp-bar-on .joinchat { --bottom: 78px; bottom: 78px !important; }

@media (max-width: 900px) {
	.cp-hero { grid-template-columns: 1fr; gap: 18px; }
	.cp-media { position: static; }
	.cp-steps { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
	.cp-bar { bottom: calc(var(--ath-bnav-h, 60px) + env(safe-area-inset-bottom, 0px)); padding: 8px 14px; }
	.cp-bar div span { display: none; }
	body.cp-bar-on .joinchat { --bottom: 140px; bottom: 140px !important; }
	.cp-price b { font-size: 30px; }
}

/* No ads on course pages: the page is for buying, not for leaving. */
body.ath-coursepage .code-block, body.ath-coursepage ins.adsbygoogle, body.ath-coursepage .google-auto-placed { display: none !important; }
.cp { padding-top: 22px; }
/* AdSense anchor / vignette ads are placed outside <body>. */
html:has(> body.ath-coursepage) > ins.adsbygoogle { display: none !important; }
