/*
Theme Name: CAE Solutions
Theme URI: http://cae-sc.com/
Description: 
Version: 1.2
Author: Ian Lynam
Author URI: http://ianlynam.com/
Tags: 
*/


/*
  In general, styles are organized by site section rather
  than strict heirarchy. Sometimes this produces duplication
  but it's a lot easier to keep things in order this way
*/

/* Basic page structure */

body {
    font-size: 9pt; /* Resets 1em to 10px */
    font-family: 'ＭＳ　Ｐゴシック', Osaka, 'Lucida Grande', 'Hiragino Kaku', Verdana, Arial, Sans-Serif;
    color: #333;
    padding: 0px;
    background-color: #f3f3f3;
    }

#page {
    margin: auto;
    margin-top: 0px;
    padding: 18px;
    width: 763px; 
    border: 2px solid #ededed; 
    border-top: 8px solid #818385;
    background-color: white;
    text-align: left;
    }

/**** header ****/

/*
  ----------------------------
 |XXXX                 XXXXXX |
 |XXXX                 XXXXXX |
 |----------------------------|
 |/-----\ /------------------\
 ||     | |                   |
 ||     | |                   |
 ||     | |                   |
 ||     | |                   |
 ||     | |                   |
 |\     / \                  /
 |----------------------------|
  ----------------------------
*/
 
/** this section does not include the large graphic **/

#header {
    width: 100%;
    height: 85px;
    }    

#header h1 {
    float: left;
    height: 80px; /* match with padding-top below */
    margin: 0px;
    overflow: hidden;
    }
    
#header h1 a {
    background-image: url(images/logo.png);
    background-repeat: no-repeat;
    display: block;
    height: 0px;
    overflow: hidden;
    padding-top: 80px; /* match with height above */
    width: 133px;
    }
    
#header .description {
    float: right;
    width: 32%;
    color: #666;
    } 
    
#header #search {
    text-align: right;
    margin-top: 1em;
    }
    
#header #searchsubmit {
    position: relative;
    top: 5px;
    }
    
#headergraphic {
    clear: both; 
    width: 762px;
    }

/**** search ****/

#search #s { border: 1px solid #f7941e; }

/**** menubar ****/

/*
  ----------------------------
 |                            |
 |                            |
 |XXXXXXXXXXXXXXXXXXXXXXXXXXXX|
 |/-----\ /------------------\
 ||     | |                   |
 ||     | |                   |
 ||     | |                   |
 ||     | |                   |
 ||     | |                   |
 |\     / \                  /
 |----------------------------|
  ----------------------------
*/

#menubar {
    margin: 0px 0;
    height: 27px;
    width: 100%;
    }
    
#menubar ul { 
    margin: 0; 
    padding-left: 0;
    }

#menubar li {
    border-right: 1px solid white;
    float: left;
    font-size: 12px;
    font-weight: bold;
    list-style-type: none;
    padding: 0px;
    text-align: center;
    }
    
#menubar li a {
    background-image: url(images/menubar-background.png);
    background-repeat: repeat-x;
    display: block;
    height: 22px; /* graphic height - padding */
    width: 108px;
    overflow: hidden;
    padding-top: 5px;
    text-decoration: none;
    color: white; 
    }
    
#menubar a:hover { color: #ddd; }

#breadcrumbs { 
    color: #aaa; 
  margin: 0; 
    margin-bottom: 5px; 
  }

#breadcrumbs a, #breadcrumbs a:visited {
    color: #888;
  text-decoration: none;
  }
  
#breadcrumbs a:hover { background-color: #aaa; }


/**** site-wide and/or popular styles ****/

#subheader { margin-bottom: 15px; }

/** white border table with orange headers and white cells **/
/** this style only occurs inside post blocks **/

a img { border: none; }

.post table { 
    border: 2px solid white; 
    border-collapse: collapse;
    margin-top: 1em;
    margin-bottom: 1em;
    }

.post th, td {
    vertical-align: top;
    padding: 5px;
    }

.post th {

    background-color: #f27024;
    background-color: #FF7F00;
    border: 1px solid white;
    color: white;
    text-align: left;
    }

.post table.gray th, .post table.grey th {
    background-color: darkgray;
    }
    
.post td { 
    background-color: white;
    border: 1px solid #f27024;
    border-left: none;
    color: #333;
    }

.post table.gray td, .post table.grey td {
    border: 1px solid darkgray;
    }
    
