/*
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 - Consistent across all devices
   =================================================================== */

/* Reset and standardize all form elements */
.sermon-filter-form input[type="text"],
.sermon-filter-form select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    padding: 12px 16px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    background-color: #fff !important;
    box-sizing: border-box !important;
    width: 100% !important;
    vertical-align: top !important;
    font-family: inherit !important;
}

/* Custom dropdown arrow for consistent appearance across devices */
.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 12px center !important;
    background-size: 12px !important;
    padding-right: 40px !important;
    cursor: pointer !important;
}

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

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

/* Safari (Desktop & Mobile) specific fixes - More aggressive approach */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .sermon-filter-form select {
        -webkit-appearance: none !important;
        height: 50px !important;
        line-height: 26px !important;
        padding: 12px 40px 12px 16px !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 12px center !important;
        background-size: 12px !important;
        border: 1px solid #ddd !important;
        border-radius: 8px !important;
        font-size: 16px !important;
        box-sizing: border-box !important;
    }
    
    .sermon-filter-form input[type="text"] {
        height: 50px !important;
        line-height: 26px !important;
        padding: 12px 16px !important;
        border: 1px solid #ddd !important;
        border-radius: 8px !important;
        font-size: 16px !important;
        box-sizing: border-box !important;
    }
}

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

/* Force Safari to behave - Most aggressive Safari targeting */
_::-webkit-full-page-media, 
_:future, 
:root .sermon-filter-form select {
    -webkit-appearance: none !important;
    height: 50px !important;
    line-height: 26px !important;
    padding: 12px 40px 12px 16px !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 12px center !important;
    background-size: 12px !important;
}

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

/* Focus states */
.sermon-filter-form input[type="text"]:focus,
.sermon-filter-form select:focus {
    outline: 2px solid #4A90A4 !important;
    outline-offset: 2px !important;
    border-color: #4A90A4 !important;
}

/* Button styling for consistency */
.sermon-filter-form button[type="submit"] {
    height: 50px !important;
    min-height: 50px !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    box-sizing: border-box !important;
    border-radius: 8px !important;
}

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

/* Universal overrides - Force consistency across ALL browsers */
.sermon-filter-form select,
.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 */
    height: 50px !important;
    min-height: 50px !important;
    max-height: 50px !important;
    
    /* Standardize text rendering */
    text-rendering: auto !important;
    color: #333 !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 */
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    
    /* Ensure consistent box model */
    box-sizing: border-box !important;
    padding: 12px 16px !important;
    margin: 0 !important;
}

/* Extra Safari/WebKit overrides */
.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 12px center !important;
    background-size: 12px !important;
    padding-right: 40px !important;
    
    /* Override Safari's line-height calculation */
    line-height: 26px !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 */
@media not all and (min-resolution:.001dpcm) {
    @supports (-webkit-appearance:none) {
        .sermon-filter-form select {
            height: 50px !important;
            line-height: 26px !important;
            -webkit-appearance: none !important;
        }
    }
}