/*
Theme Name: IDOP
Description: Institute of Diabeties WP Theme
Version: 1.0
Author: Richard Scarrott
Author URI: http://www.richardscarrott.co.uk
*/

/*Theme requires following plug-ins to work: kwebble_archives_by_cat v1.3, show-active-category v0.1, Contact Form 7 v1.9.2 & optionally Wordpress Newsletter subscription Opt-in for SendBlaster.*/

/*YUI RESET*/
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,form,fieldset,input,textarea,p,th,td { 
	margin:0; 
	padding:0; 
	} 
table { 
	border-collapse:collapse;
	border-spacing:0; 
	} 
fieldset,img {  
	border:0; 
	} 
address,caption,cite,code,dfn,em,strong,th,var { 
	font-style:normal; 
	font-weight:normal; 
	} 
ol,ul { 
	list-style:none; 
	} 
caption,th { 
	text-align:left; 
	} 
h1,h2,h3,h4,h5,h6 { 
	font-size:100%; 
	font-weight:normal; 
	} 
q:before,q:after { 
	content:''; 
	}
/*YUI RESET*/


body {
	font-family:Arial, Helvetica, sans-serif;
	font-size:14px;
	color:#000;
	text-align:left;
	background-color:#e2e2e2;
	}
	
/*general properties*/

p {
	margin-top:3px;
	margin-bottom:14px;
	line-height:1.5; /*stick on list*/
	}

h3 {
	margin-top:3px;
	margin-bottom:8px;
	}
	
a {
	outline:none;
	color:#0066cc;
	text-decoration:underline;
	}
	
h1 {
	color:#0066cc;
	font-size:42px;
	}
	
h2 {
	color:#0066cc;
	font-size:36px;
	}
	
h3 {
	color:#0066cc;
	font-size:24px;
	}
	
h4 {
	color:#0066cc;
	font-size:18px;
	margin-top:25px;
	}
	
h5 {
	color:#0066cc;
	font-size:14px;
	}
	
h6 {
	color:#0066cc;
	font-size:10px;
	margin-bottom:8px;
	}
	
strong, b {
	font-weight:bold;
	}
	
i, em {
	font-style:italic;
	}
	
ul {
  display: block;
  list-style-type: disc;
  margin: 1em 0;
  padding-left: 40px;
}

ol {
  display: block;
  list-style-type: decimal;
  margin: 1em 0;
  padding-left: 40px;
}

li {
  display: list-item;
  margin-bottom:10px;
}
	

	
div#container {
	position:relative;
	margin-left:auto;
	margin-right:auto;
	width:900px;
	}
	
div#container_2 {
	position:relative;
	margin-left:auto;
	margin-right:auto;
	width:970px;
	background-image:url(images/bg_4.jpg);
	background-position:center;
	background-repeat:repeat-y;
	}
	
div#banner {
	height:110px;
	width:900px;
	background-image:url(images/banner_3.jpg);
	background-repeat:no-repeat;
	}

/* Page_navigation */	
div#page_nav ul {
	padding-top:2px;
	list-style:none;
	text-align:right;
	width:870px;
	display: block;
	margin:0;
	}

div#page_nav ul li {
	display:inline;
	padding-right:20px;
	margin:0;
	}	

div#page_nav ul a {
	color:#FFF;
	text-decoration:none;
	}

div#page_nav ul a:hover {
	color:#FFF;
	text-decoration:underline;
	}
	
div#page_nav ul li.current_page_item {
	color:#FFF;
	text-decoration:underline;
	}
	
/*IDOP writing*/
div#IDOP {
	display:none;
	position:absolute;
	left:200px;
	top:40px;
	font-family:"Times New Roman", Times, serif;
	color:#FFF;
	}

div#IDOP h1 {
	color:#fff;
	font-size:26px;
	}
	
div#IDOP h2 {
	color:#fff;
	font-size:18px;
	font-style:italic;
	margin-top:-4px;
	}
	
	
/* Cat_navigation*/

div#cat_nav ul {
  	list-style-type:none;
  	margin:0;
  	padding-left:0;
	width:900px;
	background-color:#acacac;
	margin-top:3px;
	height:24px;
	font-size:14px;
	font-weight:bold;
	line-height:24px;
	}
	