.post table.aligncenter td { 
    text-align: center; 
    font-size: smaller;
    }

/* in-post links, site wide */

.post a, .page a                 { text-decoration: none; }
.post a:link, .page a:link       { color: #666; } 
.post a:visited, .page a:visited { color: #666; } 
.post a:hover, .page a:hover     { color: #eee; background-color: #666; } 

/**** grey boxes ****/
/** backgrounds are specific width graphics, styled in the individual sections **/

.blend {
    background-repeat: repeat-y;
    margin-bottom: 15px;
    }
    
.blend .top {
    background-repeat: no-repeat;
    width: 100%;
    }
    
.blend .bottom {
    background-repeat: no-repeat;
    background-position: bottom left;
    width: 100%;
    }


/**** single-box wide pages ****/
/** also used on home page for search results **/
/*
  ----------------------------
 |                            |
 |                            |
 |----------------------------|
 |/--------------------------\|
 ||                          ||
 ||                          ||
 ||            X             ||
 ||                          ||
 ||                          ||
 |\--------------------------/|
 |----------------------------|
  ----------------------------
*/

#widepage .blend, #search .blend {
    width: 761px; /* has to match background blend graphic */
    background-image: url(images/shade-left-760-bg.png);
    }
    
    
#widepage .blend .top, #search .blend .top {
    background-image: url(images/shade-left-760-top.png);
    height: 9px;
    }

#widepage .blend .bottom, #search .blend .bottom {
    background-image: url(images/shade-left-760-bottom.png);
    height: 9px;
    }

#widepage .post, #search .post {
    width: 90%;
    margin: auto;
    }

#home #search table {
/* needed by some search results on the index page */
    width: 80%;
  }

/**** 2 column structure with sidebar ****/
/** used on most pages **/
/* we used tables for the columns because
   MSIE 6/7 had too many bugs in the float
   rendering - the right column kept dropping.
   This way isn't 'proper' but it breaks better
   than float columns.
   
*/
 
/*
  ----------------------------
 |                            |
 |                            |
 |============================|
 |/-----\ /------------------\
 ||     | |                   |
 ||  X  | |                   |
 ||  X  | |                   |
 ||  X  | |                   |
 ||     | |                   |
 |\     / \                  /
 |----------------------------|
  ----------------------------
*/

#left { 
    width: 200px;
    }
    

#left ul    { margin: 0px; padding-left: 0px; width: 95%; }
#left ul ul { padding-left: 20px; }
#left li    { list-style-type: none; }
#left li    { list-style-position: outside; }

#left li { color: #000; }

#left a { 
    color: #666; 
    text-decoration: none;
    }
    
#left a:hover { 
    background-color: #666; 
    color: white;
    }

#left .currentpost { 
    background-color: #FFA000 ; /* #e27c3e; */
    padding-left: 5px; 
    }
   
#left .currentpost a { color: white; }

#left .currentpost ul { background-color: white; padding-left: 5px; } 
#left .currentpost ul a { color: #666; }

#newssidebar h3 { font-weight: normal; }

/*
  ----------------------------
 |                            |
 |                            |
 |============================|
 |/-----\ /------------------\|
 ||     | |                  ||
 ||     | |                  ||
 ||     | |       XXX        ||
 ||     | |                  ||
 ||     | |                  ||
 |\-----/ \------------------/|
 |----------------------------|
  ----------------------------
*/


#right {
    width: 550px;
    }
    
#right .blend {
    width: 550px; /* has to match background blend graphic */
    background-image: url(images/shade-left-550-bg.png);
    }

#right .blend .top {
    background-image: url(images/shade-left-550-top.png);
    height: 7px;
    }

#right .blend .bottom {
    background-image: url(images/shade-left-550-bottom.png);
    height: 7px;
    }

#right .post {
    width: 80%;
    margin: auto;
    }

#right h2 {
    margin: 0px;
    }


#right .post h2 a:hover { 
    color: #ddd;
    background-color: #666; 
    text-decoration: none;
    }

#right .category-products p a { 
    background-image: url(images/clicker-med.png); 
    background-repeat: no-repeat;
    padding-left: 15px;
    }

#right .category-products p a.noicon { 
    background-image: none; 
    padding-left: 0px;
    }

#right h2 a { 
    color: #333; 
    text-decoration: none;
    background-color: transparent;
    }


/**** 2 column structure withOUT sidebar ****/
/** used on the product overview page (category-4.php) **/
/** 2 balanced columns **/
 
