/* Global styles for kidlek.com — mobile-first.
   Base = mobile view (single column); desktop is added via min-width.
   Brand look preserved: teal navbar, blue logo, white cards, green buttons. */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }

html, body, h1, h2, h3, h4, h5, h6, p, ol, ul, li, dl, dd, dt,
figure, blockquote, table, form, fieldset, legend, article, aside,
header, footer, nav, section {
	margin: 0;
	padding: 0;
}

img, fieldset { border: 0; }

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

article, aside, figure, footer, header, nav, section { display: block; }

/* ---------- GENERAL ---------- */
body {
	font: 1em/1.5 Arial, Helvetica, sans-serif;
	color: #666;
	background: #fff;
	-webkit-text-size-adjust: 100%;
}
a { color: #0E75CB; text-decoration: none; }
a:hover { text-decoration: underline; }
p { margin: 0 0 .5em; }

ul, ol { margin: 1em 0 1.4em 1.5em; line-height: 1.4; }
li { margin: 0 0 .5em; }

h1, h2, h3, h4, h5, h6 { line-height: 1.3; color: #000; }
h1 { font-size: 1.8em; }
h2 { font-size: 1.5em; }
h3 { font-size: 1.3em; }
h4 { font-size: 1.15em; }
h5 { font-size: 1.05em; }
h6 { font-size: 1em; }

/* images/tables must not break width on mobile */
#content table { max-width: 100%; }

/* ---------- LAYOUT ---------- */
#pagewrap {
	max-width: 980px;
	margin: 0 auto;
	padding: 0 12px;
}

/* ---------- HEADER ---------- */
#header {
	padding: 14px 0 0;
	margin-bottom: 16px;
}
#site-logo { display: inline-block; }
#site-logo a {
	font: bold 30px/1 Arial, Helvetica, sans-serif;
	color: #3DBDFF;
	text-decoration: none;
}
#site-description {
	color: #6f6f6f;
	font-size: 1em;
	font-weight: normal;
	margin: 4px 0 0;
}
#site-description a { color: #6f6f6f; }

/* ---------- NAVIGATION ---------- */
#main-nav {
	list-style: none;
	margin: 12px 0 20px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	background: #00A1C7;
	background: linear-gradient(180deg, #6CC8CB, #00A1C7);
	border-radius: 8px;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 1px 1px rgba(0,0,0,.4);
}
#main-nav li { margin: 0; list-style: none; }
#main-nav a {
	display: block;
	padding: 14px 16px;
	font-weight: bold;
	color: #fff;
	text-decoration: none;
	text-shadow: 0 -1px 0 rgba(0,0,0,.5);
	border-radius: 8px;
}
#main-nav a:hover { background: #0E75CB; text-decoration: none; }

