/*
HTML 5 Template Name: Basic 86
File: Layout CSS
Author: OS Templates
Author URI: http://www.os-templates.com/
Licence: <a href="http://www.os-templates.com/template-terms">Website Template Licence</a>
*/

html{overflow-y:scroll;} /* Forces a scrollbar when the viewport is larger than the websites content - CSS3 */

body{
	margin: 0;
	padding: 0;
	font-size: 13px;
	font-family: Tahoma, Geneva, sans-serif;
	color: #919191;
	background-color: #232323;
	text-align: justify;
}

.clear:after{content:"."; display:block; height:0; clear:both; visibility:hidden; line-height:0;}
.clear{display:block; clear:both;}
html[xmlns] .clear{display:block;}
* html .clear{height:1%;}

a{outline:none; text-decoration:none;}

code{font-weight:normal; font-style:normal; font-family:Tahoma, Geneva, sans-serif;}

.fl_left{float:left;}
.fl_right{float:right;}

img{margin:0; padding:0; border:none; line-height:normal; vertical-align:middle;}
.imgholder, .imgl, .imgr{padding:4px; border:1px solid #D6D6D6; text-align:center;}
.imgl{float:left; margin:0 15px 15px 0; clear:left;}
.imgr{float:right; margin:0 0 15px 15px; clear:right;}

/*----------------------------------------------HTML 5 Overrides-------------------------------------*/

address, article, aside, figcaption, figure, footer, header, nav, section{display:block; margin:0; padding:0;}

q{display:block; padding:0 10px 8px 10px; color:#515151; background-color:#ECECEC; font-style:italic; line-height:normal;}
q:before{content:'“ '; font-size:26px;}
q:after{content:' „'; font-size:26px; line-height:0;}

/* ----------------------------------------------Wrapper-------------------------------------*/

div.wrapper{display:block; width:100%; margin:0; padding:0; text-align:justify;}

.row1, .row1 a{
	background-color: #000000;
	color: #C0BAB6;
	background-repeat: no-repeat;
}
.row1 {
	background-image: url("../images/candle&bible.jpg");

}
.row2{color:#515151; background-color:#FFFFFF;}
.row2 a{color:#FE5C00; background-color:#FFFFFF;}
.row3, .row3 a{color:#919191; background-color:#232323;}

/*----------------------------------------------Generalise-------------------------------------*/

#header, #container, #footer{display:block; width:960px; margin:0 auto;}

nav ul{margin:0; padding:0; list-style:none;}

h1, h2, h3, h4, h5, h6{margin:0; padding:0; font-size:16px; font-weight:bold; font-style:normal; line-height:normal; text-transform:uppercase;}

ol{margin-left:140px; padding:0; list-style: decimal;}

address{font-style:normal;}

blockquote, q{display:block; padding:8px 10px; color:#515151; background-color:#ECECEC; font-style:italic; line-height:normal;}
blockquote:before, q:before{content:'“ '; font-size:26px;}
blockquote:after, q:after{content:' „'; font-size:26px; line-height:0;}

form, fieldset, legend{margin:0; padding:0; border:none;}
legend{display:none;}
input, textarea, select{
	font-size: 12px;
	font-family: Tahoma, Geneva, sans-serif;}

.one_quarter, .two_quarter, .three_quarter, .four_quarter{display:block; float:left; margin:0 20px 0 0;}
.one_quarter{width:225px;}
.two_quarter{width:470px;}
.three_quarter{width:715px;}
.four_quarter{width:960px; float:none; margin-right:0; clear:both;}

.one_third, .two_third, .three_third{display:block; float:left; margin:0 30px 0 0;}
.one_third{width:300px;}
.two_third{width:630px;}
.three_third{width:960px; float:none; margin-right:0; clear:both;}

.lastbox{margin-right:0;}

.breadcrumbs{font-size: 10px; color:#aaa; margin:0; float: left; padding-left: 20px}

/*----------------------------------------------Header-------------------------------------*/

#header{padding:20px 0;}

#header #hgroup{float:left; margin:0 0 20px 0; width:100%;}
#header #hgroup h1, #header #hgroup h2{font-weight:normal; text-transform:none;}
#header #hgroup h1{font-size:36px;}
#header #hgroup h2{font-size:13px;}

#header nav{display:block; float:right; margin:10px 0 0 0; padding:20px 0; color:#C0BAB6; background-color:#000000;}
#header nav ul{padding:0 0px;font-size:11px}
#header nav li{display:inline; margin-right:23px; text-transform:uppercase; background-color:#000000; font-weight:bold;}
#header nav li.last{margin-right:0;}
#header nav li a{color:#C0BAB6; background-color:#;}
#header nav li a:hover{color:#FF9900; background-color:#000000;}


/*----------------------------------------------Content Area-------------------------------------*/

#container{padding:30px 0;}
#container section{display:block; width:100%; margin:0 0 50px 0; padding:0;}
#container .last{margin:0;}
#container .more{text-align:right;}

/* ------Slider-----*/

#container #slider{}
#container #slider figure{}
#container #slider figure img{float:right; width:300px; height:170px;;}
#container #slider figure figcaption{
	display: block;
	float: left;
	width: 600px;
	height: auto;
	padding: 10px;
	overflow: hidden;
	color: #515151;
	background-color: #DEDEDE;
	font-weight: normal;
}
#container #slider figure figcaption a{color:#FF9900; background-color:#DEDEDE;}
#container #slider figure h2{font-size:42px; font-weight:normal; font-style:italic; text-transform:none;}
#container #slider figure footer{}

/* ------Main Content-----*/

#container #homepage{display:block; width:100%; line-height:1.6em;}
/* #container #homepage #breadcrumbs{font-size: 10px; color:#aaa; margin:0}*/

#container #homepage #services{}
#container #homepage #services article{}
#container #homepage #services article h2{font-size:14px; margin-bottom:15px;}
#container #homepage #services article h3{font-size:12px; margin-bottom:15px;}
#container #homepage #services article p{margin:0; padding:0;}
#container #homepage #services article img{float:left; width:80px; height:80px; margin:0 10px 10px 0; padding:4px; border:1px solid #DEDEDE;}
#container #homepage #services article footer{margin:10px 0 0 0;}

#container #homepage #latest{}
#container #homepage #latest article{}
#container #homepage #latest article figure{}
#container #homepage #latest article figure img{margin:0 0 10px 0; padding:4px; border:1px solid #D6D6D6;}
#container #homepage #latest article figure figcaption{}
#container #homepage #latest article figure h2{font-size:14px;}
#container #homepage #latest article figure footer{}

/*----------------------------------------------Footer-------------------------------------*/

#footer{padding:20px 0;}
#footer p{margin:0; padding:0;}

/* --- RESPONSIVE MOBILE OVERRIDES --- */

@media screen and (max-width: 960px) {
    /* Make the main containers flexible */
    #header, #container, #footer, .four_quarter, .three_third {
        width: 95% !important;
        margin: 0 auto;
    }
	
	#mobile-menu-icon {
    display: block !important; /* Show the button on mobile */
    text-align: center;
    background: #1a1a1a;
}

#main-nav {
    display: none; /* Hide the menu links initially on mobile */
}

#main-nav.show {
    display: block !important; /* Show them when the 'show' class is added via JS */
}

    /* Force all columns (one_quarter, etc.) to stack vertically */
    .one_quarter, .two_quarter, .three_quarter, .one_third, .two_third {
        width: 100% !important;
        float: none !important;
        margin: 0 0 20px 0 !important;
    }

    /* Adjust the top header text */
    #header #hgroup h1 { font-size: 24px; text-align: center; }
    #header #hgroup h2 { font-size: 12px; text-align: center; }

    /* Adjust the navigation menu for small screens */
    #header nav {
        float: none;
        text-align: center;
        width: 100%;
    }
    #header nav li {
        display: block;
        margin: 10px 0;
        border-bottom: 1px solid #333;
        padding-bottom: 5px;
    }

    /* Fix the Slider Image and Text */
    #container #slider figure img {
        float: none;
        width: 100%;
        height: auto;
    }
    #container #slider figure figcaption {
        width: 100%;
        float: none;
        box-sizing: border-box;
    }