/*
  ----------------------------
 |                            |
 |                            |
 |============================|
 |/-----------\  /-----------\|
 ||           |  |           ||
 ||           |  |           ||
 ||     X     |  |     X     ||
 ||           |  |           ||
 ||           |  |           ||
 |\-----------/  \-----------/|
 |----------------------------|
  ----------------------------
*/

#products table#column2 {
    border: none;
    border-collapse: collapse;
    margin: 0;
    width: 762px;
    }

#products table#column2 td {
    padding: 0px;
    }

#products table#column2 #left,
#products table#column2 #right {
    width: 50%;
    }

#products table#column2 #left {
    padding-right: 10px; 
    }
    
#products .productbox {
    width: 375px; /* has to match background blend graphic */
    background-image: url(images/shade-left-380-bg.png);
    background-repeat: repeat-y;
    margin-bottom: 10px;
    }
    
#products .productbox .top {
    background-image: url(images/shade-left-380-top.png);
    background-repeat: no-repeat;
    height: 7px;
    width: 100%
    }

#products .productbox .bottom {
    background-image: url(images/shade-left-380-bottom.png);
    background-repeat: no-repeat;
    background-position: bottom left;
    height: 7px;
    width: 100%
    }
    
#products .productbox table {
    width: 350px;
    table-layout: fixed;
    border: none;
    margin-left: 5px;
    }

#products .productbox td.graphic {
    width: 185px; /* duplicated in html for IE */
    padding-left: 10px;
    text-align: center;
  vertical-align: middle;
    }

#products .productbox td.graphic img {
    margin: auto;
    }

#products table#column2 .productbox td.titles { 
/*extra id needed to override line 389 */
    padding: 0px 9px 0px 10px;
    width: 160px; /* duplicated in html for IE */
    text-align: left;
    }

#products .productbox h3 { 
    margin-top: 0px; 
    color: #bebebe;
    font-size: 14pt;
    font-weight: normal;
    }

#products .productbox .titles ul {
    margin: 0;
    padding-left: 0;
    }

#products .productbox .titles li {
    list-style-type: none; 
    }
        
#products .productbox a       { color: #959595; text-decoration: none; }
#products .productbox a:hover { color: white;   background-color: #bebebe; }


/**** 3 section structure for home page ****/
/** used on index.php) **/
 
#home table {
    border: none;
    margin: 0;
    width: 100%;
    }

#home table td {
    padding: 0px;
    }

#home #featured { 
    width: 100%;
    }
  
  
#home h2 { 
    margin: 2px 0 2px 5px; 
    margin-left: 5px;
    color: #666;
    font-size: 14pt;
    font-weight: bold;
    }

#home table {
    table-layout: fixed;
    width: 765px;
    border-collapse: separate;
    border-spacing: 1px;
    position: relative;
    left: -1px;
  }

/*
  ----------------------------
 |                            |
 |                            |
 |============================|
 |/----\ /----\ /----\ /-----\|
 || XX | | XX | | XX | |  XX ||
 |\----/ \----/ \----/ \-----/|
 |/--------------------------\|
 ||                          ||
 ||                          ||
 ||                          ||
 ||                          ||
 |\--------------------------/|
 |----------------------------|
  ----------------------------
  
  Again, its tabled as divs
  didn't deliver reliable alignment
  
*/

#home .productbox .top {
    background-image: url(images/shade-left-185-top.png);
    background-repeat: no-repeat;
    height: 7px;
    width: 100%
    }

#home .productbox .inner {
    width: 185px; /* has to match background blend graphic */
    background-image: url(images/shade-left-185-bg.png);
    background-repeat: repeat-y;
  overflow: hidden;
  height: 100%;
    }

#home .productbox .bottom {
    background-image: url(images/shade-left-185-bottom.png);
    background-repeat: no-repeat;
    background-position: bottom left;
    height: 7px;
    }

#home .productbox h3, #home .productbox h4 { 
    margin: 2px 0 2px 5px; 
    margin-left: 5px;
    color: #666;
    font-size: 10pt;
    font-weight: normal;
    }
    
#home .productbox h3 {
    /*
    line-height: 0.9em;
    margin-bottom: 5px;
    */
    }
    
#home .productbox h4 { 
    font-size: 10pt; 
  height: 3em;
  }

#home  .productbox h4 a
    { color: #666; 
      text-decoration: none; }


#home .productbox .graphic {
    margin-left: 0px;
    text-align: center;
    }

