/* Sticky footer (revised) */
html {
    position: relative;
    min-height: 100%;
}
body {
    margin-bottom: 160px; /* Footer height */
}
footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 160px;
}

/* Global  --------------------------------------------------------- */
body {
    font-size: 16px;
    line-height: 1.5;
    font-family: 'Open Sans', Helvetica, Arial, sans-serif;
}

@media only screen and (max-width: 767px) {
    body {
        font-size: 15px;
    }
}

h1, .h1, h2, .h2, h3, .h3, h4, .h4, p {
    margin-top: 0;
}

h1, .h1 {
    font-size: 2.875em; /* 46px */
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.2174em; /* 10px */
}
header h1 {
    text-align: center;
}
h2, .h2 {
    font-size: 2.25em; /* 36px */
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 0.1389em; /* 5px */
}

p + h2,
ul + h2 {
    margin-top: 1em;
}

h3 {
    font-size: 1.5em; /* 24px */
    font-weight: 800;
    margin-bottom: 2px;
}

h4 {                    /* Used for lead copy */
    font-size: 1.5em;
    font-weight: 300;
    margin-bottom: 0.625em; /* 15px, visually similar to margin between h1->h3 */
    line-height: 1.25;
}

h5 {
    font-weight: 700;
    font-size: 1.25em;
    margin-bottom: 2px;
    letter-spacing: -0.4px;
}
h6 {        /* Not used */
    font-size: 1em;
    font-weight: 300;
    margin-bottom: 2px;
}

/* Content  --------------------------------------------------------- */
.content {
    padding: 30px 0 80px 0;
}

.content a {
    font-weight: 700;
}
.content h1 a, .content h2 a, .content h3 a, .content h4 a {
    font-weight: 800;
}
.content a.btn {
    font-weight: normal;
}

.content p {
    margin-bottom: 1em;
}
.content p + h3 {
    margin-bottom: 2px; /* Reduce bottom margin for subheadings in content */
}
.content li {
    margin-bottom: 1em;
}
.content blockquote {
    margin: 1.125em 0;
    font-weight: 300;
}
.content p.meta {
    font-size: 0.875em; /* 14px */
    font-style: italic;
}
.content img {
    max-width: 100%;
    border-radius: 2px;
}
.content .dropdown-menu > li > a {
    color: #2a6496;
}
.content .dropdown-menu > li > a:hover,
.content .dropdown-menu > li > a:focus,
.content .dropdown-menu > .active > a,
.content .dropdown-menu > .active > a:hover,
.content .dropdown-menu > .active > a:focus {
    color: #193c5a;
}

.content .admin-section {
    margin-top: 3em;
}
.content .admin-section .btn-default {
    margin-right: 3px;
}

/* .img-right page layout */
.img-right .img-wrap {
    float: right;
    width: 350px;
    margin: .3125em 0 2em 1.5em;  /* 5px & 24px */
}
.img-right p {
    max-width: 600px;
}

/* .block page layout */
.block .img-wrap {
    margin: 0 0 .9375em 0; /* 15px */
}
.block .container {
    padding: 0 50px;
}
/* Mobile adjustments for page layouts*/
@media only screen and (max-width: 869px) {
    .block .container {
        padding: 15px;
    }
}
@media only screen and (max-width: 767px) {
    .img-right .img-wrap {
        width: 300px;
    }
}
@media only screen and (max-width: 599px) {
    .img-right .img-wrap {
        float: none;
        width: 100%;
        margin: 15px 0;
    }
}

/* Pagination */
.pagination a,
.pagination span {
    font-weight: normal;
    font-size: .875em;
}
/* Search  --------------------------------------------------------- */
/* Modal */
#search {
    top: 100px;
}
#search .modal-header {
    border: none;
    padding: 15px 20px;
}
#search .modal-header .close {
    color: #FFF;
    font-size: 2em;
    opacity: 0.8;
}
#search .modal-body {
    padding: 10px 35px 20px 35px;
}
#search .modal-content{
    background-color: #222;
    color: #FFF;
}
#search .input-group {
    margin: 1em 0 3em 0;
}

/* Mobile nav search box */
#search-input {
    display: none;
    border: 1px solid #444;
    padding: 10px 5px;
}
#search-input .input-group { padding: 5px 10px; }

/* Swap between the two search input methods */
@media only screen and (max-width: 767px) {
    #search-trigger { display: none; }
    #search-input { display: block; }
}

