/**=====================================================================*\
|| #################################################################### ||
|| # Package - Joomla Template Khalilan Media Framework FTM             ||
|| ===================================================================  ||
|| # Copyright (C)2008-2013  Khalilan Khoram CO. All Rights Reserved.   ||
|| # license - PHP files are licensed under  GNU/GPL V2                 ||
|| # for more information visit http://www.khalilan.com                 ||
|| # websites - http://www.khalilan.com                                 ||
|| # Production Date 1392/03/10 Coincided 2013/06/01                    ||
|| #################################################################### ||
\*=====================================================================**/ 
/**=====================================================================*\
|| Framework FTM Version 2.0                                            ||
|| The new structural framework Tiam, working Powered by Khalilan Media || 
\*=====================================================================**/

#khInset .box,
#khInnerInset .box,
#khSidebar .box,
#khBottom1 .box,
#khBottom2 .box {
	width: 100%;
	clear: both!important;
	float: none!important;
	margin: 0 auto!important;
	max-width: 320px!important;
}
#khBottom1 .box,
#khBottom2 .box {
	margin-bottom: 20px!important;	
}
#khSidebar > div > .box {
	float: none;
	margin-top: 0!important;
	margin-bottom: 12px!important;
	width: 100%;
}
#khSidebar > div > .box:nth-child(2n+1) {
	clear: both!important;
}
#khSidebar > div > .box:nth-child(odd) {
	padding-right: 0px;	
}
#khSidebar > div > .box:nth-child(even) {
	padding-left: 0px;
}

#khMainbody > div,
#khInnerInset {
	clear: both!important;
	width: 100%!important;	
}

#khInnerInset {
	padding: 0 0 20px 0!important;
}

/* limitation suffixes */
.box.notablet {
	display: block!important;
}
.box.nomobile {
	display: none!important;
}
.box.onlytablet {
	display: none!important;
}
.box.onlymobile {
	display: block!important;
}

/* Fix for the user profile */
.profile dt {
	width: 100% !important;
}

/* Fix for the contact page */
.contact .contact-image {
	float: left !important;
}
.contact .contact-address {
	clear: both !important;
	padding-top: 20px !important;
}
.contact .contact-form input,
.contact .contact-form textarea {
	width: 100% !important;
}

/* Fix for the search */
fieldset.word #search-searchword,
fieldset.word .inputbox {
	width: 50%;
}
fieldset.phrases .ordering-box,
fieldset.only input[type="checkbox"],
fieldset.phrases input[type="radio"] {
	clear: both;
}

/* Fix for the register */
#member-registration dd {
	clear: both !important;
	display: block !important;
}

/* Fix for tables */
fieldset {
	box-sizing: border-box!important;
	max-width: 100%!important;
	width: 100%!important;
	overflow: hidden;
}
#khMainbody table:before {
	content: "Scroll horizontally to view the whole table";
	height: 14px;
	width: 100%;
	display: block;
	font-size: 10px;
	margin-top: -30px;
	margin-bottom: 10px;
	font-family: Arial, sans-serif;
}
#khMainbody table {
	width: 540px!important;
	display: block!important;
	padding: 30px 0 20px 0; /* padding for the scrollbars and the top message */
	overflow:scroll;
	-webkit-overflow-scrolling:touch;
}
#khMainbody table tbody,
#khMainbody table thead,
#khMainbody table tfoot {
	width: 540px!important;
	display: table;
}

@media only screen and (max-width: 320px), only screen and (max-device-width: 320px) and (-moz-max-device-pixel-ratio: 1.5), only screen and (max-device-width: 320px) and (-o-max-device-pixel-ratio: 1.5/1), only screen  and (max-device-width: 320px) and (-webkit-max-device-pixel-ratio: 1.5), only screen and (max-device-width: 320px) and (max-device-pixel-ratio: 1.5), only screen and (max-device-width: 640px) and (-moz-min-device-pixel-ratio: 2), only screen and (max-device-width: 640px) and (-o-min-device-pixel-ratio: 2/1), only screen and (max-device-width: 640px) and (-webkit-min-device-pixel-ratio: 2), only screen and (max-device-width: 640px) and (min-device-pixel-ratio: 2) {
	#khMainbody table {
		width: 260px!important;
	}
}

