/*
CTC Separate Stylesheet
Updated: 2024-09-07 07:56:06
*/


/* 
 * 
 *           							Remove sidebar Globally from wordpress with divi
 * 
 * */
#sidebar {
	display:none;
}

/* Remove thin line */
#main-content .container:before {
	background: none;
}

/* Make content 100% width */
@media (min-width: 981px){
#left-area {
	width: 100%;
	padding-right: 0px !important;
}}

/* Remove sidebar */
.single #sidebar {
	display:none;
}

/* Remove thin line */
.single #main-content .container:before {
	background: none;
}

/* Make content 100% width */
@media (min-width: 981px){
.single #left-area {
	width: 100%;
	padding-right: 0px !important;
}}


/* Remove sidebar */
.category #sidebar {
	display:none;
}

/* Remove thin line */
.category #main-content .container:before {
	background: none;
}

/* Make content 100% width */
@media (min-width: 981px){
.category #left-area {
	width: 100%;
	padding-right: 0px !important;
}}


/* Remove sidebar */
.archive #sidebar {
	display:none;
}

/* Remove thin line */
.archive #main-content .container:before {
	background: none;
}

/* Make content 100% width */
@media (min-width: 981px){
.archive #left-area {
	width: 100%;
	padding-right: 0px !important;
}}

/* Remove sidebar */
.error404 #sidebar {
	display:none;
}

/* Remove thin line */
.error404 #main-content .container:before {
	background: none;
}

/* Make content 100% width */
@media (min-width: 981px){
.error404 #left-area {
	width: 100%;
	padding-right: 0px !important;
}}

/* ===================================================================
   SERMON FILTER FORM STYLING - Unified with main system
   
   UPDATED: 2025-11-26
   Matches unified filter control system from style.css
   - Height: 50px (consistent across all controls)
   - Padding: 12px 16px
   - Border radius: matches CSS variables
   - Font size: 16px (prevents iOS zoom)
   =================================================================== */

/* Reset and standardize all form elements */
#wpfc_sermon_sorting .sermon-filter-form input[type="text"],
#wpfc_sermon_sorting .sermon-filter-form select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    
    /* Unified dimensions */
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    
    /* Unified spacing */
    padding: 12px 16px !important;
    margin: 0 !important;
    
    /* Unified borders */
    border: 1px solid var(--input-border-color, #ccc) !important;
    border-radius: var(--button-border-radius, 5px) !important;
    
    /* Unified typography */
    font-size: 16px !important; /* Prevents iOS zoom */
    font-family: var(--global-font-family, inherit) !important;
    font-weight: 400 !important;
    line-height: 1.5 !important;
    color: var(--ast-form-input-text, #475569) !important;
    
    /* Unified background */
    background-color: #fff !important;
    
    /* Box model */
    box-sizing: border-box !important;
    width: 100% !important;
    vertical-align: top !important;
}

/* Custom dropdown arrow for consistent appearance across devices */
#wpfc_sermon_sorting .sermon-filter-form select {
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important; /* Matches unified system */
    background-size: 12px !important;
    padding-right: 40px !important;
    cursor: pointer !important;
}

/* Remove default select arrows on all browsers */
#wpfc_sermon_sorting .sermon-filter-form select::-ms-expand {
    display: none !important;
}

#wpfc_sermon_sorting .sermon-filter-form select::-webkit-appearance {
    -webkit-appearance: none !important;
}

/* Safari (Desktop & Mobile) specific fixes - Unified system */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    #wpfc_sermon_sorting .sermon-filter-form select {
        -webkit-appearance: none !important;
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        line-height: 1.5 !important;
        padding: 12px 16px !important;
        padding-right: 40px !important;
        background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>') !important;
        background-repeat: no-repeat !important;
        background-position: right 16px center !important;
        background-size: 12px !important;
        border: 1px solid var(--input-border-color, #ccc) !important;
        border-radius: var(--button-border-radius, 5px) !important;
        font-size: 16px !important;
        box-sizing: border-box !important;
    }
    
    #wpfc_sermon_sorting .sermon-filter-form input[type="text"] {
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        line-height: 1.5 !important;
        padding: 12px 16px !important;
        border: 1px solid var(--input-border-color, #ccc) !important;
        border-radius: var(--button-border-radius, 5px) !important;
        font-size: 16px !important;
        box-sizing: border-box !important;
    }
}

