/**
* Template Name: Outreach
* Updated: January 30th, 2026
* Author: Outreach Christian church
* License: Copyright (C) Outreach Christian church
*/


section#blog {
    padding: 0;
}
.page-title nav {
    padding : 1em 0;
    height: 6em;
}
.page-title nav ol {
    font-size:small;
}
.page-title nav ol a {
    color: rgba(var(--default-color-rgb), 0.6);
}

.page-title nav ol li:first-child+li:before {
    content: ":";
}
.header .logo {
    order: 1;
}

.header #navmenu {
    display: none;
    order: 2;
    margin-left: auto;
    margin-right: auto;
}

.search-form-container {
    max-width: 320px;
}

/* Wrapper – keeps everything positioned nicely */
.search-toggle-wrapper {
    position: relative;
    display: inline-block;
    order: 3;
}


.post-img {
    text-align: center;
}
#blog-details .img-fluid {
    max-height: 400px;
}

search form {
    display: flex;
    flex-direction: row;
}
/* Icon button */
.search-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px 12px;
    color: #555;
    transition: color 0.3s ease, transform 0.2s ease;
}

.search-toggle:hover,
.search-toggle:focus {
    color: #000;
    transform: scale(1.1);
}

/* Form container – starts hidden and scaled down */
.search-form-container {
    position: absolute;
    top: 100%;
    right: 0;
    width: 320px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    padding: 16px;
    margin-top: 8px;
    z-index: 1000;
    opacity: 0;
    transform: translateY(-12px) scale(0.96);
    pointer-events: none;
    transition:
        opacity 0.3s ease-out,
        transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
        visibility 0.35s;
    visibility: hidden;
}

/* Open state */
.search-form-container.open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    visibility: visible;
}

/* Hide or style the plugin's label (h2) – comment out display:none if you want to keep it */
.form-wrap.search-form-wrap h2 {
    margin: 0 0 10px 0;
    font-size: 1.1rem;
    color: #333;
    /* display: none; */
    /* ← uncomment to hide "Search" title */
}

/* The wrapper around everything */
.form-wrap.search-form-wrap {
    margin: 0;
}

/* The invalid <search> tag – treat as block/flex */
search[role="search"] {
    display: block;
    margin: 0;
}

/* The actual form */
.form.search-form {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

/* Input field */
.form.search-form input[type="search"],
.form.search-form input[type="text"] {
    flex: 1;
    height: 42px;
    padding: 0 16px;
    border: 1px solid #ced4da;
    border-radius: 50px;
    /* pill shape */
    font-size: 1rem;
    background: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form.search-form input[type="search"]:focus,
.form.search-form input[type="text"]:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    outline: none;
}

/* Submit input (styled as button) */
.form.search-form input[type="button"].search-submit-button {
    height: 42px;
    padding: 0 20px;
    background: #0d6efd;
    /* Bootstrap primary */
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
    text-align: center;
}

.form.search-form input[type="button"].search-submit-button:hover {
    background: #0b5ed7;
}

/* Close button (X) */
.search-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: background 0.2s, color 0.2s;
}

.search-close:hover {
    background: #f8f9fa;
    color: #212529;
}

/* Mobile adjustments */
@media (max-width: 1199px) {
    .search-toggle-wrapper .search-toggle {
        padding-top: 0px;
    }

    .search-form-container {
        width: 90vw;
    }

    .form.search-form {
        flex-direction: row;
        gap: 12px;
    }

    .form.search-form input[type="button"].search-submit-button {
        width: 100%;
    }
}

.form.search-form input[type="button"].search-submit-button {
    font-size: 0;
    width: 42px;
    background: #0d6efd url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") center no-repeat;
    background-size: 18px;
}