/* ============================================================
   ADEPT TRAINING CENTER — CATALOG STYLES
   File: css/catalog.css
   ============================================================ */

:root {
    --adept-primary: #0084D1;
    --adept-primary-dark: #006FB3;
    --adept-navy: #0F172A;
    --adept-navy-light: #1E293B;
    --adept-slate: #334155;
    --adept-slate-muted: #64748B;
    --adept-light: #F8FAFC;
    --adept-border: #E2E8F0;
    --adept-white: #FFFFFF;
    --adept-soft-blue: #F0F9FF;
}

* { box-sizing: border-box; }

body.catalog-page {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: var(--adept-light);
    color: var(--adept-navy);
    line-height: 1.6;
    overflow-x: hidden;
    width: 100%;
}
.catalog-page a { text-decoration: none; color: inherit; }
.catalog-page .adt-container {
    width: min(1200px, calc(100% - 40px));
    margin: 0 auto;
}
.catalog-page .course-title,
.catalog-page .syllabus-header__title {
    font-family: 'Poppins', 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

/* BREADCRUMB */
.catalog-breadcrumb { background: #fff; border-bottom: 1px solid var(--adept-border); }
.catalog-breadcrumb-inner { min-height: 48px; display: flex; align-items: center; }
.catalog-breadcrumb-list {
    list-style: none; display: flex; align-items: center; gap: 8px;
    margin: 0; padding: 0; font-size: .85rem;
}
.catalog-breadcrumb-list a { color: var(--adept-slate); }
.catalog-breadcrumb-list a:hover { color: var(--adept-primary); }
.catalog-breadcrumb-list .separator { color: #94A3B8; font-size: .7rem; }
.catalog-breadcrumb-list .current { color: var(--adept-primary); font-weight: 700; }

/* HERO */
.catalog-hero {
    background: linear-gradient(135deg, var(--adept-navy) 0%, #1E293B 100%);
    color: #fff;
    padding: 55px 0 65px;
    text-align: center;
}
.catalog-hero-content { max-width: 820px; margin: 0 auto; }
.catalog-hero-kicker {
    color: #38BDF8; font-size: .8rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 2px;
    display: inline-block; margin-bottom: 10px;
}
.catalog-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2rem, 3.8vw, 3rem);
    line-height: 1.2; margin: 0 0 12px; font-weight: 800;
}
.catalog-hero p { color: #CBD5E1; font-size: 1.05rem; margin: 0 0 28px; }

.catalog-search-form {
    display: flex; align-items: center;
    background: #fff; border-radius: 50px;
    padding: 6px 8px 6px 20px;
    box-shadow: 0 16px 36px rgba(0,0,0,.25);
    max-width: 680px; margin: 0 auto;
}
.catalog-search-form i {
    color: var(--adept-slate-muted); font-size: 1.1rem; margin-right: 12px;
}
.catalog-search-input {
    flex: 1; border: none; outline: none;
    font-size: .95rem; font-family: inherit;
    color: var(--adept-navy); background: transparent;
}
.catalog-search-btn {
    background: var(--adept-primary); color: #fff;
    border: none; border-radius: 50px;
    padding: 12px 28px; font-weight: 700; font-size: .9rem;
    cursor: pointer; transition: background .2s;
}
.catalog-search-btn:hover { background: var(--adept-primary-dark); }

/* CATEGORY FILTER BAR */
.catalog-filter-bar {
    background: #fff; border-bottom: 1px solid var(--adept-border);
    padding: 14px 0; position: sticky; top: 0; z-index: 20;
    box-shadow: 0 2px 8px rgba(15,23,42,.04);
}
.catalog-categories-scroll {
    display: flex; align-items: center; gap: 8px;
    overflow-x: auto; white-space: nowrap; padding-bottom: 2px;
}
.category-tab-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 16px; border-radius: 50px;
    font-size: .82rem; font-weight: 600;
    color: var(--adept-slate); background: var(--adept-light);
    border: 1px solid var(--adept-border); transition: all .2s;
}
.category-tab-btn:hover { background: #E2E8F0; color: var(--adept-navy); }
.category-tab-btn.active {
    background: var(--adept-navy); color: #fff; border-color: var(--adept-navy);
}

/* CATALOG MAIN */
.catalog-section { padding: 45px 0 80px; }
.catalog-header-row {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 28px; flex-wrap: wrap; gap: 16px;
    border-bottom: 1px solid var(--adept-border); padding-bottom: 18px;
}
.catalog-header-title {
    font-family: 'Poppins', sans-serif; font-size: 1.55rem;
    font-weight: 800; margin: 0;
}
.catalog-count-badge {
    font-size: .85rem; color: var(--adept-slate-muted);
    margin-top: 4px; display: flex; align-items: center; gap: 8px;
}
.accredited-pill {
    background: #ECFDF5; color: #065F46;
    border: 1px solid #A7F3D0; padding: 2px 8px;
    border-radius: 4px; font-size: .72rem; font-weight: 700;
}

/* PER-PAGE SELECTOR */
.per-page-selector {
    display: inline-flex; align-items: center;
    background: var(--adept-light);
    border: 1px solid var(--adept-border);
    border-radius: 10px; padding: 3px; gap: 4px; font-size: .78rem;
}
.per-page-label {
    color: var(--adept-slate-muted); font-weight: 700;
    padding: 0 8px; text-transform: uppercase;
    letter-spacing: .5px; font-size: .7rem;
}
.per-page-btn {
    padding: 5px 12px; border-radius: 6px;
    font-weight: 700; color: var(--adept-slate); transition: all .2s;
}
.per-page-btn.active {
    background: #fff; color: var(--adept-primary);
    box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.per-page-btn:hover:not(.active) { color: var(--adept-navy); }

/* COURSES GRID */
.courses-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.course-card {
    background: #fff; border: 1px solid var(--adept-border);
    border-radius: 18px; overflow: hidden;
    display: flex; flex-direction: column;
    box-shadow: 0 4px 15px rgba(15,23,42,.04);
    transition: transform .25s, box-shadow .25s, border-color .25s;
}
.course-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 32px rgba(0,132,209,.12);
    border-color: var(--adept-primary);
}
.course-card-body {
    padding: 24px; display: flex; flex-direction: column; flex: 1;
}
.course-card-meta {
    display: flex; align-items: center; justify-content: space-between;
    font-size: .78rem; color: var(--adept-slate-muted);
    font-weight: 600; margin-bottom: 12px;
}
.course-code-tag {
    color: var(--adept-primary); font-weight: 800; font-family: 'Poppins', sans-serif;
}
.course-title {
    font-family: 'Poppins', sans-serif; font-size: 1.12rem;
    font-weight: 700; line-height: 1.35; margin: 0 0 12px;
    color: var(--adept-navy);
}
.course-summary {
    color: var(--adept-slate); font-size: .88rem;
    line-height: 1.6; margin: 0 0 18px; flex: 1;
    display: -webkit-box; -webkit-line-clamp: 3;
    -webkit-box-orient: vertical; overflow: hidden;
}
.course-spec-list {
    display: flex; flex-direction: column; gap: 8px;
    padding: 12px 0;
    border-top: 1px solid var(--adept-border);
    border-bottom: 1px solid var(--adept-border);
    margin-bottom: 18px; font-size: .82rem; color: var(--adept-slate);
}
.course-spec-item { display: flex; align-items: center; gap: 8px; }
.course-spec-item i { color: var(--adept-primary); width: 16px; }
.course-card-footer {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.course-fee {
    font-family: 'Poppins', sans-serif; font-size: 1.1rem;
    font-weight: 800; color: var(--adept-navy);
    font-variant-numeric: tabular-nums;
}
.course-fee span {
    font-size: .72rem; color: var(--adept-slate-muted);
    font-weight: 500; display: block;
}
.btn-view-outline {
    padding: 8px 16px; border-radius: 50px;
    font-size: .82rem; font-weight: 700;
    background: var(--adept-soft-blue); color: var(--adept-primary);
    border: 1px solid rgba(0,132,209,.25);
    transition: all .2s; display: inline-flex; align-items: center; gap: 6px;
}
.btn-view-outline:hover { background: var(--adept-primary); color: #fff; }

/* PAGINATION */
.catalog-pagination-wrap {
    margin-top: 45px; padding-top: 28px;
    border-top: 1px solid var(--adept-border);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
}
.catalog-pagination-info { font-size: .85rem; color: var(--adept-slate); }
.catalog-pagination-info strong { color: var(--adept-navy); }
.catalog-pagination-nav {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.pagination-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 42px; height: 42px; padding: 0 14px;
    border-radius: 10px; font-size: .9rem; font-weight: 600;
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    background: #fff; color: var(--adept-slate);
    border: 1px solid var(--adept-border);
    transition: all .18s; text-decoration: none; cursor: pointer;
}
.pagination-btn:hover:not(.disabled):not(.active):not(.pagination-dots) {
    border-color: var(--adept-primary); color: var(--adept-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,132,209,.15);
}
.pagination-btn.active {
    background: var(--adept-primary); color: #fff;
    border-color: var(--adept-primary);
    box-shadow: 0 4px 12px rgba(0,132,209,.35);
    pointer-events: none;
}
.pagination-btn.disabled {
    opacity: .45; pointer-events: none; background: var(--adept-light);
}
.pagination-arrow { font-size: .8rem; padding: 0 12px; }
.pagination-dots {
    background: transparent; border: none; min-width: auto;
    padding: 0 6px; color: var(--adept-slate-muted); pointer-events: none;
}

/* EMPTY STATE */
.catalog-empty-state {
    text-align: center; padding: 65px 20px;
    background: #fff; border-radius: 18px;
    border: 1px dashed var(--adept-border);
    max-width: 600px; margin: 40px auto;
}
.catalog-empty-icon {
    width: 64px; height: 64px; border-radius: 50%;
    background: var(--adept-soft-blue); color: var(--adept-primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem; margin: 0 auto 18px;
}
.catalog-empty-state h3 {
    margin: 0 0 10px; font-family: 'Poppins', sans-serif; font-size: 1.3rem;
}
.catalog-empty-state p {
    color: var(--adept-slate); font-size: .92rem; margin: 0 0 22px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .courses-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 992px) {
    .courses-grid { gap: 16px; }
    .catalog-hero { padding: 40px 20px; }
    .catalog-hero h1 { font-size: 2rem; }
}
@media (max-width: 680px) {
    .courses-grid { grid-template-columns: 1fr; }
    .catalog-search-form { flex-direction: column; padding: 12px; border-radius: 16px; gap: 10px; }
    .catalog-search-input { width: 100%; text-align: center; }
    .catalog-search-btn { width: 100%; }
    .catalog-pagination-wrap { flex-direction: column; text-align: center; }
    .catalog-header-row { flex-direction: column; align-items: flex-start; }
    .course-card-body { padding: 16px; }
}
@media (max-width: 640px) {
    .catalog-pagination-nav { justify-content: center; }
    .pagination-btn { min-width: 38px; height: 38px; padding: 0 10px; font-size: .85rem; }
    .pagination-dots { display: none; }
}