/* WebKit/Safari specific - targets both desktop and mobile Safari */
@supports (-webkit-appearance: none) {
    #wpfc_sermon_sorting .sermon-filter-form select {
        -webkit-appearance: none !important;
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        line-height: 1.5 !important;
        padding: 12px 16px !important;
        padding-right: 40px !important;
        vertical-align: top !important;
    }
}

/* Force Safari to behave - Most aggressive Safari targeting */
_::-webkit-full-page-media, 
_:future, 
:root #wpfc_sermon_sorting .sermon-filter-form select {
    -webkit-appearance: none !important;
    height: 50px !important;
    line-height: 1.5 !important;
    padding: 12px 16px !important;
    padding-right: 40px !important;
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important;
    background-size: 12px !important;
}

/* Safari Desktop specific (not mobile) */
@media screen and (min-width: 768px) and (-webkit-min-device-pixel-ratio: 0) {
    #wpfc_sermon_sorting .sermon-filter-form select {
        -webkit-appearance: none !important;
        height: 50px !important;
        line-height: 1.5 !important;
        font-size: 16px !important;
    }
}

/* Focus states - Unified with main system */
#wpfc_sermon_sorting .sermon-filter-form input[type="text"]:focus,
#wpfc_sermon_sorting .sermon-filter-form select:focus {
    outline: 2px solid var(--global-accent-color, #246572) !important;
    outline-offset: 2px !important;
    border-color: var(--global-accent-color, #246572) !important;
}

/* Button styling - Unified with main system */
#wpfc_sermon_sorting .sermon-filter-form button[type="submit"] {
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 12px 20px !important;
    font-family: var(--global-font-family, inherit) !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
    border-radius: var(--button-border-radius, 5px) !important;
    background-color: var(--global-accent-color, #246572) !important;
    color: #ffffff !important;
    border: none !important;
}

/* Mobile specific adjustments - Maintain 50px height */
@media (max-width: 767px) {
    #wpfc_sermon_sorting .sermon-filter-form input[type="text"],
    #wpfc_sermon_sorting .sermon-filter-form select,
    #wpfc_sermon_sorting .sermon-filter-form button[type="submit"] {
        height: 50px !important;
        min-height: 50px !important;
        max-height: 50px !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
}

/* Universal overrides - Force consistency across ALL browsers - UNIFIED SYSTEM */
#wpfc_sermon_sorting .sermon-filter-form select,
#wpfc_sermon_sorting .sermon-filter-form input[type="text"] {
    /* Reset all possible browser defaults */
    margin: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    
    /* Force exact dimensions - UNIFIED */
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    
    /* Standardize text rendering */
    text-rendering: auto !important;
    color: var(--ast-form-input-text, #475569) !important;
    letter-spacing: normal !important;
    word-spacing: normal !important;
    text-transform: none !important;
    text-indent: 0px !important;
    text-shadow: none !important;
    display: inline-block !important;
    text-align: start !important;
    
    /* Override any theme styles - UNIFIED */
    background-color: #fff !important;
    border: 1px solid var(--input-border-color, #ccc) !important;
    border-radius: var(--button-border-radius, 5px) !important;
    
    /* Ensure consistent box model - UNIFIED */
    box-sizing: border-box !important;
    padding: 12px 16px !important;
    margin: 0 !important;
    
    /* Line height - UNIFIED */
    line-height: 1.5 !important;
}

/* Extra Safari/WebKit overrides - UNIFIED */
#wpfc_sermon_sorting .sermon-filter-form select {
    /* Remove ALL native styling */
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    
    /* Force our custom arrow */
    background-image: url('data:image/svg+xml;charset=US-ASCII,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 4 5"><path fill="%23666" d="M2 0L0 2h4zm0 5L0 3h4z"/></svg>') !important;
    background-repeat: no-repeat !important;
    background-position: right 16px center !important; /* UNIFIED */
    background-size: 12px !important;
    padding-right: 40px !important;
    
    /* Prevent Safari from adding extra padding */
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    padding-left: 16px !important;
}

/* Target Safari specifically with CSS hacks - UNIFIED */
@media not all and (min-resolution:.001dpcm) {
    @supports (-webkit-appearance:none) {
        #wpfc_sermon_sorting .sermon-filter-form select {
            height: 50px !important;
            line-height: 1.5 !important; /* UNIFIED */
            -webkit-appearance: none !important;
        }
    }
}