/* ---------- CONTENT (card) ---------- */
#content {
	background: #fff;
	margin: 0 0 20px;
	padding: 18px 16px;
	border-radius: 8px;
	box-shadow: 0 0 12px rgba(203,203,203,1);
}
.post { margin-bottom: 30px; }
.post-title {
	margin: 0 0 5px;
	font: bold 24px/1.2 Arial, Helvetica, sans-serif;
}
.post-title a { text-decoration: none; color: #000; }
.post-meta { margin: 0 0 10px; font-size: 90%; }
.post-image { margin: 0 0 15px; }

/* ---------- SIDEBAR ---------- */
#sidebar { margin: 0 0 24px; }
.widget {
	background: #fff;
	margin: 0 0 20px;
	padding: 10px 18px;
	border-radius: 8px;
	box-shadow: 0 0 12px rgba(203,203,203,1);
}
.widgettitle { margin: 0 0 5px; font-size: 1.15em; }
.widget ul { margin: 0; padding: 0; }
.widget li {
	margin-left: 10px;
	padding: 5px 0 2px;
	list-style-type: circle;
	border-top: solid 1px #eee;
}

/* ---------- CATEGORY ACCORDION (sidebar) ---------- */
.cat-menu, .cat-menu ul { list-style: none; margin: 0; padding: 0; }
.cat-menu li { margin: 0; list-style: none; }
.cat-menu .cat { border-top: 1px solid #eee; }
.cat-menu .cat:first-child { border-top: 0; }
.cat-toggle {
	display: block;
	width: 100%;
	text-align: left;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 9px 22px 9px 2px;
	position: relative;
	font: inherit;
	font-weight: bold;
	color: #0E75CB;
}
.cat-toggle:hover { color: #00A1C7; }
.cat-toggle::after {
	content: "+";
	position: absolute;
	right: 6px;
	top: 50%;
	transform: translateY(-50%);
	color: #999;
}
.cat.open > .cat-toggle::after { content: "\2212"; } /* minus */
.cat-count { color: #6f6f6f; font-weight: normal; font-size: .9em; }
.cat-list { padding: 0 0 8px 10px; }
.cat-list li { padding: 4px 0; border-top: 1px solid #f3f3f3; }
.cat-list a { color: #0E75CB; font-size: .95em; }
.cat-list a:hover { text-decoration: underline; }
.cat-list a.active { font-weight: bold; color: #000; }
/* progressive enhancement: without JS everything is expanded (crawlers see all links),
   with JS (class .js) it collapses into an accordion */
.js .cat-list { display: none; }
.js .cat.open > .cat-list { display: block; }

/* ---------- CALCULATOR FORMS ---------- */
.content-box-program-inputbox {
	font-size: 20px;
	border-radius: 5px;
	border: 1px solid #E0E0E0;
	margin-bottom: 5px;
	max-width: 100%;
}
.content-box-program textarea {
	font-size: 20px;
	border-radius: 5px;
	border: 1px solid #E0E0E0;
	width: 100%;
	max-width: 550px;
	height: 50px;
}
.content-box-program-bottoncalc {
	font-size: 17px;
	padding: 6px 14px;
	border-radius: 5px;
	border: 1px solid;
	color: #fff;
	cursor: pointer;
	text-shadow: 0 -1px 0 rgba(0,0,0,0.25);
	background-color: #5bb75b;
	background-image: linear-gradient(to bottom, #62c462, #51a351);
	border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);
}
.content-box-program-bottoncalc:hover {
	background-color: #6ACF6A;
	background-image: linear-gradient(to bottom, #62c462, #098509);
}

/* .btn buttons (replace bootstrap on Standard-deviation-v2 etc.) */
.btn {
	display: inline-block;
	padding: 6px 14px;
	font-size: 16px;
	line-height: 1.4;
	border-radius: 5px;
	border: 1px solid #ccc;
	background: #f5f5f5;
	color: #333;
	cursor: pointer;
	text-decoration: none;
}
.btn:hover { background: #e8e8e8; }
.btn-success {
	color: #fff;
	border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);
	background: #5bb75b;
	background-image: linear-gradient(to bottom, #62c462, #51a351);
	text-shadow: 0 -1px 0 rgba(0,0,0,0.25);
}
.btn-success:hover { background-image: linear-gradient(to bottom, #62c462, #098509); }
.btn-danger {
	color: #fff;
	border-color: rgba(0,0,0,0.1) rgba(0,0,0,0.1) rgba(0,0,0,0.25);
	background: #da4f49;
	background-image: linear-gradient(to bottom, #ee5f5b, #bd362f);
	text-shadow: 0 -1px 0 rgba(0,0,0,0.25);
}
.btn-danger:hover { background-image: linear-gradient(to bottom, #ee5f5b, #961a15); }

/* ---------- fields overlaid on the Projectile diagram ---------- */
.pf { position: absolute; background: rgba(255,255,255,.85); padding: 2px 5px; border-radius: 4px; white-space: nowrap; }

/* ---------- CONTACT FORM ---------- */
.contact-form label { display: block; margin: 0 0 14px; font-weight: bold; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
	display: block;
	width: 100%;
	max-width: 440px;
	margin-top: 5px;
	padding: 8px 10px;
	border: 1px solid #ccc;
	border-radius: 5px;
	font: inherit;
	font-weight: normal;
}
.contact-form textarea { max-width: 100%; resize: vertical; }
.form-msg { padding: 10px 14px; border-radius: 5px; margin: 0 0 16px; }
.form-msg.ok  { background: #e6f4e6; border: 1px solid #5bb75b; color: #2d642d; }
.form-msg.err { background: #fbe6e6; border: 1px solid #da4f49; color: #a02420; }

/* ---------- FOOTER ---------- */
#footer {
	clear: both;
	color: #6f6f6f;
	font-size: 100%;
	padding: 10px 0 24px;
}
#footer a { color: #0E75CB; }

/* ---------- UTILITIES ---------- */
/* .center replaces the old <center>: centers inline content (text-align) and block
   elements (tables and fixed-width divs via margin:auto; harmless for full-width) */
.center { text-align: center; }
.center table { margin-left: auto; margin-right: auto; }
.center > div { margin-left: auto; margin-right: auto; }

/* ---------- CLEARFIX ---------- */
.clearfix::after { content: ""; display: block; clear: both; }

/* ============================================================
   DESKTOP: two columns (content left, sidebar right)
   ============================================================ */
@media (min-width: 769px) {
	#header { padding-top: 20px; }
	#content {
		width: 62%;
		float: left;
		padding: 20px 35px;
	}
	#sidebar {
		width: 34%;
		float: right;
		margin-top: 0;
	}
}
