/* College Predictor theme — shared header, menu, footer and page components */

:root {
	--cp-blue: #327cc3;
	--cp-blue-dk: #1f5a96;
	--cp-blue-lt: #4fa3e8;
	--cp-red: #d9251d;
	--cp-ink: #1d2939;
	--cp-muted: #667085;
	--cp-line: #e4e7ec;
	--cp-soft: #f4f8fc;
	--cp-page: #f6f8fb;
}

body { background: var(--cp-page); font-family: 'Roboto', sans-serif; color: var(--cp-ink); }

/* ---------- Top strip ---------- */
.cp-strip { background: var(--cp-blue-dk); color: #dbe8f5; font-size: 13px; }
.cp-strip .cp-inner { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 12px; }
.cp-strip a { color: #dbe8f5; text-decoration: none; }
.cp-strip a:hover { color: #fff; }
.cp-strip .cp-strip-links a { margin-left: 18px; }
.cp-strip .cp-strip-links a:first-child { margin-left: 0; }

.cp-inner { max-width: 1320px; margin: 0 auto; padding: 0 16px; }

/* ---------- Main header + menu ---------- */
.cp-header { background: #fff; border-bottom: 1px solid var(--cp-line); box-shadow: 0 2px 10px rgba(16, 24, 40, .05); position: sticky; top: 0; z-index: 1030; }
.cp-header .cp-inner { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.cp-logo img { height: 52px; width: auto; display: block; }

.cp-menu { display: flex; align-items: center; gap: 2px; margin: 0; padding: 0; list-style: none; }
.cp-menu > li { position: relative; }
.cp-menu > li > a, .cp-menu > li > button {
	display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-radius: 8px;
	font-size: 15px; font-weight: 500; color: var(--cp-ink); background: none; border: 0; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.cp-menu > li > a:hover, .cp-menu > li > button:hover, .cp-menu > li.cp-open > button { background: var(--cp-soft); color: var(--cp-blue-dk); }
.cp-menu > li.cp-active > a, .cp-menu > li.cp-active > button { color: var(--cp-blue); }
.cp-menu > li.cp-active > a::after, .cp-menu > li.cp-active > button::after {
	content: ""; position: absolute; left: 12px; right: 12px; bottom: -15px; height: 3px; border-radius: 3px 3px 0 0; background: var(--cp-blue);
}
.cp-menu .cp-caret { font-size: 11px; transition: transform .15s; }
.cp-menu li.cp-open .cp-caret { transform: rotate(180deg); }
.cp-new { background: var(--cp-red); color: #fff; font-size: 10px; font-weight: 700; border-radius: 4px; padding: 1px 5px; letter-spacing: .03em; }

.cp-drop {
	display: none; position: absolute; top: calc(100% + 8px); left: 0; min-width: 270px; background: #fff;
	border: 1px solid var(--cp-line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 40, .12); padding: 8px; z-index: 1040;
}
.cp-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.cp-menu li.cp-open > .cp-drop { display: block; }
.cp-menu li.cp-open > .cp-drop-wide { display: grid; grid-template-columns: repeat(2, minmax(220px, 1fr)); gap: 4px 12px; min-width: 500px; }
.cp-drop-right { left: auto; right: 0; }
.cp-drop h6 { font-size: 11px; font-weight: 700; color: var(--cp-muted); text-transform: uppercase; letter-spacing: .06em; margin: 8px 10px 4px; }
.cp-drop a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--cp-ink); font-size: 14px; text-decoration: none; }
.cp-drop a:hover { background: var(--cp-soft); color: var(--cp-blue-dk); }
.cp-drop a.cp-current { background: #e8f1fb; color: var(--cp-blue-dk); font-weight: 600; }
.cp-drop hr { margin: 6px 4px; border-color: var(--cp-line); }

.cp-burger { display: none; width: 44px; height: 44px; border: 1px solid var(--cp-line); border-radius: 10px; background: #fff; color: var(--cp-ink); font-size: 18px; }

.cp-adbar { text-align: center; padding: 12px 0 0; }

@media (max-width: 1099px) {
	.cp-burger { display: inline-flex; align-items: center; justify-content: center; }
	.cp-logo img { height: 42px; }
	.cp-header .cp-inner { min-height: 64px; flex-wrap: wrap; }
	.cp-nav { display: none; width: 100%; padding: 4px 0 12px; max-height: calc(100vh - 64px); overflow-y: auto; }
	.cp-nav.cp-show { display: block; }
	.cp-menu { flex-direction: column; align-items: stretch; }
	.cp-menu > li > a, .cp-menu > li > button { width: 100%; justify-content: space-between; padding: 12px; }
	.cp-menu > li.cp-active > a::after, .cp-menu > li.cp-active > button::after { display: none; }
	.cp-drop { position: static; box-shadow: none; border: 0; border-left: 2px solid var(--cp-line); border-radius: 0; margin: 0 0 6px 14px; padding: 0 0 0 8px; min-width: 0; }
	.cp-drop::before { display: none; }
	.cp-menu li.cp-open > .cp-drop-wide { display: block; min-width: 0; }
}

/* ---------- Page layout ---------- */
.cp-page { padding-top: 20px; }
@media (max-width: 480px) { #left-ad { display: none !important; } }

/* Hero */
.cp-hero { background: linear-gradient(135deg, var(--cp-blue-dk) 0%, var(--cp-blue) 60%, var(--cp-blue-lt) 100%); border-radius: 16px; padding: 30px 28px; color: #fff; position: relative; overflow: hidden; margin-bottom: 20px; }
.cp-hero::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.cp-hero h1 { font-size: 26px; font-weight: 700; margin: 0 0 8px; color: #fff; position: relative; z-index: 1; line-height: 1.3; }
.cp-hero p { margin: 0; opacity: .92; font-size: 15px; max-width: 600px; position: relative; z-index: 1; }
.cp-hero .cp-icon { width: 52px; height: 52px; border-radius: 12px; background: rgba(255, 255, 255, .18); display: inline-flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 14px; position: relative; z-index: 1; }
.cp-steps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; position: relative; z-index: 1; }
.cp-steps span { background: rgba(255, 255, 255, .16); border-radius: 999px; padding: 5px 12px; font-size: 13px; }

/* Card */
.cp-card { scroll-margin-top: 90px; background: #fff; border: 1px solid var(--cp-line); border-radius: 14px; box-shadow: 0 1px 3px rgba(16, 24, 40, .06); padding: 24px; margin-bottom: 20px; }
.cp-card h2 { font-size: 18px; font-weight: 700; margin: 0 0 4px; color: var(--cp-ink); }
.cp-card .cp-sub { color: var(--cp-muted); font-size: 14px; margin-bottom: 18px; }
.cp-card p { line-height: 1.7; }

/* Forms */
.cp-form label { font-weight: 500; font-size: 14px; margin-bottom: 6px; display: block; color: var(--cp-ink); }
.cp-form .cp-opt { color: var(--cp-muted); font-weight: 400; font-size: 12px; }
.cp-field { position: relative; }
.cp-field > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--cp-muted); pointer-events: none; z-index: 2; }
.cp-field.cp-textarea > i { top: 18px; transform: none; }
.cp-form .form-control { min-height: 48px; border-radius: 10px; border: 1px solid #d0d5dd; font-size: 15px; box-shadow: none; }
.cp-field .form-control { padding-left: 40px; }
.cp-form .form-control:focus { border-color: var(--cp-blue); box-shadow: 0 0 0 4px rgba(50, 124, 195, .15); }
.cp-form .help-block { margin: 4px 0 0; font-size: 13px; }
.cp-form .select2-container .select2-selection--single { height: 48px; border-radius: 10px; border-color: #d0d5dd; padding-left: 28px; }
.cp-form .select2-container .select2-selection__rendered { line-height: 46px !important; }
.cp-form .select2-container .select2-selection__arrow { height: 46px !important; }
.cp-btn { min-height: 48px; padding: 0 24px; border: 0; border-radius: 10px; background: var(--cp-blue); color: #fff !important; font-weight: 600; font-size: 15px; transition: background .15s, transform .15s; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.cp-btn:hover { background: var(--cp-blue-dk); transform: translateY(-1px); color: #fff; text-decoration: none; }
.cp-btn:disabled { opacity: .6; transform: none; }
.cp-btn-block { width: 100%; }

/* Results */
.cp-summary { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.cp-chip { background: var(--cp-soft); border: 1px solid #d6e6f5; color: var(--cp-blue-dk); border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: 500; }
.cp-chip strong { color: var(--cp-ink); }

.cp-table { width: 100% !important; font-size: 14px; border-collapse: separate; border-spacing: 0; }
.cp-table thead th { background: var(--cp-soft); color: var(--cp-muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid var(--cp-line) !important; border-top: 0 !important; padding: 12px; white-space: nowrap; }
.cp-table tbody td { padding: 12px; border-top: 1px solid var(--cp-line); vertical-align: middle; }
.cp-table tbody tr:hover td { background: #fafcff; }
.cp-code { font-family: monospace; background: #f2f4f7; border-radius: 6px; padding: 2px 8px; font-size: 13px; color: var(--cp-ink); white-space: nowrap; }
.cp-strong { font-weight: 500; }
.cp-num { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.cp-badge { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.cp-high { background: #e7f6ec; color: #137a3a; }
.cp-good { background: #e8f1fb; color: #1f5a96; }
.cp-border { background: #fff4e5; color: #a35a00; }
.cp-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--cp-muted); margin-top: 12px; }

.cp-empty { text-align: center; padding: 36px 16px; color: var(--cp-muted); }
.cp-empty i { font-size: 40px; color: #c3d6ea; margin-bottom: 12px; }
.cp-empty h3 { font-size: 17px; color: var(--cp-ink); margin-bottom: 6px; }

.cp-note { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 16px 18px; font-size: 13px; color: #5c4813; margin-bottom: 20px; }
.cp-note h4 { font-size: 14px; font-weight: 700; margin: 0 0 8px; color: #5c4813; }
.cp-note ul { margin: 0; padding-left: 18px; }
.cp-note li { margin-bottom: 6px; }

.cp-page .dt-search input, .cp-page .dt-length select { border: 1px solid #d0d5dd; border-radius: 8px; padding: 4px 10px; }
.cp-page .dt-paging .dt-paging-button.current { background: var(--cp-blue) !important; color: #fff !important; border-radius: 8px; border-color: var(--cp-blue) !important; }

/* Info list (contact details) */
.cp-info { list-style: none; padding: 0; margin: 0; }
.cp-info li { display: flex; gap: 14px; padding: 12px 0; border-top: 1px solid var(--cp-line); font-size: 14px; }
.cp-info li:first-child { border-top: 0; padding-top: 0; }
.cp-info i { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; background: var(--cp-soft); color: var(--cp-blue); display: inline-flex; align-items: center; justify-content: center; }
.cp-info strong { display: block; font-size: 12px; color: var(--cp-muted); font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.cp-map { width: 100%; height: 240px; border: 0; border-radius: 12px; display: block; }

/* News cards */
.cp-news { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--cp-line); border-radius: 12px; overflow: hidden; text-decoration: none !important; transition: box-shadow .15s, transform .15s; }
.cp-news:hover { box-shadow: 0 8px 24px rgba(16, 24, 40, .1); transform: translateY(-2px); }
.cp-news img { height: 150px; object-fit: cover; width: 100%; }
.cp-news div { padding: 14px; }
.cp-news h6 { color: var(--cp-ink); font-size: 14px; line-height: 1.45; margin: 0 0 6px; font-weight: 600; }
.cp-news small { color: var(--cp-muted); }

/* ---------- Footer ---------- */
.cp-footer { background: #101828; color: #98a2b3; margin-top: 40px; font-size: 14px; }
.cp-footer .cp-inner { padding-top: 48px; }
.cp-footer h5 { color: #fff; font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px; }
.cp-footer a { color: #98a2b3; text-decoration: none; }
.cp-footer a:hover { color: #fff; }
.cp-footer .cp-links a { display: block; padding: 4px 0; }
.cp-footer .cp-contact p { display: flex; gap: 10px; margin-bottom: 10px; }
.cp-footer .cp-contact i { color: var(--cp-blue-lt); margin-top: 3px; width: 16px; }
.cp-social { display: flex; gap: 10px; }
.cp-social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: inline-flex; align-items: center; justify-content: center; color: #fff; transition: background .15s; }
.cp-social a:hover { background: var(--cp-blue); }
.cp-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 32px; padding: 18px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 13px; }
.cp-footer-bottom a { color: #dbe8f5; }

.back-to-top { background: var(--cp-blue) !important; border-color: var(--cp-blue) !important; border-radius: 10px; }

@media (max-width: 480px) {
	.cp-hero { padding: 24px 18px; border-radius: 12px; }
	.cp-hero h1 { font-size: 21px; }
	.cp-card { padding: 18px 14px; }
	.cp-strip .cp-strip-tag { display: none; }
}
