/*
 Theme Name:   RFMO - Virtue Child
 Description:  Virtue Child Theme for Recovery Friendly Missouri
 Author:       Amy Keith
 Template:     virtue
 Version:      2.7.4
 License:      GNU General Public License v3 or later
 License URI:  https://www.gnu.org/licenses/gpl-3.0.en.html
 Text Domain:  virtue-child-rfmo
*/


/*
Brand Colors
Light purple: #B31CAC
Dark purple: #5E158B
Green: #37D52C
Dark gray: #7d7d7d
Light gray: #d7d7d7
*/

/* Global overrides */
#wrapper {
    line-height: 1.4;
}

.page-header {
    margin-top: 2em;
}

h1, h2, h3 {
    letter-spacing: 0.05em;
}

#nav-main ul.sf-menu li a:hover {
    color: #FFF
}

.kad-menu-name, .kad-navbtn {
    color: #FFF !important;
}

.med-grey-separator {
    border-bottom: 2px solid #d7d7d7;
}

.flex-justify-center {
    display: flex;
    justify-content: center;
}

p.rfmo-img-caption.has-white-color.has-text-color {
    margin-bottom: -1em;
    font-size: 12px;
}

/* Custom styling for slider */
.rfmo-home-slider .kb-gallery-ul {
    margin-left: 4em;
    margin-right: 4em;
}

@media only screen and (max-width: 480px) {
    .rfmo-home-slider .kb-gallery-ul {
        margin-left: 2em;
        margin-right: 2em;
    }
}

/* Custom graphic cards */
.rfmo-card {
    padding: 40px;
    background: #eee;
    border-radius: 5px;
}

p.has-text-align-center.rfmo-card-text {
    margin-bottom: 0;
}

/* Custom styling for business interest and contact forms */
.rfmo-contact-form-7-elevated {
    border: solid 1px #f2f2f2;
    padding: 30px;
    border-radius: 3px;
    box-shadow: 0 0 10px #ccc;
    background: #f7f7f7;
}

/* Custom styling for all contact forms */
.wp-block-contact-form-7-contact-form-selector label {
    font-weight: 400;
}

input.wpcf7-text, textarea.wpcf7-textarea, select {
    border: 1px solid #ccc;
    border-radius: 3px;
}

.wpcf7 input.wpcf7-submit {
    font-size: 18px;
    border-radius: 5px;
}

.wpcf7-select {
    width: 100%;
}

.wpcf7-select:focus {
    border-color: rgba(140,140,140,.8);
    outline: 0;
    box-shadow: 0 0 8px rgb(200 200 200 / 60%);
}

.rfmo-flex .wpcf7 {
    display: flex;
}

.rfmo-align-vertical {
    display: flex;
    flex-direction: column;
}

.rfmo-grid-item {
    padding: 0.5em;
}

/* Custom styling for Contact Form 7 */
.rfmo-cf7-grid-row {
    display: grid;
    grid-template-columns:  1fr 1fr;
    grid-gap: 1em;
}

.rfmo-cf7-grid-item-full {
    grid-column-start: 1;
    grid-column-end: 3;
}

h2.rfmo-cf7-section-title {
    font-size: 24px;
    font-weight: normal;
    margin-bottom: 0;
    margin-top: 0;
}

@media only screen and (max-width: 600px) {
    #rfmo-cf7-wrapper {
        display: grid;
        grid-template-columns: 1fr;
    }
    
    .rfmo-cf7-grid-row {
        display: grid;
        grid-gap: 0;
        grid-template-columns: 1fr;
    }

    .rfmo-cf7-grid-item-full {
        grid-column-start: 1;
        grid-column-end: 2;
    }
}

/* Custom styling for iframes */
.iframe-box-border {
    border: 5px solid #FFFFFF;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
}

.iframe-box {
    display: block;
    position: relative;
    z-index: 1;
    line-height: 0;
}

.iframe-container {
    text-align: center;
    position: relative;
    overflow: hidden;
    width: 100%;
    padding-top: 56.25%
}

.iframe-item {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

/* Overrides for footer */
.footercredits {
    font-size: 0.8em;
}

.rfmo-archive-btn-container {
    display: flex;
    gap: 10px;
    flex-direction: row;
}

@media only screen and (max-width: 480px) {
    .rfmo-archive-btn-container {
        flex-direction: column;
    }
}

.rfmo-link-as-btn {
    text-align: center; 
    padding: 0.5em 1em;
    border-radius: 0.2em;
    font-weight: 700;
    text-indent: 0px;
    text-shadow: none;
    display: inline-block;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.rfmo-btn-primary {
    border: 1px solid #32074d;
    background-color: #32074d;
    color: #fff;
    font-weight: 400;
}

.rfmo-btn-primary:hover {
    background-color: #5E158B;
    border-color: #5E158B;
    color: #fff;
}

.rfmo-btn-secondary {
    border: 1px solid rgba(0, 0, 0, 0.05);
    background-color: rgba(0, 0, 0, 0.05);
    color: #000;
    font-weight: 400;
}

.rfmo-btn-secondary:hover {
    background-color: #dedede;
    border-color: #dedede;
    color: #000;
}

.rfmo-mb-1 {
    margin-bottom: 1em;
}

/* Overrides for event list */
article.sc_event {
    padding-left:  1em;
}

.sc-date-start,
.sc_event_start_time time {
    color: black;
    font-weight:  500;
}

.sc_event_date,
.sc_event_time {
    color: #666;
    font-family: Montserrat, Lato, sans-serif;
    font-size: 1em;
}

.sc_upcoming_events {
    background: #f0f0f0;
}

.sc_events_list {
    list-style: none;
    font-family: Verdana, Geneva, sans-serif;
    font-size: 14px;
    line-height: 1.4;
}

.sc_event {
    margin-top: 10px;
}

.sc_event:not(:last-of-type) {
    border-bottom: 1px solid #ccc;
    /*margin-right: 20px;*/
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.sc_event_title {
    font-size: 18px;
}

/* Overrides for event calendar on smaller devices */
@media only screen and (max-width: 480px) {
    #sc_events_calendar_head {
        text-align: center;
    }

    #sc_event_nav_wrap {
        display: inline;
    }

    #content .sc-table tr td {
        padding-left: 5%;
    }

    #sc_calendar td {
        font-size: 14px;
    }
}

.sc_day_div a {
    position: relative;
    z-index: 9;
}

#cdt .modal-header {
    margin: 0;
}

.entry-content a:link {
    text-decoration: underline;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

.rfmo-mb-1 {
    margin-bottom: 1em;
}