/* Results page */
.search h2 a, .search h2 a:hover, .search h2 a:active, .search h2 a:visited {
    color: #333;
}
/* Blank result */
.search h2 + h3 {
    margin: 1.5em 0;
    text-align: center;
}
/* Results list */
.search h2 + .result {
    margin-top: 2.5em;
}
.search .result {
    margin-bottom: 2.5em;
}
.search .result .thumb {
    float: left;
    width: 120px;
    margin: 4px 1em 1em 0;
}
.search .result h3, .search .result p.meta {
    padding-left: 136px;
    margin-bottom: 8px;
}
.search .result h2 {
    font-size: 2em;
    margin-bottom: 5px;
}
.search .result h3 {
    font-size: 1.25em;
}
@media only screen and (max-width: 379px) {
    .search .result .thumb {
        float: none;
        display: block;
        margin-bottom: 0.6em;
    }
    .search .result h2 {
        margin-bottom: 5px;
    }
    .search .result h3, .search .result p.meta {
        padding: 0;
    }
}

/* News  --------------------------------------------------------- */
.news-list {
    margin-bottom: 3.5em;
}
.news-list img {
    float: left;
    margin: 6px 1.25em 2.5em 0;
}
.news-list h2 a, .news-list h2 a:hover, .news-list h2 a:active, .news-list h2 a:visited {
    color: #333;
}
.news-list h3, .news-list p.meta {
    padding-left: 170px;
}
@media only screen and (max-width: 767px) {
    .news-list h2 {
        font-size: 2em; /* 30px */
    }
    .news-list h3 {
        font-size: 1.25em; /* 20px */
    }
    .news-list img {
        height: 120px;
    }
    .news-list h3, .news-list p.meta {
        padding-left: 139px;
    }
}

@media only screen and (max-width: 379px) {
    .news-list img {
        float: none;
        display: block;
        margin: 0 0 0 0;
    }
    .news-list h3, .news-list p.meta {
        padding: 0;
    }
}
/* People --------------------------------------------------------- */
.people {
    margin-bottom: 2em;
}
h4 + .people  {
    margin-top: 2em;
}
.people .img-wrap {
    float: left;
    margin: 3px 1em 1em 0;
    max-width: 200px;
}
.people p {
    padding-left: 216px;
}
@media only screen and (max-width: 767px) {
    .people .img-wrap {
        max-width: 150px;
    }
    .people p {
        padding-left: 165px;
    }
}
@media only screen and (max-width: 525px) {
    .people .img-wrap {
        float: none;
        margin: 1em 0;
    }
    .people p {
        padding-left: 0;
    }
}

/* Places --------------------------------------------------------- */

#google-map {
    height: 300px;
}
#google-map img {
    max-width: none;
}

.map-responsive{
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
}

.map-responsive iframe{
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}

/* About  --------------------------------------------------------- */
.about .content .embed-responsive {
    margin: 25px 0;
}

.about .content.contact p {
    margin-bottom: 2em;
}
.about .content form {
    margin: 1em 0;
}

/* Subscribe  --------------------------------------------------------- */
.subscribe .img-wrap {
    margin-bottom: 2em;
}
.subscribe form {
    margin: 1em 0 3em 0;
}

/* 404 page  --------------------------------------------------------- */
.fourohfour h1 {
    margin-bottom: .8em;
}

/* Admin area  --------------------------------------------------------- */
.admin .content {
    margin-top: 0;
}
#alert p {
    margin-bottom: 0;
}
.admin header {
    margin-bottom: 10px;
}
.admin .content .breadcrumb {
    font-size: 13px;
    background-color: #FFF;
}
.admin .content h1 .btn {
    letter-spacing: 0;
    margin-top: 10px;
    font-weight: normal;
}
.admin .content h2 {
    margin-bottom: 22px;
}
.admin .content h2 .glyphicon {
    font-size: 16px;
}
.admin .content .button-list {
    margin-top: 2em;
}
.admin .content .button-wrap {
    padding-top: 2em;
}
.admin .dates-group {
    margin-bottom: 30px;
}
.admin .img-group {
    margin: 40px 0 30px 0;
}
.admin .img-group img {
    margin-top: 5px;
}
.admin span.part-paid {
    background-color: #efb73e;
    color: #FFF;
}
.admin span.full-paid {
    background-color: #3c763d;
    color: #FFF;
}

