/*
 Theme Name:   Motif Child
 Theme URI:    https://wordpress.com/themes/motif/
 Description:  Child theme, based on Motif. Motif is a crisp, minimalist, and fully responsive business theme.
 Author:       Carl Poulton (child), Automaticc (parent)
 Author URI:   http://maccoolis.co.uk, https://wordpress.com/themes/
 Template:     motif
 Version:      1.0.13
 Text Domain:  motif
*/

@import url("../motif/style.css");
/* Theme customization starts here */

/* General site stuff here */
.site-branding {
	padding: 0px;
}
.site-image {
	background-color: #588757;
}

.site-navigation{
	padding: 0px 0px 0px 0px;
}

.site-content {
	border-width: 2px;
	border-color: #CC0000;
}

/* Make primary + sidebar sit side by side with a fixed gap */
#page > #content {
	display: flex;
	align-items: flex-start;
	gap: 10px; /* <-- this is your exact spacing */
}

#primary.content-area.full-width {
	float: none;
	width: 100%;
	max-width: 100%;
	margin: 0;
}

/* Remove old width/margin behaviour that interferes */
.content-area,
.sidebar-widget-area {
	margin: 0;
}

/* Let flex control widths */
.content-area {
	width: 100%;
	max-width: 100%;
}

.sidebar-widget-area {
	flex: 0 0 33%;
}


/* Optional: prevent weird overflow */
.content-area,
.sidebar-widget-area {
	box-sizing: border-box;
}

#page.site,
.site,
.site-content {
	max-width: 100% !important;
	width: 100% !important;
	padding-left: 0 !important;
	padding-right: 0 !important;
	margin: 0 !important;
}

.front-page-content-area .without-featured-image {
	padding: 124px 124px 0 124px
}

.header-image-link {
	background-color: #588757;
}


.footer-widget-area {
	background-color: #588757;
	color: #fff;
}

div.hero.without-featured-image {
	padding:12px 12px 0 12px;
	margin-bottom: 15px;
}

article.post-23.post-23.page.type-page.status-publish.hentry {
	margin-bottom: 15px;
}

h1 ~ ul {
	background-color:#fff;
}
/* Links */

p a {
    color: #093508;
    font-weight: bold;
}

a {
	color: #093508;
	
	text-decoration: none;
}
a:visited {
	color: #588757;
}

a:hover,
a:focus,
a:active {
	color: #588757;	
	text-decoration: none;
}

footer.entry-meta {
	padding: 5px 5px 5px 5px;
}
/* Navigation and menu mods here */
.main-navigation {
	background-color: #588757;
	display: block;
	padding: 0 0 0 0;
}

.main-navigation a:hover,
.main-navigation ul :hover > a,
.main-navigation ul ul :hover > a {
	background-color: #588757;
	color: #FFF;
	display: block;
}

.main-navigation li:hover {
	background-color: #588757;
}

.main-navigation li {
	float:left ;
	padding: 15px 20px 15px 20px;
	position: relative;
}

.main-navigation a:visited {
	color: #FFF;
}

.main-navigation a:hover, a:focus, a:active {
	color: #FFF;
	font-weight: normal;
	text-decoration: none;
}

/* Selects and buttons and input areas */
button {
    	color: #588757;
}

select {
    	color: #093508;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"] {
	background-color: #f9f9f9;
	border: 1px;
	border-style:solid;
	text-align:center;
	color: #588757;
	border-color: #888;
}

button,
html input[type="button"],
input[type="reset"],
input[type="submit"] {
	background-color: #f9f9f9;
	border: 1px solid #e6e6e6;
	border-color: #888;
	color: #588757;
	float: right;
	padding: 15px 25px 15px 25px;
}

input[type="search"]{
	width:320px;
}


.front-widget-area {
	margin-bottom: 14px;
}
.front-page-content-area .hero {
	margin-bottom: 14px;
	position: relative;
}

.widget_search .search-field {
    box-sizing: border-box;
    width: 100%;
    max-width: 352px; /* Maintain max width for larger screens */
    text-align: left;
}

.widget-title {
	margin-bottom: 5px;
}

button:hover,
html input[type="button"]:hover,
input[type="reset"]:hover,
input[type="submit"]:hover {
	background-color: #588757;
	color: #fff;
	font-weight:bold;
}

.header-search {display:none;}

/* Change the size of the content areas depending on size. Only worried about desktops and phones */
@media only screen and (min-width: 1200px) {
	.widget {
		margin-bottom: 14px;
	}
	.hentry {
		margin-bottom: 14px;
	}

}

@media only screen and (max-width: 768px) {

	#page > #content {
		flex-direction: column;
	}

	.content-area,
	.sidebar-widget-area {
		flex: 0 0 100%;
		width: 100%;
	}
}

@media only screen and (max-width: 400px) {
    select {
        width: 220px;
        max-width: 220px;
        padding: 8px; /* Adjust padding for better touch interaction */
    }

}