/* Public document pages (/documents/). Colours follow igif.css: orange #FF8C40, course tile palette. */

.doc-page h1, .doc-page h2, .doc-page h3 { color: #2b2b2b; }

/* Hero band, same dark tone as the homepage carousel */
.doc-hero {
	background: linear-gradient(135deg, #343a40 0%, #23272b 100%);
	color: #fff;
	padding: 4rem 0 3rem;
}
.doc-page .doc-hero h1 { color: #fff; font-weight: 800; margin-bottom: .5rem; }
.doc-hero h1 span { color: #FF8C40; }
.doc-hero p { color: rgba(255, 255, 255, .75); font-size: 1.1rem; margin-bottom: 0; }

/* Category chips */
.doc-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.doc-chips a {
	border: 1px solid #dee2e6; border-radius: 999px; background: #fff;
	padding: .35rem 1rem; font-size: .9rem; font-weight: 600; color: #3C3C3C;
	text-decoration: none; transition: all .15s;
}
.doc-chips a:hover { border-color: #FF8C40; color: #E06A1B; }
.doc-chips a.active { background: #FF8C40; border-color: #FF8C40; color: #fff; }
.doc-chips .count { font-weight: 400; opacity: .7; margin-left: .25rem; }
.doc-total { color: #6c757d; font-size: .9rem; }

/* Cards */
.doc-card {
	border: 0; border-radius: 12px; overflow: hidden; height: 100%;
	box-shadow: 0 2px 10px rgba(0, 0, 0, .08);
	transition: transform .15s ease, box-shadow .15s ease;
}
.doc-card:hover { transform: translateY(-4px); box-shadow: 0 12px 24px rgba(0, 0, 0, .12); }
.doc-cover { width: 100%; height: 190px; object-fit: cover; }
.doc-category { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6c757d; }
.doc-page .doc-card .card-title {
	font-size: 1.05rem; font-weight: 700; line-height: 1.3; margin: .35rem 0 .5rem;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em;
}
.doc-card .card-title a { color: #2b2b2b; text-decoration: none; }
.doc-card:hover .card-title a { color: #E06A1B; }
.doc-meta { font-size: .875rem; color: #6c757d; }
.doc-price {
	display: inline-block; background: #FFF1E6; color: #E06A1B; font-weight: 700;
	border-radius: 999px; padding: .25rem .8rem; white-space: nowrap;
}

/* Placeholder tile when a document has no cover */
.doc-tile {
	height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center;
	color: #fff; font-weight: 700; text-align: center; padding: 1rem;
}
.doc-tile i { font-size: 3rem; margin-bottom: .75rem; opacity: .9; }
.doc-tile-0 { background: linear-gradient(135deg, #007bff, #0056b3); }
.doc-tile-1 { background: linear-gradient(135deg, #28a745, #1e7e34); }
.doc-tile-2 { background: linear-gradient(135deg, #e83e8c, #c21f6e); }
.doc-tile-3 { background: linear-gradient(135deg, #26789e, #1b5a78); }

.doc-empty { text-align: center; padding: 4rem 1rem; color: #6c757d; }
.doc-empty i { font-size: 3rem; color: #ced4da; margin-bottom: 1rem; }

/* Detail page */
.doc-breadcrumb { background: transparent; padding: 0; margin-bottom: 1.5rem; font-size: .9rem; }
.doc-breadcrumb a { color: #E06A1B; }
.doc-detail-visual { border-radius: 12px; overflow: hidden; box-shadow: 0 2px 14px rgba(0, 0, 0, .1); }
.doc-detail-visual img { width: 100%; display: block; }
.doc-detail-visual .doc-tile { height: 380px; font-size: 1.25rem; }
.doc-detail-visual .doc-tile i { font-size: 5rem; }
.doc-page .doc-title { font-weight: 800; font-size: 2rem; }
.doc-buybox { border-radius: 12px; box-shadow: 0 2px 14px rgba(0, 0, 0, .08); padding: 1.5rem; margin: 1.5rem 0; }
.doc-buybox .price { font-size: 2rem; font-weight: 800; color: #E06A1B; line-height: 1; }
.doc-facts { list-style: none; padding: 0; margin: 1.25rem 0 0; font-size: .9rem; }
.doc-facts li { display: flex; justify-content: space-between; padding: .45rem 0; border-top: 1px solid #f1f1f1; }
.doc-facts li span:first-child { color: #6c757d; }
.doc-description { line-height: 1.7; }
.doc-author { background: #f8f9fa; border-radius: 12px; padding: 1.25rem 1.5rem; }
.doc-section-title { font-weight: 800; font-size: 1.4rem; margin-bottom: 1.25rem; }

/* Search box in the hero */
.doc-search {
	display: flex; align-items: center; max-width: 640px;
	background: #fff; border-radius: 999px; padding: .35rem .35rem .35rem 1.1rem;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
}
.doc-search i { color: #adb5bd; }
.doc-search input { flex: 1; border: 0; outline: 0; padding: .5rem .75rem; font-size: 1rem; min-width: 0; background: transparent; }
.doc-search .btn { background: #FF8C40; color: #fff; border-radius: 999px; padding: .5rem 1.4rem; font-weight: 700; }
.doc-search .btn:hover { background: #E06A1B; color: #fff; }

/* Filter bar */
.doc-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; padding: 1rem 1.25rem; background: #f8f9fa; border-radius: 12px; }
.doc-filter label { display: block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #6c757d; margin-bottom: .3rem; }
.doc-filter .custom-select { min-width: 190px; }
.doc-filter input[type=number] { width: 105px; }
.doc-btn-filter { background: #343a40; color: #fff; border-radius: 6px; padding: .3rem 1.1rem; }
.doc-btn-filter:hover { background: #23272b; color: #fff; }
.doc-results-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.doc-clear { color: #E06A1B; font-weight: 600; font-size: .9rem; }
.doc-clear:hover { color: #c0560f; }
/* The site theme makes .form-control very tall; match the small selects */
.doc-filters .form-control { height: calc(1.5em + .5rem + 2px); padding: .25rem .5rem; font-size: .875rem; border-radius: .2rem; }

/* Checkout and purchase status */
.doc-btn-primary { background: #FF8C40; color: #fff; border-radius: 6px; font-weight: 700; }
.doc-btn-primary:hover { background: #E06A1B; color: #fff; }
.doc-btn-wave { background: #1dc3ff; color: #fff; border-radius: 6px; font-weight: 700; }
.doc-btn-wave:hover { background: #0aa8e0; color: #fff; }
.doc-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .75rem; }
.doc-mode { display: flex; align-items: center; gap: .75rem; border: 2px solid #e9ecef; border-radius: 10px; padding: 1rem; cursor: pointer; font-weight: 600; margin: 0; }
.doc-mode:hover { border-color: #FF8C40; }
.doc-mode input { accent-color: #FF8C40; width: 1.1rem; height: 1.1rem; }
.doc-mode:focus-within { border-color: #FF8C40; }
.doc-wave-number { font-size: 1.75rem; font-weight: 800; letter-spacing: .05em; color: #2b2b2b; }
.doc-declare .form-control, .doc-page form .form-control { height: calc(1.5em + .75rem + 2px); }
.doc-steps { display: flex; list-style: none; padding: 0; margin: 1.5rem 0; counter-reset: step; }
.doc-steps li { flex: 1; position: relative; text-align: center; font-size: .85rem; font-weight: 600; color: #adb5bd; counter-increment: step; }
.doc-steps li::before { content: counter(step); display: block; width: 2rem; height: 2rem; line-height: 2rem; margin: 0 auto .4rem; border-radius: 50%; background: #e9ecef; color: #6c757d; }
.doc-steps li.current { color: #E06A1B; }
.doc-steps li.current::before { background: #FF8C40; color: #fff; }
.doc-steps li.done { color: #28a745; }
.doc-steps li.done::before { content: "\2713"; background: #28a745; color: #fff; }
.doc-steps li.failed { color: #dc3545; }
.doc-steps li.failed::before { content: "\2715"; background: #dc3545; color: #fff; }
.doc-status { display: flex; gap: 1rem; align-items: flex-start; border-radius: 12px; padding: 1.25rem 1.5rem; }
.doc-status > i { font-size: 1.75rem; margin-top: .15rem; }
.doc-status-info { background: #FFF1E6; } .doc-status-info > i { color: #E06A1B; }
.doc-status-success { background: #e9f7ef; } .doc-status-success > i { color: #28a745; }
.doc-status-danger { background: #fdecee; } .doc-status-danger > i { color: #dc3545; }

/* QR code payment mode */
.doc-qr { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem; }
.doc-qr img { width: 220px; max-width: 100%; border: 1px solid #e9ecef; border-radius: 12px; padding: .5rem; background: #fff; }
.doc-qr-steps { margin: 0; padding-left: 1.2rem; line-height: 1.9; }
