/* TrustHandled theme styles */

:root {
	--th-orange: #e6824e;
	--th-blue: #3a8abe;
	--th-navy: #14295a;
	--th-navy-hover: #213870;
	--th-light-bg: #eaeef5;
	--th-text: #1a1a1a;
	--th-muted: #6b7280;
	--th-border: #e5e7eb;
	--th-sidebar-width: 250px;
}

* { box-sizing: border-box; }

html, body {
	margin: 0;
	padding: 0;
	font-family: 'Montserrat', sans-serif;
	color: var(--th-text);
	background: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a { color: var(--th-navy); }
a:hover { color: var(--th-blue); }

img { max-width: 100%; height: auto; display: block; }

.th-site {
	display: flex;
	min-height: 100vh;
	align-items: stretch;
}

.th-main {
	flex: 1 1 auto;
	padding: 40px;
	min-width: 0;
}

body.logged-in .th-main { margin-left: 0; }

/* ==========================================================================
   Sidebar
   ========================================================================== */

.sidebar {
	width: var(--th-sidebar-width);
	flex: 0 0 var(--th-sidebar-width);
	padding: 20px 0;
	background: var(--th-navy);
	color: #fff;
	font-family: 'Montserrat', sans-serif;
	display: flex;
	flex-direction: column;
	position: sticky;
	top: 0;
	align-self: flex-start;
	min-height: 100vh;
}

.sidebar-logo {
	padding: 10px 20px 30px;
	text-align: center;
}

.sidebar-logo img { margin: 0 auto; max-width: 180px; height: auto; }

.sidebar-welcome {
	color: #fff;
	font-family: 'Montserrat', sans-serif;
	text-align: center;
	padding: 0 20px 20px;
}

.sidebar-menu {
	list-style: none !important;
	padding: 0;
	margin: 0;
}

.sidebar-menu li {
	margin: 5px 0;
	list-style: none !important;
}

.sidebar-menu a {
	display: flex;
	align-items: center;
	padding: 15px 20px;
	color: #fff;
	text-decoration: none;
	font-weight: 500;
	font-size: 16px;
	transition: background-color 0.3s ease;
	cursor: pointer;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
	background-color: var(--th-navy-hover);
	color: #fff;
}

.sidebar-menu i {
	margin-right: 15px;
	width: 20px;
	text-align: center;
	font-size: 18px;
}

.sidebar-footer {
	margin-top: auto;
	padding: 20px;
	text-align: center;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.th-btn {
	display: inline-block;
	padding: 14px 38px;
	font-family: 'Montserrat', sans-serif;
	font-weight: 600;
	font-size: 18px;
	border-radius: 999px;
	text-decoration: none;
	border: 0;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.1s ease;
}

.th-btn--primary {
	background-color: var(--th-orange);
	color: #fff;
}

.th-btn--primary:hover {
	background-color: #d46d3a;
	color: #fff;
}

.th-btn--primary:active { transform: translateY(1px); }

/* ==========================================================================
   Welcome (front-page)
   ========================================================================== */

.th-welcome {
	max-width: 1200px;
	margin: 0 auto;
	padding: 60px 20px;
}

.th-welcome-logo {
	text-align: center;
	margin-bottom: 50px;
}

.th-welcome-logo img { max-width: 260px; margin: 0 auto; }

.th-welcome-wordmark {
	font-size: 32px;
	font-weight: 700;
	color: var(--th-text);
}

.th-welcome-title {
	text-align: center;
	font-size: 32px;
	font-weight: 700;
	margin: 0 0 18px;
	color: var(--th-text);
	font-family: 'Montserrat', sans-serif;
}

.th-welcome-sub {
	text-align: center;
	font-size: 18px;
	font-weight: 600;
	color: var(--th-text);
	margin: 0 0 50px;
}

.th-welcome-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 40px;
	max-width: 1100px;
	margin: 0 auto;
}

.th-welcome-card {
	border-radius: 10px;
	padding: 60px 40px;
	text-align: center;
	min-height: 230px;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 30px;
}

.th-welcome-card--dark {
	background-color: var(--th-navy);
	color: #fff;
}

.th-welcome-card--light {
	background-color: var(--th-light-bg);
	color: var(--th-text);
}

.th-welcome-card-title {
	font-size: 22px;
	font-weight: 700;
	margin: 0;
}

@media (max-width: 768px) {
	.th-site { flex-direction: column; }
	.sidebar { width: 100%; flex-basis: auto; min-height: 0; position: static; }
	.th-main { padding: 24px; }
	.th-welcome-cards { grid-template-columns: 1fr; gap: 20px; }
	.th-welcome-title { font-size: 26px; }
	.th-welcome-card { padding: 40px 20px; min-height: auto; }
}

/* ==========================================================================
   404
   ========================================================================== */

.th-404 { max-width: 600px; margin: 80px auto; text-align: center; }
.th-404 h1 { font-size: 32px; margin-bottom: 10px; }
