/* Auxesis Academy. Colors come from the theme when it defines them, with Auxesis brand fallbacks. */
:root {
	--aux-primary: var(--wp--preset--color--primary, #0066C2);
	--aux-primary-deep: var(--wp--preset--color--primary-deep, #005BB0);
	--aux-azure: var(--wp--preset--color--azure, #0088FE);
	--aux-ink: var(--wp--preset--color--slate, #374550);
	--aux-muted: var(--wp--preset--color--muted, #5B6770);
	--aux-line: var(--wp--preset--color--line, #DDE3E9);
	--aux-surface: var(--wp--preset--color--surface, #F4F7FA);
	--aux-tint: var(--wp--preset--color--tint, #E8F2FE);
	--aux-radius: 10px;
}

/* ---------- Catalog ---------- */
.aux-catalog { width: 100%; }
.aux-filters { display: grid; grid-template-columns: 2fr repeat(4, minmax(0, 1fr)) auto; gap: .75rem; align-items: end; background: #fff; border: 1px solid var(--aux-line); border-radius: var(--aux-radius); padding: 1rem; box-shadow: 0 1px 2px rgba(27,37,48,.04), 0 8px 24px rgba(27,37,48,.06); }
.aux-field { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.aux-field > span { font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--aux-muted); }
.aux-field input, .aux-field select { font: inherit; font-size: .95rem; padding: .62rem .7rem; border: 1px solid #C9D2DB; border-radius: 6px; background: #fff; color: var(--aux-ink); width: 100%; box-sizing: border-box; }
.aux-field input:focus, .aux-field select:focus { outline: 2px solid var(--aux-azure); outline-offset: 0; border-color: var(--aux-azure); }
.aux-filter-actions { display: flex; align-items: center; gap: .9rem; }
.aux-filter-actions button { font: inherit; font-weight: 600; font-size: .95rem; background: var(--aux-primary); color: #fff; border: 0; border-radius: 6px; padding: .66rem 1.2rem; cursor: pointer; }
.aux-filter-actions button:hover { background: var(--aux-primary-deep); }
.aux-filter-actions a { font-size: .9rem; color: var(--aux-primary); white-space: nowrap; }
@media (max-width: 1000px) { .aux-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } .aux-field-kw { grid-column: 1 / -1; } .aux-filter-actions { grid-column: 1 / -1; } }
@media (max-width: 520px) { .aux-filters { grid-template-columns: 1fr; } }
.aux-count { margin: 1.4rem 0 1rem; font-size: .9rem; color: var(--aux-muted); }

.aux-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17.5rem, 1fr)); gap: 1.5rem; }
.aux-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--aux-line); border-radius: var(--aux-radius); overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.aux-card:hover { box-shadow: 0 12px 32px rgba(27,37,48,.10); transform: translateY(-2px); border-color: #C9D2DB; }
.aux-card-cover { display: block; aspect-ratio: 16 / 9; background: var(--aux-surface); overflow: hidden; }
.aux-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.aux-card-ph { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; background: linear-gradient(135deg, #1B2530 0%, #374550 60%, #0066C2 140%); }
.aux-card-ph span { font-size: 3rem; font-weight: 700; color: rgba(255,255,255,.9); }
.aux-card-body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.aux-card-subject { margin: 0; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--aux-primary); }
.aux-card-title { margin: 0; font-size: 1.15rem; line-height: 1.3; }
.aux-card-title a { color: var(--aux-ink); text-decoration: none; }
.aux-card-title a:hover { color: var(--aux-primary); text-decoration: underline; }
.aux-card-title a::after { content: ""; position: absolute; inset: 0; }
.aux-card { position: relative; }
.aux-card-summary { margin: 0; font-size: .92rem; line-height: 1.55; color: var(--aux-muted); }
.aux-card-meta { list-style: none; margin: auto 0 0; padding: .7rem 0 0; border-top: 1px solid var(--aux-line); display: flex; flex-wrap: wrap; gap: .35rem 1.1rem; font-size: .85rem; color: var(--aux-ink); }
.aux-card-meta span { display: block; font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--aux-muted); }

.aux-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.aux-chip { display: inline-block; font-size: .75rem; font-weight: 600; line-height: 1; padding: .38rem .6rem; border-radius: 999px; background: var(--aux-tint); color: #004F99; }
.aux-chip-live, .aux-chip-appointment { background: #EEF1F4; color: var(--aux-ink); }
.aux-chip-internal { background: #E6F4EA; color: #1E5E33; }
.aux-chip-archived { background: #F1F1F1; color: #555; }
.aux-chip-example { background: #FFF1E0; color: #8A4B00; }
.aux-price { font-weight: 700; color: var(--aux-ink); }
.aux-price-date { font-size: .8em; color: var(--aux-muted); }

.aux-empty { border: 1px dashed #C9D2DB; border-radius: var(--aux-radius); padding: 2rem 1.5rem; text-align: center; background: var(--aux-surface); }
.aux-empty-title { font-size: 1.15rem; font-weight: 600; color: var(--aux-ink); margin: 0 0 .5rem; }

/* ---------- Course page ---------- */
.aux-course-head { background: var(--aux-surface); border-bottom: 1px solid var(--aux-line); padding-top: clamp(2rem, 5vw, 4rem); padding-bottom: clamp(2rem, 5vw, 4rem); }
.aux-course-head-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.aux-course-head .wp-block-post-title { margin: .35rem 0 .75rem; font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.12; }
.aux-course-lead { font-size: 1.15rem; line-height: 1.6; color: var(--aux-ink); margin-bottom: 1rem; }
.aux-crumbs { font-size: .85rem; margin: 0; }
.aux-crumbs a { color: var(--aux-primary); text-decoration: none; }
.aux-crumbs a::before { content: "\2190  "; }
.aux-course-side { background: #fff; border: 1px solid var(--aux-line); border-radius: var(--aux-radius); overflow: hidden; box-shadow: 0 12px 32px rgba(27,37,48,.08); }
.aux-course-side .wp-block-post-featured-image { margin: 0; }
.aux-enroll { padding: 1.25rem; display: flex; flex-direction: column; gap: .7rem; }
.aux-enroll-price { margin: 0; font-size: 1.3rem; }
.aux-btn { display: block; text-align: center; font-weight: 600; text-decoration: none; border-radius: 6px; padding: .85rem 1rem; }
.aux-btn-primary { background: var(--aux-primary); color: #fff !important; }
.aux-btn-primary:hover { background: var(--aux-primary-deep); }
.aux-btn-secondary { border: 1px solid var(--aux-primary); color: var(--aux-primary) !important; }
.aux-btn-secondary:hover { background: var(--aux-tint); }
.aux-enroll-note { margin: 0; font-size: .82rem; line-height: 1.5; color: var(--aux-muted); }
.aux-notice { background: #fff; border-left: 3px solid var(--aux-azure); padding: .6rem .85rem; font-size: .9rem; margin: .5rem 0; }
.aux-notice-example { border-left-color: #D98300; background: #FFF8EE; }
.aux-course-body { padding-top: clamp(2rem, 5vw, 3.5rem); padding-bottom: clamp(3rem, 6vw, 5rem); }
.aux-course-body-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(1.5rem, 5vw, 4rem); align-items: start; }
.aux-objectives { background: #fff; border: 1px solid var(--aux-line); border-radius: var(--aux-radius); padding: 1.25rem 1.4rem; margin-bottom: 2rem; }
.aux-objectives h2, .aux-about-h, .aux-aside-h { font-size: 1.3rem; margin: 0 0 .8rem; }
.aux-objectives ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.aux-objectives li { position: relative; padding-left: 1.7rem; }
.aux-objectives li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1rem; height: 1rem; border-radius: 50%; background: var(--aux-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.2l2.4 2.4L12 5' fill='none' stroke='%230066C2' stroke-width='2'/%3E%3C/svg%3E") center/80% no-repeat; }
.aux-course-aside { position: sticky; top: 6rem; background: var(--aux-surface); border-radius: var(--aux-radius); padding: 1.25rem 1.4rem; }
.aux-facts { margin: 0; }
.aux-facts > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--aux-line); font-size: .92rem; }
.aux-facts > div:first-child { border-top: 0; }
.aux-facts dt { font-weight: 600; color: var(--aux-muted); }
.aux-facts dd { margin: 0; color: var(--aux-ink); }
@media (max-width: 860px) {
	.aux-course-head-grid, .aux-course-body-grid { grid-template-columns: 1fr; }
	.aux-course-aside { position: static; }
}
