/*
Theme Name: The ClassicPress Theme Child
Description: Child theme for The ClassicPress Theme. You can now safely customize it and not risk losing your customizations.
Author: WPMarmite
Author URI: https://wpmarmite.com
Template: the-classicpress-theme
Version: 1.0
*/

 

/* ==============================================================
   1. LOCAL INTER FONT (re-declared here so the child theme does
      not depend on the parent stylesheet loading first)
   ============================================================== */
@font-face {
	font-display: swap;
	font-family: 'Inter';
	font-style: normal;
	font-weight: 300;
	src: url('fonts/inter-v20-latin-300.woff2') format('woff2');
}
@font-face {
	font-display: swap;
	font-family: 'Inter';
	font-style: italic;
	font-weight: 300;
	src: url('fonts/inter-v20-latin-300italic.woff2') format('woff2');
}
@font-face {
	font-display: swap;
	font-family: 'Inter';
	font-style: normal;
	font-weight: 400;
	src: url('fonts/inter-v20-latin-regular.woff2') format('woff2');
}
@font-face {
	font-display: swap;
	font-family: 'Inter';
	font-style: italic;
	font-weight: 400;
	src: url('fonts/inter-v20-latin-italic.woff2') format('woff2');
}
@font-face {
	font-display: swap;
	font-family: 'Inter';
	font-style: normal;
	font-weight: 500;
	src: url('fonts/inter-v20-latin-500.woff2') format('woff2');
}
@font-face {
	font-display: swap;
	font-family: 'Inter';
	font-style: normal;
	font-weight: 600;
	src: url('fonts/inter-v20-latin-600.woff2') format('woff2');
}
@font-face {
	font-display: swap;
	font-family: 'Inter';
	font-style: normal;
	font-weight: 700;
	src: url('fonts/inter-v20-latin-700.woff2') format('woff2');
}
@font-face {
	font-display: swap;
	font-family: 'Inter';
	font-style: normal;
	font-weight: 800;
	src: url('fonts/inter-v20-latin-800.woff2') format('woff2');
}

/* Force Inter everywhere, including form elements which browsers
   otherwise render in the system UI font. */
html,
body,
button,
input,
select,
optgroup,
textarea,
h1, h2, h3, h4, h5, h6,
table, th, td {
	font-family: 'Inter', 'Helvetica Neue', Verdana, sans-serif;
}

/* ==============================================================
   2. HEADINGS
   ============================================================== */
:root {
	--tcpt-heading-color: #0a2e57;      /* dark blue */
	--tcpt-heading-rule: #ccc;          /* feint gray */
}

h1, h2, h3, h4, h5, h6 {
	text-transform: uppercase;
	color: var(--tcpt-heading-color);
	font-weight: 700;
	padding-bottom: 0.3em;
	margin-bottom: 0.6em;
	border-bottom: 1px dashed var(--tcpt-heading-rule);
}

h1 { font-size: 1.8em; }
h2 { font-size: 1.7em; }
/* Note: 16em would render enormous (roughly 250px+) and is almost
   certainly a typo for 1.6em; using 1.6em here to stay in line
   with the rest of the heading scale. Change to 16em if that was
   genuinely intended. */
h3 { font-size: 1.6em; }
h4 { font-size: 1.5em; }
h5 { font-size: 1.4em; }
h6 { font-size: 1.3em; }

/* ==============================================================
   3. BODY / PARAGRAPH COPY
   ============================================================== */
#content p,
.entry-content p,
.comment-content p {
	font-size: 1em;
	line-height: 1.6;
}

/* ==============================================================
   4. RESPONSIVE TABLES -> CARDS ON SMALL SCREENS
   ============================================================== */

/* --- Desktop / large screen table styling --- */
#content table {
	border-collapse: collapse;
	width: 100%;
}
#content table thead th {
	background-color: var(--tcpt-heading-color);
	color: #fff;
	text-align: left;
	padding: 0.75em 1em;
	font-weight: 600;
}
#content table tbody td {
	padding: 0.5em 1em;
	color: #6b6b6b; /* muted gray text */
}
#content table tbody tr:nth-child(odd) {
	background-color: #faf9f6; /* offwhite */
}
#content table tbody tr:nth-child(even) {
	background-color: #eeeeee; /* light gray */
}

/* --- Small screen / phone: collapse into material-style cards ---
   Requires a data-label attribute on each <td> matching its column
   header, e.g. <td data-label="Price">KSh 1,000</td>, so the label
   can be shown next to the value once the header row is hidden. */
@media screen and (max-width: 600px) {
	#content table,
	#content table thead,
	#content table tbody,
	#content table th,
	#content table td,
	#content table tr {
		display: block;
	}
	#content table thead {
		display: none;
	}
	#content table tr {
		margin-bottom: 1em;
		background-color: #fff;
		border-radius: var(--tcpt-border-radius, 3px);
		box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
		padding: 0.75em 1em;
	}
	#content table td {
		display: flex;
		justify-content: space-between;
		align-items: center;
		gap: 1em;
		padding: 0.5em 0;
		border-bottom: 1px solid #eee;
		color: #6b6b6b;
		background: transparent !important;
	}
	#content table td:last-child {
		border-bottom: none;
	}
	#content table td::before {
		content: attr(data-label);
		font-weight: 600;
		color: var(--tcpt-heading-color);
		text-transform: uppercase;
		font-size: 0.8em;
		flex-shrink: 0;
	}
}

/* ==============================================================
   5. NEUMORPHIC SIDEBAR WIDGETS
   ============================================================== */
#sidebar .widget-container {
	background: #fffff9;
	border-radius: 4px;
	padding: 1.4em;
	margin: 0 0 1em;
	box-shadow:
		2px 2px 6px rgba(0, 0, 0, 0.08),
		-2px -2px 6px rgba(255, 255, 255, 0.9);
	border: none;font-size:0.8em;
}
#sidebar .widget-container input[type="search"],
#sidebar .widget-container input[type="text"] {
	border: none;
	border-radius: 10px;
	background: #fffff9;
	box-shadow:
		inset 3px 3px 6px rgba(0, 0, 0, 0.08),
		inset -3px -3px 6px rgba(255, 255, 255, 0.9);
	padding: 0.6em 0.8em;
}
#sidebar .widget-container ul li {
	background: transparent;
}

/* ==============================================================
   6. IMAGES
   ============================================================== */
#content img,
.entry-content img,
.comment-content img {
	border-radius: 10px;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
	margin-top: 1.2em;
	margin-bottom: 1.2em;
}

/* ==============================================================
   7. LISTS WITHIN POST CONTENT
   ============================================================== */
.entry-content ul,
.entry-content ol,
.comment-content ul,
.comment-content ol {
	font-size: 12px;
	background-color: #faf9f6; /* offwhite */
	border-left: 3px solid #0a2e57; /* navy blue */
	border-radius: var(--tcpt-border-radius, 3px);
	padding: 0.8em 1em 0.8em 2em;
	margin: 0.5em 0 1em 1.5em; /* the left margin creates the "tabbed" indent */
}
.entry-content li,
.comment-content li {
	padding-top: 0.15em;
	padding-bottom: 0.15em;
}

.sub-menu{
      max-height: 400px;
      overflow-y: scroll;
			background-color: #316ca6; 
	background-color: white;
	border-radius:4px;
}