@media only screen and (max-width: 480px) and (orientation:landscape), only screen and (max-device-width: 480px) and (-moz-max-device-pixel-ratio: 1.5) and (orientation:landscape), only screen and (max-device-width: 480px) and (-o-max-device-pixel-ratio: 1.5/1) and (orientation:landscape), only screen  and (max-device-width: 480px) and (-webkit-max-device-pixel-ratio: 1.5) and (orientation:landscape), only screen and (max-device-width: 480px) and (max-device-pixel-ratio: 1.5) and (orientation:landscape), only screen and (max-device-width: 960px) and (-moz-min-device-pixel-ratio: 2) and (orientation:landscape), only screen and (max-device-width: 960px) and (-o-min-device-pixel-ratio: 2/1) and (orientation:landscape), only screen and (max-device-width: 960px) and (-webkit-min-device-pixel-ratio: 2) and (orientation:landscape), only screen and (max-device-width: 960px) and (min-device-pixel-ratio: 2) and (orientation:landscape) {
	#khMainbody table {
		width: 420px!important;
	}
}

/* top/bottom modules */
.box.khmod-1,
.box.khmod-2,
.box.khmod-3,
.box.khmod-4,
.box.khmod-more {
	float: left!important;	
}
.box.khmod-1,
.box.khmod-2,
.box.khmod-3,
.box.khmod-4,
.box.khmod-more {
	width: 100%!important;
}
.box.khmod-more.khmod-last-1:last-child,
.box.khmod-more.khmod-last-2:last-child,
.box.khmod-more.khmod-last-2:nth-last-child(2),
#khPageWrap .box.khmod-more.khmod-last-3:last-child,
#khPageWrap .box.khmod-more.khmod-last-3:nth-last-child(2),
#khPageWrap .box.khmod-more.khmod-last-3:nth-last-child(3) {
	width: 100%!important;
}

/* top/bottom modules */
body #khPage .box {
	margin-bottom: 20px!important;
}

/* 3-column layout */
.khCols3 .box.khmod-more:nth-child(1n) {
	clear: both;
}
.khCols3 .box.khmod-1,
.khCols3 .box.khmod-2,
.khCols3 .box.khmod-3,
.khCols3 .box.khmod-more,
.khCols3 .box.khmod-more.khmod-last-1:last-child,
.khCols3 .box.khmod-more.khmod-last-2:last-child,
.khCols3 .box.khmod-more.khmod-last-2:nth-last-child(2) {
	width: 100%!important;
}

/* 4-column layout */
body .khCols4 .box.khmod-more:nth-child(1n) {
	clear: both;
}
body .khCols4 .box.khmod-1,
body .khCols4 .box.khmod-2,
body .khCols4 .box.khmod-3,
body .khCols4 .box.khmod-4,
body .khCols4 .box.khmod-more,
body .khCols4 .box.khmod-more.khmod-last-1:last-child,
body .khCols4 .box.khmod-more.khmod-last-2:last-child,
body .khCols4 .box.khmod-more.khmod-last-2:nth-last-child(2),
body .khCols4 .box.khmod-more.khmod-last-3:last-child,
body .khCols4 .box.khmod-more.khmod-last-3:nth-last-child(2),
body .khCols4 .box.khmod-more.khmod-last-3:nth-last-child(3) {
	width: 100%!important;
}

/* 6-column layout */
body .khCols6 .box.khmod-more:nth-child(1n) { 
	clear: both; 
}
body .khCols6 .box.khmod-1,
body .khCols6 .box.khmod-2,
body .khCols6 .box.khmod-3,
body .khCols6 .box.khmod-4,
body .khCols6 .box.khmod-more,
body .khCols6 .box.khmod-5,
body .khCols6 .box.khmod-more,
body .khCols6 .box.khmod-6,
body .khCols6 .box.khmod-more,
body .khCols6 .box.khmod-more.khmod-last-1:last-child,
body .khCols6 .box.khmod-more.khmod-last-2:last-child,
body .khCols6 .box.khmod-more.khmod-last-2:nth-last-child(2),
body .khCols6 .box.khmod-more.khmod-last-3:last-child,
body .khCols6 .box.khmod-more.khmod-last-3:nth-last-child(2),
body .khCols6 .box.khmod-more.khmod-last-3:nth-last-child(3),
body .khCols6 .box.khmod-more.khmod-last-4:last-child,
body .khCols6 .box.khmod-more.khmod-last-4:nth-last-child(2),
body .khCols6 .box.khmod-more.khmod-last-4:nth-last-child(3),
body .khCols6 .box.khmod-more.khmod-last-4:nth-last-child(4),
body .khCols6 .box.khmod-more.khmod-last-5:last-child,
body .khCols6 .box.khmod-more.khmod-last-5:nth-last-child(2),
body .khCols6 .box.khmod-more.khmod-last-5:nth-last-child(3),
body .khCols6 .box.khmod-more.khmod-last-5:nth-last-child(4),
body .khCols6 .box.khmod-more.khmod-last-5:nth-last-child(5) {
	width: 100%!important;
}