#home .productbox .graphic img {
    display: block;
    margin: auto;
    }
    
#home #featuredbanner {
    margin-top: 10px;
    margin-bottom: 10px;
    
    }


/*
  ----------------------------
 |                            |
 |                            |
 |============================|
 |/----\ /----\ /----\ /-----\|
 ||    | |    | |    | |     ||
 |\----/ \----/ \----/ \-----/|
 |/-----------\ /------------\|
 ||           | |            ||
 ||    XX     | \------------/|
 ||    XX     | /------------\|
 ||           | |            ||
 |\-----------\ \------------/|
 |----------------------------|
  ----------------------------
  
*/

#home #news .blend {
    background-image: url(images/shade-right-370-bg.png);
    background-repeat: repeat-y;
    width: 370px;
    margin-bottom: 7px;
    }

#home #news .blend .top {
    background-image: url(images/shade-right-370-top.png);
    height: 7px;
    }

#home #news .blend .bottom {
    background-image: url(images/shade-right-370-bottom.png);
    height: 7px;
    }

#home #news .post { 
    padding: 0 10px; 
    width: 350px;
    }

#home #news ul { 
    padding-left: 0; 
    padding-top: 5px;
    background-color: white;
    margin: 0;
    }
    
#home #news li { 
    list-style-type: none; 
    margin-left: 5px;
    border-bottom: 1px solid #ccc;
    line-height: 2em;
    }
    
#home #news li.year {
    border: none;
    /* background-image: url(images/datebar.png); */
    background-repeat: no-repeat;
    height: 19px;
    width: 353px;
    line-height: 0.8em;
    padding: 5px 0 0 10px;
    color: black;
    }
    
#home #news .post table {
    width: 350px;
    }
    
#home #news .xt {
    display: none;
    }
    
  
/*
  ----------------------------
 |                            |
 |                            |
 |============================|
 |/----\ /----\ /----\ /-----\|
 ||    | |    | |    | |     ||
 |\----/ \----/ \----/ \-----/|
 |/----\ /----\ /----\ /-----\|
 ||    | |    | |    | |     ||
 |\----/ \----/ \----/ \-----/|
 |/-----------\ /------------\|
 ||           | |    XXX     ||
 ||           | \------------/|
 ||           | /------------\|
 ||           | |    XXX     ||
 |\-----------\ \------------/|
 |----------------------------|
  ----------------------------
  
*/

#home .lowerright .blend {
    background-image: url(images/shade-right-370-bg.png);
    background-repeat: repeat-y;
    width: 375px;
    margin-bottom: 7px;
    }

#home .lowerright .blend .top {
    background-image: url(images/shade-right-370-top.png);
    height: 7px;
    }

#home .lowerright .blend .bottom {
    background-image: url(images/shade-right-370-bottom.png);
    height: 7px;
    }
  
#home .lowerright .post { 
    padding: 0 10px; 
    width: 350px;
    }

#home .lowerright .post table {
    width: 350px;
    left: 0px;
  }

#home table.events {
    border-collapse: collapse;
  }
  
#home table.events  tr {
    border-bottom: 1px solid #ccc;
    }
        
#home table.events  th {
    background-color: white; 
    color: inherit;
    font-weight: normal;
    border: none;
    vertical-align: top;
    text-align: left;
    padding: 5px;
    width: 35%;
    }
    
#home table.events td {
    border: none;
    vertical-align: top;
    text-align: left;
    padding: 5px;
    }

#home .events td.more {
    border-bottom: 1px solid white;
    }

    
/**** footer ****/
/*
  ----------------------------
 |                            |
 |                            |
 |----------------------------|
 |/--------------------------\|
 ||                          ||
 ||                          ||
 ||                          ||
 ||                          ||
 ||                          ||
 |\--------------------------/|
 | XXXXXXXXXXXXXXXXXXXXXXXXXX |
  ----------------------------
*/

#footer { 
    background-image: url(images/footer-background.png);
    background-repeat: repeat-x;
    clear: both;
    color: #e7e8e9;
  font-size: 12px;
    height: 42px;
    padding-top: 12px;
    text-align: center;
    }
    
#footer ul { 
    margin: auto;
    padding: 0px;
    }

#footer li {
    display: inline;
    list-style-type: none;
    padding: 0px 20px;
    
    }

#footer a { color: #e7e8e9; text-decoration: none; }

.pagename { display: none; }

.alignright {
    float: right;
  margin-left: 20px;
  }
element { }