div#cat_nav ul li {
	float:left;
	margin:0;
	}	
	
div#cat_nav ul li a {
	float:left;
	display:block;
	color:#FFF;
	height:24px;
	padding:0 10px;
	text-align:center;
	text-decoration:none;
	border-right:#FFFFFF 1px solid;
	}
	
div#cat_nav ul li a:hover {
	background-color:#ccc;
	}

div#cat_nav ul li a.active_category {
    background-color:#666;
	}
	
/* oddly enough active cat does not put class when transfered to new server so using current-cat instead*/
div#cat_nav ul li.current-cat {
    background-color:#666;
	}
	
div#cat_nav ul li.current-cat a:hover {
	background-color:#666;
	}

	
/*left col + right_col*/

div#left_col, div#right_col {
	width:185px;
	float:left;
	}

div#left_col ul, div#right_col ul {
	margin:0;
	margin-top:3px;
	border-top: 3px solid #0066cc;
    list-style-type: none;
 	padding-left:0px;
	}
	
div#left_col ul li, div#right_col ul li {
	margin:0;
	}
	
div#left_col ul li.title, div#right_col ul li.title {
	display:block;
	background-color:#ededed;
	background-image:url(images/shad_1.jpg);
	background-repeat:repeat-x;
	width:178px;
	min-height:30px;
	line-height:30px;
	font-size:14px;
	color:#0066cc;
	padding-left:7px;
	border-bottom:solid 1px #d2d2d2;
	font-weight:bold;
	margin-bottom:0;
	}

div#left_col ul li a, div#right_col ul li a, div#right_col ul li.contact {
	display:block;
	background-color:#ededed;
	width:178px;
	min-height:30px;
	line-height:30px;
	font-size:14px;
	color:#333333;
	padding-left:7px;
	text-decoration:none;
	border-bottom:solid 1px #d2d2d2;
	margin:0;
	}
	

	
div#left_col ul li a:hover, div#right_col ul li a:hover {
	border-left:3px solid #0066cc;
	width:178px;
	padding-left:4px;
	background-color:#CCC;
	}
	

/* hover over 'a' in contact*/
div#right_col ul li.contact a:hover, div#right_col ul li.contact a {
	background-color:#ededed;
	padding-left:0px;
	text-decoration:none;
	border:none;
	color:#0066cc;
}

div#right_col ul li.contact a:hover {
	text-decoration:underline;
}
	
div#left_col ul li#current_post a {
	border-left:3px solid #0066cc;
	width:178px;
	padding-left:4px;
	background-color:#CCC;
	}
	
div#left_col ul li.current_page_item a {
	border-left:3px solid #0066cc;
	width:178px;
	padding-left:4px;
	background-color:#CCC;
	}
	
	
/*main content (middle column)*/

div#main_col {
	float:left;
	padding:3px 10px 0px 10px;
	width:510px;
	}
	
div#main_col h4.top {
	margin-top:0px;
}	
	
div#main_col small#date {
	float:right;
	color:#0066cc;
	margin-top:10px;
	}
	
div#main_col li {
	line-height:1.5;
	}
	
div#main_col h3 {
	float:left;
	width:400px;
	}
	
div#main_col .sub-title {
	margin:0;
	font-size:16px;
}
	
.clear  {
	clear:both;
	}
	
.aligncenter {
	display: block;
	margin-left: auto;
	margin-right: auto;
}

.alignright {
	float: right;
	margin: 0 0 2px 10px;
	}

.alignleft {
	float: left;
	margin: 0 10px 2px 0;
	}
	
.wp-caption {
	border: 1px solid #ddd;
	text-align: center;
	background-color: #f3f3f3;
	padding-top: 4px;
	/*margin:0 10px 0 0;*/
	-moz-border-radius: 3px;
	-khtml-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	}

.wp-caption p.wp-caption-text {
	font-size: 12px;
	line-height: 17px;
	padding: 0 4px 5px;
	margin: 0;
	}
	
	
/* Begin Form Elements */
#searchform {
	margin: 10px auto;
	padding: 5px 3px;
	text-align: center;
	}

