/* Partner organizations: profile pages, events listing, contact form. */

.org-byline {
    font-size: 15px;
    color: #7A7A7A;
    margin-bottom: 12px;
}

.org-byline a {
    color: #3B6E9F;
    font-weight: 600;
    text-decoration: none;
}

.org-byline a:hover {
    color: #F05B7C;
}

/* .blog-posts a is an absolutely positioned overlay in main.css, so the byline
   link has to opt out of it and sit above it to stay clickable. */
.blog-posts .org-byline,
.alm-reveal .org-byline {
    position: relative;
    z-index: 2;
}

.blog-posts .org-byline a,
.alm-reveal .org-byline a {
    position: static;
    display: inline;
    width: auto;
    height: auto;
}

.org-tag {
    display: inline-block;
    border: 2px solid #c0c0c0;
    color: #7A7A7A;
    font-size: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    margin: 0 8px 8px 0;
    text-decoration: none;
    transition: all 0.2s;
}

.org-tag:hover {
    border-color: #F05B7C;
    color: #F05B7C;
}

/* Organization profile
---------------------------------------------------------------------------- */

.org-profile {
    background: #f6f5f6;
    padding: 50px 0 60px;
}

.org-main {
    background: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    border-radius: 9px;
    padding: 40px;
    margin-bottom: 50px;
}

.org-aside {
    float: left;
    width: 30%;
    box-sizing: border-box;
    text-align: center;
}

.org-aside .btn {
    display: block;
    margin-bottom: 12px;
    padding: 14px 20px;
    font-size: 14px;
}

.org-aside .btn.contact {
    background: #3B6E9F;
}

.org-aside .btn.contact:hover {
    background: #F05B7C;
}

.org-logo {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5e5e5;
}

.org-logo img {
    max-width: 100%;
    height: auto;
}

.org-content {
    float: left;
    width: 70%;
    box-sizing: border-box;
    padding-left: 50px;
}

.org-description p {
    font-size: 18px;
    line-height: 150%;
    color: #7A7A7A;
    margin-bottom: 15px;
}

.org-block {
    margin-top: 35px;
}

.org-block h3 {
    font-size: 24px;
    color: #3B6E9F;
    margin-bottom: 15px;
}

.org-categories {
    list-style: none;
    margin: 0;
    padding: 0;
}

.org-categories li {
    margin-bottom: 8px;
}

.org-category-link {
    display: inline-block;
    color: #F05B7C;
    font-size: 15px;
    text-decoration: none;
    margin-left: 6px;
}

.org-category-link:hover {
    text-decoration: underline;
}

.org-category-link i {
    font-size: 12px;
}

.org-section {
    margin-bottom: 50px;
}

.org-section h2 {
    font-size: 34px;
    color: #3B6E9F;
    margin-bottom: 25px;
}

.org-section .blog-posts {
    margin-top: 0;
}

.org-back {
    padding: 10px 0 20px;
}

.org-back a {
    color: #3B6E9F;
    font-weight: 600;
    text-decoration: none;
}

.org-back a:hover {
    color: #F05B7C;
}

/* Organizations index
---------------------------------------------------------------------------- */

.org-index {
    background: #f6f5f6;
    padding: 50px 0;
}

.org-index-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 30px;
}

.org-index-item {
    width: 23%;
    margin: 0 2.66% 25px 0;
    background: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
    border-radius: 9px;
    padding: 25px 20px;
    box-sizing: border-box;
    text-align: center;
    text-decoration: none;
    color: #3B6E9F;
    font-weight: 600;
    transition: all 0.2s;
}

.org-index-item:nth-child(4n) {
    margin-right: 0;
}

.org-index-item:hover {
    box-shadow: 0 0 14px rgba(0, 0, 0, 0.25);
}

.org-index-item img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto 15px;
}

/* Directory card profile link
---------------------------------------------------------------------------- */

.results-content .companies .company .profile-link {
    display: inline-block;
    margin-top: 12px;
    margin-left: 12px;
    color: #3B6E9F;
    font-weight: 600;
    text-decoration: none;
    font-size: 14px;
}

.results-content .companies .company .profile-link:hover {
    color: #F05B7C;
}

/* Events listing
---------------------------------------------------------------------------- */

.events-listing {
    background: #f6f6f6;
    padding: 40px 0 60px;
}

.events-intro {
    text-align: center;
    margin-bottom: 30px;
}

.events-intro p {
    font-size: 22px;
    line-height: 140%;
    color: #7A7A7A;
    max-width: 820px;
    margin: 0 auto;
}

.events-filters {
    background: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15);
    border-radius: 9px;
    padding: 20px;
    margin-bottom: 30px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
}

.events-filters .field {
    margin: 0 20px 10px 0;
}

