/* Website Template by freewebsitetemplates.com */
body {
	min-width: 0;
	overflow-x: hidden; /* Prevent horizontal scroll */
}
#header {
	padding: 1px 0;
	position: relative;
	width: 100%;
}
#header a.logo {
	width: 80%;
}
#header a.logo img {
	width: 100%;
}
#mobile-navigation {
	background: url(../images/mobile-menu.png) no-repeat center center;
	display: block;
	height: 50px;
	margin: 1px auto 0;
	padding: 0;
	width: 50px;
	cursor: pointer; /* Make the button clickable */
}

#header ul {
	display: none; /* Initially hide the dropdown */
	position: absolute;
	top: 60px; /* Position the dropdown below the mobile button */
	left: 0;
	width: 100%; /* Ensure it takes up the full width of the screen */
	background-color: rgba(11, 163, 156, 0.9); /* Style the background */
	z-index: 1001; /* Ensure it appears above other content */
	padding: 0;
	box-sizing: border-box; /* Prevents padding from adding to width */
}

#header ul li {
	border-top: 1px solid #fff;
	display: block;
	margin: 0;
	padding: 0;
	position: relative;
	width: 100%; /* Ensure each list item takes full width */
}

#header ul li a {
	background: rgba(11, 163, 156, 0.9);
	color: #fff;
	display: block;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 16px;
	font-weight: normal;
	height: 49px;
	line-height: 49px;
	padding: 0 15px;
	text-align: left;
	box-sizing: border-box; /* Ensures padding does not create overflow */
}

#header ul li a:hover, #header ul li.selected a {
	background: rgba(0, 0, 0, 0.9);
	color: #fff;
}

#header ul.show {
	display: block; /* Show the menu when the 'show' class is added */
}

#body {
	width: 100%;
}
#body h1 {
	display: block;
	font-size: 20px;
	margin: 0 auto;
	width: 90%;
}
#body h1 span {
	display: block;
	padding: 3%;
	width: 94%;
}
#body > div {
	padding: 0 5%;
	width: 90%;
}
#body > div img {
	margin: 24px 0 30px;
	width: 98%;
}
#body > div .article {
	padding: 0;
	width: 100%;
}
#body > div .article h2, #body > div .article h4 {
	font-size: 18px;
	font-weight: bold;
}
#body #featured {
	overflow: hidden;
	margin: 0 0 20px;
	position: relative; /* Ensures divs are positioned relative to the image */
}
#body #featured img {
	min-width: 960px;
	width: 100%; /* Makes the image fully responsive */
}
#body #featured div {
	left: 0;
	margin: 0;
	padding: 0 2%;
	position: absolute;
	bottom: 0; /* Anchors the div to the bottom of the image */
	width: 100%;
	display: flex;
	justify-content: center; /* Center the content (like the button) */
	align-items: flex-end; /* Align content at the bottom */
}
#body #featured div h2 {
	font-size: 14px;
	font-weight: normal;
	margin: 50px 0 10px;
	padding: 8px 5px;
}
#body #featured div span {
	display: block;
	font-size: 14px;
	margin: 10px 0;
	padding: 10px;
}
#body #featured div a {
	font-size: 14px;
	margin: 5px 0 0;
	padding: 10px;
	background: #0ba39c;
	color: #fff;
	text-align: center;
	text-decoration: none;
	text-transform: uppercase;
	position: relative;
	bottom: 10px; /* Adjust vertical spacing */
}
#body #featured div a:hover {
	background: #1fc3bc;
}
#body > ul {
	overflow: visible;
	padding: 0 5%;
	width: 90%;
}
#body ul.gallery {
	padding: 5% 0;
	overflow: hidden;
	width: 100%;
}
#body > ul li {
	float: none;
	margin: 0;
	width: 100%;
}
#body ul.gallery li {
	float: left;
	margin: 0 0 5% 5%;
	width: 42%;
}
#body > ul li a img {
	width: 98%;
}
#body > ul li a span {
	padding: 15px 0;
}
#body div ul {
	margin: 0;
	padding: 20px 0 0;
	width: 100%;
}
#body div ul li {
	overflow: visible;
	padding: 0 0 20px;
	width: 99%;
}
#body div ul li .figure {
	border: 0;
	display: block;
	float: none;
	margin: 0 0 20px;
	width: 100%;
}
#body div ul li .figure img {
	width: 100%;
}
#body div ul li div {
	float: none;
	padding: 0;
	width: 100%;
}
#body div ul li div a.more:hover {
	height: 14px;
	line-height: 14px;
}
#body form {
	width: 100%;
	margin: 0 auto;
	padding: 24px 0 0;
}

/* Updated input and textarea styling */
#body form input, #body form textarea {
	border: 2px solid #252525;
	color: #252525;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 15px;
	font-weight: normal;
	margin: 0 0 20px;
	padding: 10px;
	width: 100%; /* Adjusted width */
	max-width: 100%; /* Ensures inputs don't overflow */
	text-align: left;
	text-transform: none; /* Removes uppercase transformation */
}

#body form textarea {
	height: 175px;
	overflow: auto;
	resize: none;
}

#body form #send {
	padding: 10px;
	background: #252525;
	color: #fff;
	font-family: "Arial Black", Gadget, sans-serif;
	font-size: 15px;
	display: inline-block;
	width: auto;
}

#body form #send:hover {
	background: #fff;
	color: #252525;
	cursor: pointer;
}

#footer {
	padding: 10px 0 25px;
}
#footer div {
	overflow: visible;
	width: 100%;
}
#footer div p {
	float: none;
	margin: 0;
	text-align: center;
}
#footer div ul {
	float: none;
	margin: 0 auto;
	width: 256px;
}

/* Mobile-specific adjustments */
@media screen and (max-width: 568px) {
    #header a.logo {
        width: 80px; /* Adjust the size of the logo for mobile */
        padding-left: 10px; /* Optional padding for mobile */
    }

    #header a.logo img {
        width: 100%;
        height: auto;
    }

    #mobile-navigation {
        height: 40px;
        width: 40px;
        margin-right: 10px;
    }

    #header ul {
        top: 50px; /* Ensure the dropdown appears just below the nav button */
        width: 100%;
        box-sizing: border-box; /* Ensure no overflow due to padding */
    }

    #header ul li {
        width: 100%; /* Ensure the dropdown items take full width */
    }

    #header ul li a {
        padding: 10px 15px; /* Adjust padding for mobile view */
    }

    /* Stack gallery items vertically on mobile */
    .gallery {
        display: block; /* Ensures vertical stacking */
        padding: 0;
        width: 100%; /* Ensures it takes up full width */
    }

    .gallery li {
        float: none; /* Stack items vertically */
        width: 100%; /* Full width for mobile */
        margin-bottom: 20px; /* Adds space between stacked items */
    }

    .gallery li img {
        width: 100%; /* Ensures the image takes up full width */
        height: auto; /* Maintains aspect ratio */
    }

    /* Adjust form width for mobile */
    #body form {
        width: 100%;
        text-align: center;
    }

    #body form label {
        display: block;
        text-align: center;
        margin-bottom: 5px;
    }

    #body form input, #body form textarea {
        width: 80%;
        margin: 0 auto 20px;
        display: block;
    }
}