#sidebar #searchform #s {
	width: 108px;
	padding: 2px;
	}

#sidebar #searchsubmit {
	padding: 1px;
	}

.entry form { /* This is mainly for password protected posts, makes them look better. */
	text-align:center;
	}

select {
	width: 130px;
	}

#commentform input {
	width: 170px;
	padding: 2px;
	margin: 5px 5px 1px 0;
	}

#commentform {
	margin: 5px 10px 0 0;
	}
#commentform textarea {
	width: 100%;
	padding: 2px;
	}
#respond:after {
		content: "."; 
	    display: block; 
	    height: 0; 
	    clear: both; 
	    visibility: hidden;
	}
#commentform #submit {
	margin: 0 0 5px auto;
	float: right;
	}
/* End Form Elements */
	
	
	
/* Begin Comments*/
.alt {
	margin: 0;
	padding: 10px;
	}

.commentlist {
	padding: 0;
	text-align: justify;
	}

.commentlist li {
	margin: 10px 0 10px;
	padding: 10px 10px 10px 10px;
	list-style: none;
	border: 1px solid #ddd;
	background-color: #f3f3f3;
	-moz-border-radius: 3px;
	-khtml-border-radius: 3px;
	-webkit-border-radius: 3px;
	border-radius: 3px;
	}
	
li.comment-author-admin {
	background-color:#FFFFCC;
	border: 1px solid #333;
	}

.commentlist li ul li { 
	margin-right: -5px;
	margin-left: 10px;
}

.commentlist p {
	margin: 20px 0 0 0;
	clear:both;
}

.children { padding: 0; }

#commentform p {
	margin: 5px 0;
	}

.nocomments {
	text-align: center;
	margin: 0;
	padding: 0;
	}

.commentmetadata {
	float:right;
	margin-top:2px;
	margin-bottom:10px;
	}
	
.commentmetadata a {
	color:#0066cc;
	text-decoration:none;
	}
	
.commentmetadata a:hover {
	color:#0066cc;
	text-decoration:underline;
	}
	
cite.fn {
	font-size:16px;
	color:#0066cc;
	font-weight:bold;
	}
	
.comment-author {
	color:#666;
	}
	
span.says {
	color:#666;
	}
	
div#respond textarea {
	margin-top:6px;
	}
	
div.vcard {
	float:left;
	}
	
.comment em {
	clear:left;
	font-weight:bold;
	}
	
div.clear a {
	color:#0066cc;
	text-decoration:underline;
	}
	
div.archive {
	margin-bottom:25px;
	}
/* End Comments */


/*footer*/
div#footer {
	padding:5px;
	color:#999;
	font-size:10px;
	margin-top:10px;
	clear:both;
	background-color:#ccc;
	background-image:url(images/footer_2.jpg);
	background-repeat:no-repeat;
	width:960px;
	height:100px;
	}
	
div#footer_content {
	padding-top:5px;
	margin-left:auto;
	margin-right:auto;
	width:900px;
	border-top: 3px solid #0066cc;
	}

/*p#copyright {
	margin:0 3px 0 0;
	float:right;
	}
	
p#credit {
	margin:0 3px 0 0;
	float:right;	
	}*/
	
div#right_footer {
	margin:0 3px 0 0;
	float:right;
	text-align:right;
	}
	
p#copyright {
	margin:0;
	}
	
p#credit {
	margin:0;
	}
	
p#login {
	margin:0 0 0 3px;
	float:left;
	}
	
/* home page*/

div#left_col_home {
	float:left;
	margin-top:3px;
	margin-right:3px;
	width:360px;
	}
	
div#home_content {
	border-top: 3px solid #0066cc;
	padding:10px;
	background-color:#ededed;
	}
	
div#news_feed {
	border-top: 3px solid #0066cc;
	background-color:#ededed;
	margin-top:3px;
	}
	
div#news_feed ul {
	margin:0;
    list-style-type: none;
 	padding:0;
	}
	
div#news_feed ul li {
	margin:0;
 	padding:0;
	}
	
div#news_feed ul li a {
	margin:0;
	display:block;
	background-color:#ededed;
	width:353px;
	height:30px;
	line-height:30px;
	font-size:14px;
	color:#333333;
	padding-left:7px;
	text-decoration:none;
	border-bottom:solid 1px #d2d2d2;
	}
	