.admin .orientation {
    display: none;
}

.admin span.unpaid {
    background-color: #C42D2A;
    color: #FFF;
}
.icon-green, a.icon-green {
    color: #5cb85c;
}
.icon-red, a.icon-red {
    color: #d9534f;
}
.icon-orange {
    color: #f0ad4e;
}
.icon-grey {
    color: #888888;
}
.checkbox-large {
    -webkit-transform: scale(1.3,1.3);
       -moz-transform: scale(1.3,1.3);
         -o-transform: scale(1.3,1.3);
}
.radio label, .checkbox label {
    font-weight: bold;  /* Make these consistent with other labels */
}
tr.waitlist, tr.cancelled {
    font-style: italic;
    opacity: 0.5;
    background-color: #F4F4F4;
}
tr.cancelled td, tr.cancelled td a {
    text-decoration: line-through;
}

tbody.attendees {
    font-size: 0.875em;
}

/* Multi-dupe dropdown */
.admin ul.multi li {
    margin: 0;
}
.admin .content .dropdown-menu > li > a {
    color: #333;
}

/* Forms */
.admin .content .help-text {
    font-size: 14px;
    margin-top: -1em;
    margin-bottom: 3em;
}
.admin .content .help-text dt {
    margin-right: 10px;
    width: 280px;
}
.admin .content .help-text dl {
    margin-bottom: 10px;
}
label.form-required:after {
    content: ' *';
}

/* Bookings list */
.admin .bookings-entry th,
.admin .bookings-entry td {
    padding: 8px 8px 5px 8px;
}
.admin .bookings-note td {
    border: none;
    padding: 0 8px 10px 8px;
    font-size: .7em;
    color: #777;
}
.admin .bookings-note td a {
    text-decoration: none;
    color: #777;
    font-weight: normal;
}
.admin .bookings-note.waitlist td a,
.admin .bookings-note.cancelled td a {
    color: #000;
}

.admin .popover {
    font-size: .7em;
    max-width: 400px;
    display: block;
}

/* Action buttons */
.action-buttons {
    padding: 10px 0;
}
.action-buttons span {
    width: 80px;
}
.action-label {
    display: inline-block;
    width: 100px;
    font-weight: bold;
}
.action-buttons .btn {
    min-width: 150px;
}

/* Bookings transfer */
.transfer-list .glyphicon-new-window {
    font-size: 12px;
    padding-left: 5px;
}
.transfer-notes {
    font-size: 14px;
}

/* Feedback  --------------------------------------------------------- */
.feedback .radio label,
.feedback .checkbox label {
    font-weight: normal;
}

/* Events  --------------------------------------------------------- */
/* Events index */
body.events .content ul.nav {
    margin: 0 0 2em 0;
}
body.events .content ul.nav a {
    font-weight: normal;
    font-size: 12px;
    text-transform: uppercase;
    color: #333;
}
body.events .nav-pills > li.active > a,
body.events .nav-pills > li.active > a:hover,
body.events .nav-pills > li.active > a:focus {
    background-color: #888;
    color: #FFF;
}
/* body.event is event single */
body.event p.meta a {
    color: #333;
    font-weight: 300;
}
body.event .thumb {
    float: left;
    width: 120px;
    margin: 2px 8px 1em 0;
}
body.event .feature h5 {
    margin: 0 0 5px 0;
}
body.event .feature h5,
body.event .feature p {
    font-size: 1em;
    padding-right: 1em;
}
body.event .feature p {
    padding-right: 0;
    max-width: 500px;
}
body.event .sep {
    margin-top: 2em;
}
.date-long {
    margin: 10px 0;
}
body.event .leader-wrap {
    clear: both;
    margin-bottom: 25px;
}

/* Event payment */
.payment-tabs{
    border-bottom: none;
    margin: 25px 0;
}

.payment-tabs-content p {
    max-width: none;
}