/* article fix */
#khContent article > time {
	display: none!important;
}
#khContent article > time + header {
	padding-left: 0!important;
}
#khContent article header li.itemDate,
#khContent article header li.item-date {
	display: block;
}

/* NSP adjustments */
.nspArtPage .nspArt {
	border-top: 1px solid #eee!important;
	border-left: none!important;
	padding-bottom: 20px!important;
	padding-top: 20px!important;
	width: 100%!important;
}
.nspArtPage .nspArt:first-child {
	border-top: none!important;
}

/* suffix mobilelayout */
.bigtitle .khArtContentWrap {
	clear: both;
	padding-top: 10px;
}

/* Tabs KH5 adjustments */
.khTabsNav {
	height: auto!important;
	min-height: 40px!important;
	overflow: hidden;
}

.khTabsNav li {
	width: 100%!important;
}

.khTabsWrap.vertical ol li {
	padding-top: 5px;
	padding-bottom: 5px;
}

@media (min-width: 420px) and (max-width: 580px) {
	.box.mobilelayout .nspArtPage .nspArt,
	.box.nsphover .nspArtPage .nspArt {
		border-top: none!important;
		width: 50%!important;
	}
	
	.box.nsphover .nspArtPage .nspArt h4 {
		font-size: 16px!important;
	}
	
	.box.nsphover .nspArtPage .nspArt .nspText {
		font-size: 11px!important;
	}	
}

.box.nsphover .nspArtPage .nspArt {
	padding-bottom: 10px!important;
	padding-top: 0!important;
}

/* other elements */
article header h1, 
.category header {
	line-height: 32px;
	padding: 18px 0 0px;
}

article header h1, 
.category header, 
article header h2 {
	font-size: 24px;
}

h1 {
	font-size: 24px;
}

h2, 
.componentheading,
.category header h2 {
	font-size: 28px;
}

article header h2 {
	line-height: 32px;
}

#khSocialAPI {
	overflow: hidden;
}

.cols-2 .column-2, 
.cols-3 .column-3 {
	padding: 0!important;
}

.itemComments .itemCommentsList li img {
	float: left;
	margin-left: 0;
	margin-right: 10px;
	position: static;
}

.itemCommentsList li h3 {
	float: none;
	margin-top: 5px;
}

.itemAsideInfo {
	width: 100%!important;
}

.itemAsideInfo > * {
	border: none!important;
	-webkit-box-sizing: border-box;
	   -moz-box-sizing: border-box;
  	    -ms-box-sizing: border-box;
	     -o-box-sizing: border-box;
	        box-sizing: border-box;
	clear: none!important;
	float:left!important;
	padding: 10px!important;
	width: 50%!important;
}

.itemAsideInfo > *:nth-child(2n+1) {
	clear: both!important;
}

.item-page .itemAsideInfo > * {
	width: 100%!important;
}

.itemAsideInfo + .itemBody {
	margin-left: 0!important;
}

/* Search */
#mod-search-searchword {
	width: 120px!important;
}

/* NSP */
.box.header .nspImageWrapper h4 {
	font-size: 14px!important;
}

.nspArts,
.nspLinksWrap {
	clear: both;
	float: left!important;
	width: 100%!important;
}

.box.gallery .nspArt {
	border-top: none!important;
	float: left;
	width: auto!important;
}

/* NSP Portal Mode 7 */
.nspMainPortalMode7 {
	margin: 0 -9px!important;
}

.nspMainPortalMode7 .nspImages {
	padding: 0 32px!important;
}