/* Training Desk Connect — frontend styles.
   Intentionally light-touch: inherits the theme's fonts and colors,
   only adds structure. Override in your theme's Additional CSS. */
.tdc-grid {
	display: grid;
	gap: 1.5rem;
	margin: 0rem 0rem;
	max-width: 1280px;
}
.tdc-cols-1 { grid-template-columns: 1fr; }
.tdc-cols-2 { grid-template-columns: repeat(2, 1fr); }
.tdc-cols-3 { grid-template-columns: repeat(3, 1fr); }
.tdc-cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1400px) {
	    .tdc-cols-3, .tdc-cols-4 {
        grid-template-columns: repeat(3, 1fr);
        margin-left: 15px !important;
        margin-right: 15px !important;
    }
}
@media (max-width: 900px) {
	    .tdc-cols-2, .tdc-cols-3, .tdc-cols-4 {
        grid-template-columns: 1fr;
        margin-left: 15px !important;
        margin-right: 15px !important;
    }
}

a.tdc-btn:hover {
    background-color: transparent !important;
    color: black !important;
    border: 1px solid black !important;
	padding: 0.6rem 1.25rem;
}
a.tdc-btn:hover.tdc-btn:after {
    background: url(/wp-content/uploads/2026/07/quill_arrow-up-1.svg);
}
.tdc-card {
	display: flex;
	flex-direction: column;
	border: none !important;
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 14px rgba(0, 0, 0, 0.08) !important;
}
.tdc-card-media img {
	display: block;
	width: 100%;
	height: 180px;
	object-fit: cover;
}
.tdc-card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 29px 1.2rem 1.3rem;
    gap: 0.55rem;
    font-family: "Arial", sans-serif;
}
.tdc-code {
    font-size: 24px;
    line-height: 24px;
    text-transform: uppercase;
    /* opacity: 0.65; */
    color: #000000 !important;
    font-weight: 700 !important;
}
.tdc-title {
    margin: 0;
    font-size: 18px !important;
    line-height: 24px !important;
}
.tdc-title a {
	text-decoration: none;
	color: inherit;
}
.tdc-title a:hover,
.tdc-title a:focus-visible {
	text-decoration: none !important;
}
.tdc-excerpt {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.55;
	opacity: 0.85;
}
.tdc-meta {
	display: flex;
	flex-direction: column;   /* was: row (default) — this is the only real change */
	gap: 4px;
	margin-bottom: 12px;
}
/* .tdc-price { font-weight: 700; color: #1a1a1a; } */
.tdc-seats { font-size: 18px; color: #000000; }
.tdc-duration {
    font-size: 18px;
    color: #000000;
    opacity: unset !important;
}
span.tdc-price strong {
    font-size: 18px !important;
}
span.tdc-price {
    font-size: 20px !important;
    color: black !important;
}
/* .tdc-price { font-weight: 700; font-size: 1.05rem; } */
.tdc-btn {
	display: inline-block;
	align-self: flex-start;
	padding: 0.6rem 1.25rem;
	border-radius: 6px;
	background: #fe5001 !important;
	color: #fff !important;
	font-weight: 600;
	text-decoration: none;
	transition: filter 0.15s ease;
}
.tdc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tdc-btn:after {
    content: "";
    width: 16px;
    height: 16px;
    display: inline-block;
    background: url('/wp-content/uploads/2026/07/quill_arrow-up-2.svg') no-repeat center;
    background-size: contain;
}
.tdc-btn:hover,
.tdc-btn:focus-visible {
	filter: brightness(1.1);
	color: #fff;
}
.tdc-login {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex-wrap: wrap;
	margin: 1rem 0;
}
.tdc-link { font-size: 0.92rem; }
.tdc-embed { margin: 1.5rem 0; }
.tdc-embed-fallback { margin-top: 0.75rem; text-align: center; }
.tdc-single-panel {
	margin-top: 2rem !important;
	margin-bottom: 2rem !important;
	padding: 1.25rem 1.5rem;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-left: 1px solid #d3d3cf;
	border-radius: 8px;
	background: rgba(0, 0, 0, 0.02);
}
.tdc-single-panel p { margin: 0.35rem 0; }
.tdc-single-panel .tdc-btn { margin-top: 0.75rem; }
.tdc-empty {
	padding: 1rem 1.25rem;
	border: 1px dashed rgba(0, 0, 0, 0.25);
	border-radius: 8px;
	opacity: 0.8;
}

/* ---------- Course Category archive page (added) ---------- */
.tdc-category-archive {
	max-width: 1280px;
    margin: 0 auto;
    padding: 0rem 0rem 3rem;
}
.tdc-category-banner img {
	width: 100%;
	max-height: 320px;
	object-fit: cover;
	border-radius: 12px;
	display: block;
	margin-bottom: 1.5rem;
}
.tdc-category-header {
	margin-bottom: 1rem;
}
.tdc-category-title {
    margin: 0 0 0.4rem;
    font-family: "SF-New-Republic", sans-serif;
    font-size: 48px !important;
    align-items: center !important;
    text-align: center !important;
}
.tdc-category-description {
	margin: 0;
	opacity: 0.8;
}

/* ---------- Course card description (added) ---------- */
.tdc-card-description {
	margin: 0;
	font-size: 0.92rem;
	line-height: 1.55;
	opacity: 0.85;
}

/* ---------- Home page course card description — clamp to 3 lines (added) ---------- */
/* Only applies inside .tdc-grid-home, which the plugin only adds on the
   front page — Course Category pages and the Single Course page are
   untouched by this rule. */
.tdc-grid-home .tdc-card-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-height: 4.7em;
    line-height: 22px !important;
    font-size: 16px !important;
    opacity: 0.85;
}
.tdc-grid-home .tdc-card-description p {
	margin: 0;
}