.form-group.amount {
    max-width: 250px;
}
/* Payment confirmation */
.v-top {
    vertical-align: top;
}
.summary p {
    margin-bottom: 0;
}
.amount {
    margin-bottom: 2em;
}
/* Home page  --------------------------------------------------------- */
body.home {
    background-image: url('../images/headers/home-full.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
body.home header {
    background-image: none;
    background-color: transparent;
    height: 31.25em;
}
body.home footer {
    background-color: transparent;
}
body.home header h1 {
    font-size: 6.25em; /* 100px */
    font-weight: 800;
    color: #EEE;
    position: absolute;
    top: 65%;
    left: 50%;
    -webkit-transform: translate(-50%, -65%);
       -moz-transform: translate(-50%, -65%);
        -ms-transform: translate(-50%, -65%);
         -o-transform: translate(-50%, -65%);
            transform: translate(-50%, -65%);
}
body.home .content p {
    color: #EEE;
    font-weight: 300;
    font-size: 1.5625em; /* 25px */
    text-align: center;
    max-width: 550px;
    padding: 0 25px;
    margin: 50px auto 0 auto;
}
body.home .content a,
body.home .content a:hover,
body.home .content a:active,
body.home .content a:visited {
    color: #EEE;
    font-weight: 300;
}
@media only screen and (max-width: 1399px) {
    body.home {
        font-size: 14px;
    }
    body.home .content p {
        margin-top: 70px;
    }
}

@media only screen and (max-width: 1050px) {
    body.home {
        font-size: 12px;
    }
    body.home .content p {
        margin-top: 60px;
    }
}

@media only screen and (max-width: 599px) {
    body.home {
        font-size: 9px;
        background-image: url('../images/headers/home-sm.jpg');
    }
    body.home .content p {
        margin-top: 0;
    }
    body.home header h1 {
        top: 75%;
        left: 50%;
        transform: translate(-50%, -75%);
    }
}
@media only screen and (max-width: 429px) {
    body.home header h1 {
        font-size: 36px;
    }
    body.home header h1 {
        top: 65%;
        left: 50%;
        transform: translate(-50%, -65%);
    }
    body.home .content {
        padding-top: 0;
    }
}

/* Header  --------------------------------------------------------- */
header {
    height: 85px;
    background-color: #333;
    background-image: url('../images/headers/home-slice.jpg');
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    margin-bottom: 10px;
}
/* Section-specific headers */
.meditation.big-header header {
    background-image: url('../images/headers/meditation.jpg');
}
.buddhism.big-header header {
    background-image: url('../images/headers/buddhism.jpg');
}
.events.big-header header {
    background-image: url('../images/headers/events.jpg');
}
.news.big-header header {
    background-image: url('../images/headers/news.jpg');
}
.event header {
    background-image: url('../images/headers/events-slice.jpg');
}
.news header {
    background-image: url('../images/headers/news-slice.jpg');
}
/* About currently uses the default */

@media only screen and (max-width: 599px) {
    .meditation.big-header header {
        background-image: url('../images/headers/meditation-sm.jpg');
    }
    .buddhism.big-header header {
        background-image: url('../images/headers/buddhism-sm.jpg');
    }
    .events.big-header header {
        background-image: url('../images/headers/events-sm.jpg');
    }
    .news.big-header header {
        background-image: url('../images/headers/news-sm.jpg');
    }
    .news header {
        background-image: url('../images/headers/news-slice-sm.jpg');
    }
}

.logo {
    width: 300px;
    margin: 12px 0;
}

/* Big header */
.big-header header {
    height: 320px;
}
.big-header header h1 {
    color: #FFFFFF;
    font-size: 4.625em; /* 74px */
    position: absolute;
    top: 50%;
    left: 50%;
    -webkit-transform: translate(-50%, -50%);
       -moz-transform: translate(-50%, -50%);
        -ms-transform: translate(-50%, -50%);
         -o-transform: translate(-50%, -50%);
            transform: translate(-50%, -50%);
}
/* Navbar --------------------------------------------------------- */
nav ul.navbar-nav {
    margin-top: 17px;
    text-transform: uppercase;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.navbar-nav > li > a {
    padding: 17px 15px;
    border-radius: 3px;
}

/* Add transparency to active top-level navbar items on desktop */
@media only screen and (min-width: 768px) {
    .navbar-default .navbar-nav > .active > a {
        background-color: rgba(0,0,0,.4);
    }
}

/* Add #FFF hover/focus color to active and open top-level nav items */
.navbar-default .navbar-nav>.active>a:hover,
.navbar-default .navbar-nav>.active>a:focus,
.navbar-default .navbar-nav .open a,
.navbar-default .navbar-nav .open a:hover,
.navbar-default .navbar-nav .open a:focus {
    color: #FFF;
}

/* Top-level dropdown open - remove border radius */
.navbar-default .navbar-nav>.open>a,
.navbar-default .navbar-nav>.open>a:hover,
.navbar-default .navbar-nav>.open>a:focus {
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
}

/* Dropdown menu itself */
.navbar-nav > li > .dropdown-menu {
    background-color: #222;
    border-color: #222;
    border-radius: 3px;
    border-top-right-radius: 0;
}

/* Dropdown item */
nav .dropdown-menu > li > a {
    font-size: 11px;
    font-weight: 600;
    color: #DDD;
    padding-top: 6px;
    padding-bottom: 6px;
}

/* Dropdown item hover/focus/active */
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus,
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
    text-decoration: underline;
    background-color: transparent;
    color: #FFF;
}

.navbar-toggle {
    margin-top: 27px;
}


/* Header mobile adjustments  --------------------------------------------------------- */
@media only screen and (max-width: 860px) {
    .logo {
        width: 260px;
        margin-top: 15px;
    }
    nav ul.navbar-nav {
        font-size: 11px;
        margin-top: 18px;
    }
    .navbar-nav>li>a {
        padding: 16px 13px;
    }
    .big-header header h1 {
        font-size: 3.75em; /* 60px */
    }
}
@media only screen and (max-width: 767px) {
    .logo {
        margin-top: 17px;
        margin-left: 15px;
    }
    .navbar-default .navbar-collapse {
        background: #333;
        position: relative;
        z-index: 10;
        margin-top: 10px;
    }
    nav ul.navbar-nav {
        font-size: 13px;
        font-weight: 600;
    }
}
@media only screen and (max-width: 375px) {
    .logo {
        width: 240px;
        margin-top: 18px;
    }
}
@media only screen and (max-width: 339px) {
    .logo {
        width: 200px;
        margin: 24px 0 10px 10px;
    }
}
/* Footer  ---------------------------------------------------------*/

footer {
    background: #222;
    color: rgb(201, 201, 201);
}
footer p {
    text-transform: uppercase;
    text-align: center;
    font-size: 0.8125em; /* 13px */
    letter-spacing: 1.5px;
    /* Centre vertically */
    margin: 0;
    padding: 70px 0;
}
footer p a,
footer p a:hover,
footer p a:active,
footer p a:visited {
    color: rgb(201, 201, 201);
    line-height: 22px;
}
footer span.footer-sep {
    margin: 0 15px;
}

/* Tables -------------------------------------------------------------------*/
.table-small {
    font-size: 13px;
}
.table-small th, .table-small td {
    padding: 3px;
}

/* Datatables ---------------------------------------------------------------*/
.dataTables_info {
    font-size: 14px;
}
table.dataTable thead .sorting_asc:after,
table.dataTable thead .sorting_desc:after,
table.dataTable thead .sorting:after {
    content: "" !important;
}
table.dataTable th,
table.dataTable th:visited {
    color: #2a6496;
}
table.dataTable th:hover,
table.dataTable th:active {
    text-decoration: underline;
    color: #193c5a;
}
/* Utilities ----------------------------------------------------------------*/
.italic {
    font-style: italic;
}
.unstyled-link,
.unstyled-link a {
    color: #333;
    font-weight: 300;
}

/* Renovations content ------------------------------------------------------*/
.renovations .progress {
    height: 60px;
}
.renovations .progress-bar {
    line-height: 60px;
    font-size: 30px;
    background-color: #e14945;
}
.renovations .progress-title h3 {
    margin-bottom: 10px;
}

@media (min-width: 700px) {
    .renovations .progress-title {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .renovations .progress-title > h3 + h3 {
        text-align: right;
    }
}
.renovations .btn {
    margin-top: 10px;
    margin-right: 10px;
}
.renovations .mb-3 {
    margin-bottom: 20px;
}
.renovations .mt-5 {
    margin-top: 60px;
}
.renovations .list-group li {
    margin-bottom: -1px;
    min-height: 46px;
}
.renovations .list-group-item p {
    margin: 0;
}
.renovations .gallery {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    margin: 25px 0;
    background: #F5F5F5;
}
@media(max-width: 599px) {
    .renovations .gallery {
        grid-template-columns: 1fr 1fr;
    }
}
.renovations .gallery-image {
    padding: 10px;
}
.renovations .single-image {
    margin: 25px 0;
    text-align: center;
}