div#news_feed ul li a:hover {
	border-left:3px solid #0066cc;
	padding-left:4px;
	background-color:#CCC;
	}
	
div#news_feed ul li.title {
	display:block;
	background-color:#ededed;
	background-image:url(images/shad_1.jpg);
	background-repeat:repeat-x;
	width:353px;
	height:30px;
	line-height:30px;
	font-size:14px;
	color:#0066cc;
	padding-left:7px;
	border-bottom:solid 1px #d2d2d2;
	font-weight:bold;
	margin:0;
	}
	
div#main_col_home {
	float:left;
	width:348px;
	margin-right:3px;
	}	
	
div#main_col_home a.link {
	float:left;
	width:336px;
	padding-left:10px;
	height:26px;
	padding-top:109px;
	margin:3px 0 0 0;
	border:solid 1px #d2d2d2;
	color:#fff;
	font-size:18px;
	text-decoration:none;
	}
	
#research {
	background-image:url(images/research.jpg);
	background-repeat:no-repeat;
}

#clinical {
	background-image:url(images/clinical.jpg);
	background-repeat:no-repeat;
}

#education {
	background-image:url(images/education.jpg);
	background-repeat:no-repeat;
}


/* =========== homepage links (be careful when transfering server)============= */

div#main_col_home ul {
	margin:0;
	padding:0;
}

div#main_col_home ul li {
	list-style:none;
	margin:0;
	padding:0;
	margin-top:3px;
	}
	
div#main_col_home ul li.cat-item a {
	text-decoration:none;
	display:block;
	width:336px;
	padding-left:10px;
	height:26px;
	padding-top:109px;
	border:solid 1px #d2d2d2;
	color:#fff;
	font-size:18px;
	}
	
div#main_col_home li.cat-item-1 a {
	background-image:url(images/news_1.jpg);
	background-repeat:no-repeat;
}
	
div#main_col_home li.cat-item-10 a { /* 4 richardscarrott.co.uk/IDOP */
	background-image:url(images/research_1.jpg);
	background-repeat:no-repeat;
}

div#main_col_home li.cat-item-11 a { /* 5 richardscarrott.co.uk/IDOP */
	background-image:url(images/clinical_1.jpg);
	background-repeat:no-repeat;
}

div#main_col_home li.cat-item-12 a { /* 6 richardscarrott.co.uk/IDOP */
	background-image:url(images/education_1.jpg);
	background-repeat:no-repeat;
}
/* =========== homepage links (be careful when transfering server) ============= */
	
/*generic page layout (without children) page.php*/

div#main_col_page {
	float:left;
	padding:3px 10px 0px 10px;
	width:695px;
	}
	
/*contact form/page */

#main_col_contact {
	float:left;
	padding:20px 50px 0 40px;
	width:625px;
	}

.wpcf7-form label  {
	width :100px;
	float :left;
	text-align :left;
	color:#0066cc;
	margin-top:5px;
	}
	
.wpcf7-form {
	font-family:Arial, Helvetica, sans-serif;
	}
	
.wpcf7-form input {
	width:220px;
	padding:2px;
	margin:5px 5px 1px 0;
	}
	
.wpcf7-form textarea {
	width: 625px;
	padding: 2px;
	}
	
.wpcf7-form #submit {
	margin: 0 0 5px auto;
	float: right;
	}
	
.wpcf7-not-valid-tip-no-ajax {
	color:#FF0000;
	}

/* strange CSS behaviour from contact details (on contact page) beware*/
div#contact_ad {
	background-color:#ededed;
	padding:25px;
	padding-left:23px;
	padding-right:15px;
	height:215px;
	border:#CCC 1px solid;
	margin-bottom:15px;
}

div#contact_ad p {
	float:left;
	margin-right:10px;
}
/* strange CSS behaviour from contact details (on contact page) beware*/


/*#contact_1 {
	float:left;
	margin-top:15px;
	margin-bottom:15px;
	margin-right:50px;
}

#contact_2 {
	margin-top:30px;
	margin-bottom:15px;
}*/
	
	
	
	
	
	
	
	
	