/* ------------------------ 

COLOURS:

#23417d  - main blue
#930a37 - red

-------------------------------*/

/* ------------------------ LAYOUT -------------------------------*/

body { padding: 0; margin: 0 auto; }
.page_width { max-width: 1170px; margin: 0 auto; background: #fff; padding: 0 15px; box-sizing: border-box; }
#page { margin: 0 auto; padding: 30px 0; background: #fff; }
footer { background-color: #f0eeee; color: #7f7e83; font-weight: normal; font-size: 12px; line-height: 18px; padding: 5px 0 20px 0; } 
footer a { color: #7f7e83; text-decoration: none; }
footer section { width: 25%; float: left; padding: 10px; box-sizing: border-box; }
header { height: 95px; }
header, .sticky-header { background-color: rgba(35, 65, 125, 1); }
img { max-width: 100%; height: auto; }
.nowrap { white-space: nowrap; }
.testimonial_side { width: 33.3%; float: left; padding-right: 15px; box-sizing: border-box; }
.main_content { width: 66.6%; float: right; padding: 0 15px; box-sizing: border-box; }
.sidebar { width: 17%; float: right; padding: 15px 0 40px 0px; box-sizing: border-box; color: #818181; font-weight: 300; font-size: 14px; line-height: 17px; font-family: 'PT Sans', Arial, sans-serif; }
#content { width: 75%; float: left; }
.side_sponsors { border-top: 5px solid #23417d; margin-top: 15px; padding-top: 1px; }
.side_sponsors h3 { font-family: 'Georgia', Arial, sans-serif; font-size: 24px; font-style: italic; text-align: center; color: #23417d; }
.sponsor_logos_wrap { max-width: 95px; margin: 0 auto }
.sponsor_logos_wrap img { margin: 15px 0; }
 
 
/* ------------------------ HEADER -------------------------------*/

#nav { float: left; margin-top: 32px; width: 80%; }
#nav a {
    color: #ffffff;
    font-weight: 400;
    font-size: 14px;
    text-transform: uppercase;
    padding: 0 11px;
    display: block;
}
#nav a:hover { text-decoration: none; color: #c9d7f2; }
#menu-main-menu { text-align: left; }
#menu-main-menu li { display: inline-block; line-height: 35px; }
/** drop menu **/
#menu-main-menu li { margin: 0; }
#menu-main-menu li .sub-menu > .menu-item-has-children { display: block; margin: 0; position: relative; }
#menu-main-menu > li { position: relative; }
#menu-main-menu > li > .sub-menu { visibility: hidden; opacity: 0; position: absolute; top: 50px; left: 0px; z-index: 500; background: #23417d; padding: 2px 10px 15px 10px; transition: all 500ms ease-in-out; width: 200px; }
#menu-main-menu > li > .sub-menu { padding: 10px; }
#menu-main-menu li:hover > .sub-menu { visibility: visible; opacity: 1; top: 32px; z-index: 500; }
#menu-main-menu .sub-menu { text-align: left; color: #fff; }
#menu-main-menu .sub-menu a { display: block; line-height: 1.2em; padding: 3px 15px; }
#menu-main-menu > li > .sub-menu li { padding: 3px 0px; display: block; }
/** END drop menu **/
#logo { float: right; overflow: hidden; width: 17%; margin-top: 22px; }
.view_menu_btn { display: none; width: 25px; height: 25px; float: left; margin: 15px 0 0 0px; cursor: pointer; }
.view_menu_btn span, .view_menu_btn span:before, .view_menu_btn span:after { display: block; height: 3px; width: 25px; background: #fff; position: relative; }
.view_menu_btn span:before, .view_menu_btn span:after { content: ''; }
.view_menu_btn span:before { top: 16px; }
.view_menu_btn span:after { top: 5px; }
#logo a {
    display: block;
    max-width: 200px;
    padding-bottom: 100%;
    background: no-repeat center center url('../images/HOFTEL-logo-dev25.svg');
    background-size: cover;
}

/* ------------------------ GENERAL -------------------------------*/

.endorsements_txt_wrap { position: relative; background-color: #930a37; padding: 10px 18px 18px 18px; color: #fff; font-size: 14px; line-height: 18px; }
.endorsements_txt_wrap p { margin: 0; font-weight: 400; }
.endorsements_credit { font-size: 10px; font-weight: bold; line-height: 12px; margin-top: 10px; }
.endorsements_txt_wrap:before { content: ''; position: absolute; bottom: 0px; right: 0px; border-bottom: 41px solid white; border-left: 29px solid #930A37; width: 0; }
.grey_bg .endorsements_txt_wrap { background-color: #63656a; }
.grey_bg .endorsements_txt_wrap:before { border-left: 29px solid #63656a; }
.page-id-46 .endorsements_txt_wrap { background-color: #3e8ecd; }
.page-id-46 .endorsements_txt_wrap:before { border-left: 29px solid #3e8ecd; }
.spon_wrap { border-bottom: 1px solid #ebebeb; margin-bottom: 25px; padding-bottom: 15px; }
.spon_txt { width: 75%; float: left; box-sizing: border-box; padding-right: 20px; }
.spon_txt h2 { margin: 0 0 10px 0; }
.spon_logo { width: 25%; float: right; }
.col_3 { width: 33.33%; float: left; padding: 0 15px; box-sizing: border-box; }
.home_top { margin: 0 15px; background: #f0eeee; padding-right: 15px; margin-bottom: 30px; position: relative; }
.home_top img { width: 33%; display: block; float: left; margin-right: 15px; height: 178px; } 
.home_top a { padding-bottom: 10px; display: block; }
.home h1, .home h2 { font-size: 19px; font-family: 'Georgia', Arial, sans-serif; font-style: italic; color: #23417d; margin: 0; font-weight: 300; }
.home p { line-height: 18px; font-size: 0.95em; }
.home h1 { padding-top: 15px; }
.home_top:before { content: ''; position: absolute; bottom: 0; right: 0; border-bottom: 41px solid white; border-left: 29px solid #F0EEEE; width: 0; }
.home_giohis { background: #930a37; margin-bottom: 15px; color: #fff; }
.home_giohis h2, .home_giohis a, .home_seahis h2, .home_seahis a, .home_aohis h2, .home_aohis a { color: #fff; }
.home_giohis h2, .home_seahis h2, .home_aohis h2 { padding: 0px 15px 10px 15px; }
.home_giohis p, .home_seahis p, .home_aohis p { margin: 0; padding: 0 15px 5px 15px; }
.home_giohis a, .home_seahis a, .home_aohis a { display: block; padding: 0 15px 15px 15px; }
.home_seahis { background: #393455; color: #fff; margin-bottom: 15px; }
.home_aohis { background: #43AE89; color: #fff; }
.col_3 img { margin-bottom: 15px; }
.event_time { background: url('../images/018.png') 0 1px no-repeat; padding: 0 0 0 20px; min-height: 16px; }
.event_location { background: url('../images/052.png') 0 2px no-repeat; padding: 0 0 0 20px; min-height: 16px; }
.event_wrap { border-bottom: 1px solid #ebebeb; padding-bottom: 20px; }
.event_wrap h4 { margin-bottom: 0; }
.event_wrap p { margin: 3px 0; }
.home_events { background: #f0eeee; padding: 16px; box-sizing: border-box; margin-top: 30px; }
.home_sponsors, .home_investor { margin-top: 30px; }
label { width: 20%; box-sizing:border-box; }
input, textarea, select, .input { width: 78%; background: #fff; border: 1px solid #ebebeb; box-sizing: border-box; }
#contact_form > div { margin-bottom: 10px; }
#contact_form { border-bottom: 1px solid #ebebeb; padding-bottom: 20px; margin-bottom: 20px; }
#contact_form button { margin-left: 20%; }
.error { color: #cc0000; }
.form_response { background: #f0eeee; padding: 15px; margin-top: 15px; }
.form_response p { margin: 0; }
.post-password-form label { width: 100%; }
.post-password-form input[type="submit"] { width: auto; background: #23417d; color: #fff; margin-top: 15px; padding: 10px 15px; }
	    
/* ------------------------ BLOG PAGES -------------------------------*/

.blog #content, .single-post #content, .category #content, .date #content { width: 70%; box-sizing: border-box; -moz-box-sizing: border-box; float: left; padding: 17px; }
.blog #sidebar_wrap, .single-post #sidebar_wrap, .category #sidebar_wrap, .date #sidebar_wrap { width: 27%; box-sizing: border-box; -moz-box-sizing: border-box; float: right; padding: 17px 17px 17px 0; }
.blog img, .single-post img, .category img, .date img { max-width: 100%; height: auto; }
.blog #sidebar, .single-post #sidebar, .category #sidebar, .date #sidebar { list-style: none; }
.blog .entry { padding: 0px; }
.post { margin-bottom: 30px; }
.postmetadata { text-transform: uppercase; font-size: 0.8em; padding: 0 10px; background: #EBEBEB; color: #222; }
.postmetadata a { color: #222; }
#sidebar { background: #ccc; color: #fff; margin-top: 0; padding-top: 5px; }
#sidebar a, #sidebar a:visited { color: #fff; }
#sidebar h2 { font-size: 1.5em; color: #fff; }
#sidebar li { border-bottom: 1px solid #EBEBEB; }
.blog h2 a { color: #222; }
.more-link { clear: both; display: block; width: 90px; text-align: center; margin: 10px 0 15px 0; }

.videoWrapper { 
    position: relative; 
    padding-bottom: 47.25%; 
    padding-top: 25px; 
    height: 0; 
}
.videoWrapper iframe { 
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%; 
}


/* ------------------------ RESPONSIVE STYLES -------------------------------*/

/* Stops iphone trying to resize text when rotating */

html { -webkit-text-size-adjust:none; }

@media all and (max-width: 1150px) {
    .view_menu_btn { display: block; }
	#nav { display: none; position: absolute; top: 105px; margin-top: 0; background: #23417d; width: calc(100% - 150px); z-index: 5; }
	#nav li { display: block; text-align: center; }
	#header { height: auto; }
	#nav a { display: block; }
	#menu-main-menu > li { margin-right: 0; border-top: 1px #e6e7e5 solid; }
	#menu-main-menu > li > .sub-menu { visibility: visible; opacity: 1; display: none; position: static; width: auto; transition: none; padding-top: 0; margin-top: 0px; }
	#menu-main-menu > li > .sub-menu li { margin-bottom: 0; }
	.sub-menu > li:after { height: 10px; display: block; top: -2px; padding-left: 0; height: 10px; display: block; }
	.sub-menu > li:last-child:after { height: 10px; display: block; top: -2px; padding-left: 0; }
}
@media all and (min-width: 1151px) {
    /** NAV - make sure it's displayed even if it has and inline style via jquery  **/
	#nav { display: block !important; }
}


/* For screens smaller then 970px - iPad portrait */

@media all and (max-width: 970px) { 
    .sidebar { padding: 15px 0px 20px 0px; }
}

@media all and (max-width: 840px) { 
    .sidebar { float: none; width: 100%; clear: both; }
    #content { width: 100%; }
    #logo { 
        margin-top: 15px; 
        width: 81px; 
        position: relative;
        top: -10px;
    }
    #page { padding-top: 40px; }
    #logo a {
        background: no-repeat center center url('../images/HOFTEL-logo-dev25.svg');
        background-size: cover;
        padding-bottom: 100%;
    }
}

@media all and (max-width: 750px) { 
    .col_3 { width: auto; float: none; }
    .col_3, .col_3 > div { margin-bottom: 15px; max-width: 500px; }
    .home_top img { display: none; }
    .home_top { padding-left: 15px; }
	.home_events { margin-top: 15px; }
	footer section {
    	float: none;
    	width: auto;
    	padding: 0px 10px;
	}
	footer > .page_width {
    	padding: 20px 20px;
    	background: transparent;
	}
}

@media all and (max-width: 580px) { 
    .main_content, .testimonial_side { width: auto; float: none; }
    label, input, textarea, select, .input { width: 100%; }
	#contact_form button { margin-left: 0; }
}

/* For screens smaller then 480px - iPhone portrait */
@media all and (max-width : 479px) {  
}



/* ==|== print styles =======================================================
   Print styles.
   Inlined to avoid required HTTP connection: h5bp.com/r
   ========================================================================== */
 
@media print {
  * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster: h5bp.com/s */
  a, a:visited { text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }  /* Don't show links for images, or javascript/internal links */
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; } /* h5bp.com/t */
  tr, img { page-break-inside: avoid; }
  img { max-width: 100% !important; }
  @page { margin: 0.5cm; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3 { page-break-after: avoid; }
}

