/* Site chrome and home page (class-site.php). Brand red #E91D26. */
:root {
	--dct-red: #E91D26;
	--dct-red-dark: #B5121A;
	--dct-ink: #111827;
	--dct-muted: #6B7280;
	--dct-line: #E5E7EB;
	--dct-soft: #F8FAFC;
}

.dct-wrap { max-width: 1140px; margin: 0 auto; padding-left: 16px; padding-right: 16px; box-sizing: border-box; }

/* Header */
.dct-hd { background: #fff; border-bottom: 1px solid var(--dct-line); position: sticky; top: 0; z-index: 1000; }
.admin-bar .dct-hd { top: 32px; }
.dct-hd-in { display: flex; align-items: center; gap: 20px; min-height: 64px; }
.dct-brand { display: flex; align-items: center; gap: 10px; color: var(--dct-ink) !important; text-decoration: none !important; font-weight: 700; font-size: 18px; line-height: 1.2; }
.dct-brand img { border-radius: 50%; flex: none; }
.dct-nav { display: flex; gap: 4px; margin-left: auto; }
.dct-nav a { color: var(--dct-ink) !important; text-decoration: none !important; padding: 8px 12px; border-radius: 8px; font-size: 15px; }
.dct-nav a:hover { background: var(--dct-soft); }
.dct-nav a[aria-current="page"] { color: var(--dct-red) !important; font-weight: 600; }
.dct-btn-hd { background: var(--dct-red); color: #fff !important; text-decoration: none !important; padding: 9px 16px; border-radius: 8px; font-weight: 600; font-size: 15px; white-space: nowrap; }
.dct-btn-hd:hover { background: var(--dct-red-dark); }

/* Footer */
.dct-ft { background: var(--dct-ink); color: #D1D5DB; margin-top: 48px; padding: 40px 0 20px; font-size: 15px; }
.dct-ft-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 28px; }
.dct-ft h3 { color: #fff; font-size: 15px; margin: 0 0 12px; letter-spacing: .02em; }
.dct-ft ul { list-style: none; margin: 0; padding: 0; }
.dct-ft li { margin: 0 0 8px; }
.dct-ft a { color: #D1D5DB !important; text-decoration: none !important; word-break: break-word; }
.dct-ft a:hover { color: #fff !important; }
.dct-brand-ft, .dct-brand-ft span { color: #fff !important; }
.dct-ft-about p { margin: 12px 0 0; color: #9CA3AF; }
.dct-ft-base { border-top: 1px solid #374151; margin-top: 28px; padding-top: 16px; color: #9CA3AF; font-size: 13px; }

/* Phone bottom bar */
.dct-bb { display: none; }

@media (max-width: 781px) {
	.dct-nav { display: none; }
	.dct-brand { font-size: 16px; }
	.dct-hd-in { min-height: 56px; justify-content: space-between; }
	.admin-bar .dct-hd { top: 0; position: relative; }
	.dct-ft-grid { grid-template-columns: 1fr 1fr; }
	.dct-ft-about { grid-column: 1 / -1; }
	.dct-ft { padding-bottom: 84px; }

	.dct-bb { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99970; background: #fff; border-top: 1px solid var(--dct-line); box-shadow: 0 -4px 16px rgba(0,0,0,.06); padding-bottom: env(safe-area-inset-bottom); }
	.dct-bb a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; color: var(--dct-muted) !important; text-decoration: none !important; font: 500 11px/1.2 system-ui, sans-serif; }
	.dct-bb a[aria-current="page"] { color: var(--dct-red) !important; }
	body { padding-bottom: 64px; }
	/* Lift the WhatsApp button and the install banner above the bar. */
	.dct-wa { bottom: 76px !important; padding: 10px 12px !important; }
	.dct-wa span { display: none; }
	#dct-install { bottom: 76px !important; }
	#dct-install[style*="flex"] ~ .dct-wa { bottom: 156px !important; }
}
html.dct-exam-open .dct-bb, html.dct-exam-open .dct-hd { display: none; }

/* Theme template parts that we replace: hide the theme's own title on the home page. */
.home .wp-block-post-title { display: none; }
.home main.wp-block-group { margin-top: 0 !important; }
.home main > .wp-block-group:first-child { padding-top: 0 !important; }
.home .entry-content { margin-top: 0 !important; }
/* Test and notes pages use the blog's single template: drop its "Written by", previous/next links and "More posts". */
.single-dct_test main .wp-block-post-title + .wp-block-group,
.single-dct_pdf main .wp-block-post-title + .wp-block-group,
.single-dct_test main .alignwide,
.single-dct_pdf main .alignwide { display: none !important; }

/* Tutor course cards and pages: never show the instructor's login name. */
.tutor-course-card .tutor-meta,
.tutor-course-details-instructors,
.tutor-single-course-author-meta,
.tutor-course-details-page .tutor-meta a[href*="/profile/"] { display: none !important; }
.dct-cfoot { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.dct-cprice { font-weight: 700; color: var(--dct-red); font-size: 18px; }
.dct-cprice s { color: var(--dct-muted); font-weight: 400; font-size: 14px; margin-left: 4px; }
.dct-cfoot .tutor-btn { background: var(--dct-red) !important; border-color: var(--dct-red) !important; color: #fff !important; }

/* Home page */
.dct-home { font-size: 16px; color: var(--dct-ink); }
.dct-home h2 { font-size: clamp(22px, 3vw, 28px); margin: 40px 0 16px; }
.dct-home h3 { font-size: 17px; margin: 0 0 6px; }
.dct-hero { background: linear-gradient(135deg, var(--dct-red) 0%, var(--dct-red-dark) 100%); color: #fff; padding: 56px 0 52px; }
.dct-hero h1 { color: #fff; font-size: clamp(30px, 5vw, 48px); line-height: 1.1; margin: 8px 0 14px; max-width: 760px; }
.dct-kicker { margin: 0; opacity: .9; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
.dct-lead { font-size: clamp(16px, 2vw, 19px); max-width: 680px; opacity: .95; margin: 0 0 24px; }
.dct-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.dct-btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600; text-decoration: none !important; }
.dct-btn-light { background: #fff; color: var(--dct-red) !important; }
.dct-btn-ghost { border: 2px solid rgba(255,255,255,.8); color: #fff !important; }
.dct-btn-wa { background: #25D366; color: #fff !important; white-space: nowrap; }
.dct-notice-box { margin: 24px 0 0; background: #FFF7ED; border: 1px solid #FED7AA; border-radius: 12px; padding: 14px 16px; line-height: 1.5; }
.dct-notice-box a { color: var(--dct-red) !important; font-weight: 600; white-space: nowrap; }
.dct-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.dct-stats div { background: var(--dct-soft); border: 1px solid var(--dct-line); border-radius: 12px; padding: 16px; text-align: center; }
.dct-stats strong { display: block; font-size: clamp(22px, 4vw, 32px); color: var(--dct-red); }
.dct-stats span { color: var(--dct-muted); font-size: 14px; }
.dct-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.dct-chip { border: 1px solid var(--dct-line); border-radius: 999px; padding: 8px 14px; color: var(--dct-ink) !important; text-decoration: none !important; background: #fff; font-size: 15px; }
.dct-chip:hover { border-color: var(--dct-red); color: var(--dct-red) !important; }
.dct-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.dct-card { display: flex; flex-direction: column; border: 1px solid var(--dct-line); border-radius: 12px; overflow: hidden; background: #fff; color: var(--dct-ink) !important; text-decoration: none !important; transition: box-shadow .15s; }
.dct-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.dct-card-img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.dct-card-ph { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #FEE2E2, #FECACA); color: var(--dct-red); font-size: 40px; font-weight: 700; }
.dct-card-t { padding: 12px 14px 4px; font-weight: 600; line-height: 1.35; }
.dct-card-p { padding: 0 14px 14px; color: var(--dct-red); font-weight: 700; margin-top: auto; }
.dct-more { color: var(--dct-red) !important; font-weight: 600; text-decoration: none !important; }
.dct-muted { color: var(--dct-muted); }
.dct-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.dct-feats > div { border: 1px solid var(--dct-line); border-radius: 12px; padding: 16px; }
.dct-feats p { margin: 0; color: #374151; }
.dct-news { list-style: none; margin: 0; padding: 0; }
.dct-news li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--dct-line); }
.dct-news a { color: var(--dct-ink) !important; font-weight: 600; text-decoration: none !important; }
.dct-news span { color: var(--dct-muted); white-space: nowrap; font-size: 14px; }
.dct-help-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: var(--dct-soft); border: 1px solid var(--dct-line); border-radius: 12px; padding: 20px; margin-top: 40px; }
.dct-help-strip h2 { margin: 0 0 4px; }
.dct-help-strip p { margin: 0; color: #374151; }

@media (max-width: 781px) {
	.dct-hero { padding: 36px 0; }
	.dct-stats { gap: 8px; }
	.dct-stats div { padding: 12px 6px; }
	.dct-stats span { font-size: 12px; }
}