.events-filters label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7A7A7A;
    margin-bottom: 6px;
}

.events-filters select,
.events-filters input[type="date"] {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    padding: 11px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #444;
    min-width: 190px;
    box-sizing: border-box;
}

.events-filters .btn {
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    padding: 13px 30px;
}

.events-filters .reset-url {
    margin-left: 15px;
    color: #7A7A7A;
}

.events-listing .results {
    margin-bottom: 20px;
    color: #7A7A7A;
    font-size: 18px;
}

.events-listing .event-wrap .left {
    float: left;
    width: 30%;
}

.events-listing .event-wrap .left img,
.org-section .event-wrap .left img {
    max-width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
}

.events-listing .event-wrap .right {
    width: 70%;
}

.org-section .event-wrap .left {
    float: left;
    width: 30%;
}

.org-section .event-wrap .right {
    width: 70%;
}

.event-time {
    color: #7A7A7A;
    font-size: 17px;
    margin-bottom: 15px;
}

.event-time i {
    color: #3B6E9F;
    margin-right: 6px;
}

.event-cats {
    margin: 15px 0;
}

.events-pagination {
    text-align: center;
    padding: 20px 0;
}

.events-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border-radius: 8px;
    background: #fff;
    color: #3B6E9F;
    text-decoration: none;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.12);
}

.events-pagination .page-numbers.current {
    background: #F05B7C;
    color: #fff;
}

/* Partner contact form
---------------------------------------------------------------------------- */

.partner-contact {
    background: #f6f5f6;
    padding: 50px 0 60px;
}

.contact-intro {
    text-align: center;
    margin-bottom: 30px;
}

.contact-intro p {
    font-size: 22px;
    line-height: 140%;
    color: #7A7A7A;
    max-width: 820px;
    margin: 0 auto;
}

.partner-contact-form {
    background: #fff;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
    border-radius: 9px;
    padding: 40px;
    max-width: 820px;
    margin: 0 auto;
}

.partner-contact-form .field {
    margin-bottom: 22px;
}

.partner-contact-form .field.half {
    float: left;
    width: 48%;
}

.partner-contact-form .field.half + .field.half {
    float: right;
}

.partner-contact-form label {
    display: block;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #7A7A7A;
    margin-bottom: 8px;
}

.partner-contact-form .required {
    color: #F05B7C;
}

.partner-contact-form input[type="text"],
.partner-contact-form input[type="email"],
.partner-contact-form select,
.partner-contact-form textarea {
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    color: #444;
    background: #fff;
}

.partner-contact-form textarea {
    line-height: 150%;
    resize: vertical;
}

.partner-contact-form input:focus,
.partner-contact-form select:focus,
.partner-contact-form textarea:focus {
    outline: none;
    border-color: #3B6E9F;
}

.partner-contact-form .btn {
    border: none;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
}

.partner-contact-form .form-note {
    font-size: 14px;
    color: #999;
    margin-top: 15px;
}

/* Honeypot: hidden from humans, still reachable for bots filling every field. */
.fuse-hp {
    position: absolute !important;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-notice {
    max-width: 820px;
    margin: 0 auto 25px;
    padding: 18px 22px;
    border-radius: 9px;
    font-size: 17px;
    line-height: 140%;
}

.form-notice.success {
    background: #e4f3e8;
    color: #266b39;
    border: 1px solid #a9d7b7;
}

.form-notice.error {
    background: #fdeaee;
    color: #a32741;
    border: 1px solid #f3bcc7;
}

.partner-contact .no-results {
    text-align: center;
    color: #7A7A7A;
    font-size: 18px;
    padding: 30px 0;
}

@media screen and (max-width: 900px) {
    .org-index-item {
        width: 48%;
        margin-right: 4%;
    }

    .org-index-item:nth-child(4n) {
        margin-right: 4%;
    }

    .org-index-item:nth-child(2n) {
        margin-right: 0;
    }
}

@media screen and (max-width: 768px) {
    .org-main {
        padding: 25px;
    }

    .org-aside,
    .org-content {
        float: none;
        width: auto;
        padding-left: 0;
    }

    .org-content {
        margin-top: 30px;
    }

    .events-filters .field,
    .events-filters select,
    .events-filters input[type="date"] {
        width: 100%;
        margin-right: 0;
    }

    .events-listing .event-wrap .left,
    .events-listing .event-wrap .right,
    .org-section .event-wrap .left,
    .org-section .event-wrap .right {
        float: none;
        width: auto;
        padding-left: 0;
    }

    .partner-contact-form {
        padding: 25px;
    }

    .partner-contact-form .field.half,
    .partner-contact-form .field.half + .field.half {
        float: none;
        width: auto;
    }

    .org-index-item {
        width: auto;
        margin-right: 0;
    }
}