/* --- MOBILE IMAGE OPTIMIZATION --- */

/* This targets images in the services and latest news sections */
#services article img, 
#latest article figure img, 
.imgholder img, .imgl, .imgr {
    display: block !important;
    float: none !important;      /* Stop images from floating left/right */
    margin: 0 auto 15px auto !important; /* Center horizontally and add bottom spacing */
    width: auto !important;      /* Allow the image to keep its aspect ratio */
    max-width: 100% !important;  /* Ensure it never overflows the screen width */
    height: auto !important;     /* Prevent stretching */
    clear: both;
}
/* --- Hyperlinks for publications section alignment --- */

#container #homepage #services article, 
#container #homepage #services article footer,
#container #homepage #latest article,
#container #homepage #latest article figure figcaption,
#container .more,
#container h2, #container h3, #container p {
    text-align: left !important;
}

/* Centers the captions and headings under the images */
#services article, #latest article figure figcaption {
    text-align: center;
}

/* Adjust the footer text for mobile */
.fl_left, .fl_right {
    float: none !important;
    display: block;
    text-align: center;
    width: 100%;
}
}

/* --- TABLET ADJUSTMENTS --- */
@media screen and (min-width: 768px) and (max-width: 960px) {
    .one_quarter {
        width: 45% !important; /* Show 2 items per row on tablets */
        display: inline-block;
        float: left;
        margin-right: 2% !important;
    }
}