/*
 Theme Name: Twenty Twenty-Five Child
 Theme URI: https://www.californiaforallanimals.com/twentytwentyfive-child/
 Description: My custom child theme for Twenty Twenty-Five
 Author: Andy Cowitt
 Author URI: https://www.andycowitt.com
 Template: twentytwentyfive
 Version: 1.0.0
 License: GNU General Public License v2 or later
 License URI: http://www.gnu.org/licenses/gpl-2.0.html
 Tags: one-column, responsive-layout, full-site-editing
 Text Domain: twentytwentyfive-child
*/

/* typography */

.entry-content .wp-block-post-content {
    font-family: "apparat-light", sans-serif !important;
}

h1, h2, h3 {
    font-family: "apparat", sans-serif;
    font-weight: 700;
}

.highlightyellowthick {
    font-family: "apparat", sans-serif;
    font-weight: 700;
    font-size: 1.25em;
    background: linear-gradient(180deg, transparent 70%, #ffd200 30%);
}

.highlightorangethick {
    font-family: "apparat", sans-serif;
    font-weight: 700;
    font-size: 1.25em;
    background: linear-gradient(180deg, transparent 70%, #f95e10 30%);
}

.highlightbluethick {
    font-family: "apparat", sans-serif;
    font-weight: 700;
    font-size: 1.25em;
    background: linear-gradient(180deg, transparent 70%, #d8f2ff 30%);
}

.bg-gradient-yto {
    background-color: transparent;
    background-image: linear-gradient(180deg, #fcecbb 0%, #fcd7c8 100%);
}

ul.nav-bottom {
    list-style-type: none;
    padding-inline-start: 6px;
}

/* MailChimp form style overrides */
#mc_embed_signup { background:transparent; }
#mc_embed_signup .mc-field-group input { border: 1px solid #f95e10; }
#mc_embed_signup .button { background-color: #f95e10; }
#mc_embed_signup .helper_text { background-color: rgba(255, 255, 255, 0.5); }


/* top nav menu */
.wp-block-navigation-item__label {
    font-family: "Barlow", sans-serif;
}

/* Top-level navigation items: Make all caps */
.wp-block-navigation > .wp-block-navigation-item > a {
    text-transform: uppercase;
}

/* Sub-navigation items: Revert to normal capitalization (camel case in this context) */
.wp-block-navigation .wp-block-navigation-item .sub-menu .wp-block-navigation-item a,
footer .wp-block-navigation > .wp-block-navigation-item > a {
    text-transform: none;
}

section {
    padding:5%;
}

/* Hero Section */
.ca4aa-hero {
    background-position: right center;
    color: #494d56;
    text-align: left;
    position: relative;
    overflow: hidden;
    z-index:1;
}

.ca4aa-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url(/wp-content/uploads/2024/09/KernCountyCoalition-slideBG.jpg);
    background-size: cover;
    opacity: 0.5;
    z-index: -1;
}

.ca4aa-hero-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.ca4aa-hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.ca4aa-hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.ca4aa-button {
    display: inline-block;
    background: #f97316;
    color: white;
    padding: 15px 35px;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 400;
    border: 1px solid #ffffff;
    transition: all 0.3s ease;
}

.ca4aa-button:hover {
    background: #ea580c;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.ca4aa-content {
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.8;
    color: #374151;
}

/* Support Section */
.ca4aa-support {
    background-color: transparent;
    background-image: linear-gradient(180deg, #fcecbb 0%, #fcd7c8 100%);
    margin-block-start:0;
}

.ca4aa-support h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.ca4aa-support-content p {
    margin-bottom: 20px;
}

.ca4aa-support-content strong {
    font-weight: 700;
}

/* By the Numbers Section */
.ca4aa-numbers {
    background-color: #ffffff;
}

.ca4aa-numbers h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
}

.ca4aa-numbers-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 20px;
}

.ca4aa-numbers-content p {
    font-size: 1.125rem;
    margin-bottom: 15px;
    text-align: left;
}

.ca4aa-numbers-content-l {
    flex:1;
}

.ca4aa-numbers-content-r {
    flex:1;
}

/* How We Help Section */
.ca4aa-help {
    background: #fcd7c8;
}

.ca4aa-help h2 {
    font-size: 2.5rem;
    margin-bottom: 40px;
    text-align: center;
}

.ca4aa-help-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.ca4aa-help-item h3 {
    font-size: 1.75rem;
    margin-bottom: 15px;
}

.ca4aa-help-item p {
    color: #4b5563;
    line-height: 1.7;
}

/* Mission Section */
.ca4aa-mission {
    background-color: #F5F2F2;
}

.ca4aa-mission h2 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    text-align: center;
}

.ca4aa-mission-content-l {
    flex:1;
}

.ca4aa-mission-content-r {
    flex:1;
}

.ca4aa-tagline {
    min-width: 45%;
    font-family: "apparat", Sans-serif;
}

.ca4aa-tagline p {
    font-size: 2em;
    font-weight: 700;
    line-height: 1.25em;
}

.ca4aa-for {
    min-height:300px;
    background-image: url('/wp-content/uploads/2022/02/pink-heart.png');
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
}

.ca4aa-for-content {
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.8;
}

.ca4aa-everyone {
    font-family: "apparat", Sans-serif;
    font-size: 1.35em;
    font-weight: 700;
    line-height: 1.35em;
}

/* Newsletter Section */
.ca4aa-newsletter {
    padding: 60px 20px;
    background: #1e3a8a;
    color: white;
    text-align: center;
}

.ca4aa-newsletter h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.ca4aa-newsletter p {
    font-size: 1.125rem;
    margin-bottom: 30px;
    opacity: 0.95;
}

.ca4aa-newsletter-form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.ca4aa-newsletter-form input[type="email"] {
    padding: 15px;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
}

.ca4aa-newsletter-form label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.ca4aa-newsletter-form button {
    background: #f97316;
    color: white;
    padding: 15px 35px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ca4aa-newsletter-form button:hover {
    background: #ea580c;
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .ca4aa-hero h1 {
        font-size: 2rem;
    }
    
    .ca4aa-hero p {
        font-size: 1rem;
    }
    
    .ca4aa-featured-grid {
        grid-template-columns: 1fr;
    }
    
    .ca4aa-help-grid {
        grid-template-columns: 1fr;
    }
}

/* query grid list item style */
li.hentry.category-cal4all-call-recordings,
li.hentry.category-mppt-roundtables {
    border: 1px solid #3681c5;
}

/* Stories Category Archive Styling */
.stories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

.story-card {
    background: #fff;
    border: 1px solid #3681c5;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.story-card:hover {
    transform: translateY(-4px);
}

.story-card img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.story-card-content {
    padding: 1.5rem;
}

.story-card h2 {
    font-size: 1.5rem;
    margin: 0 0 1rem 0;
    line-height: 1.3;
}

.story-card h2 a {
    color: #d14905;
    text-decoration: none;
}

.story-card h2 a:hover {
    color: #fac90f;
}

.story-card .excerpt {
    color: #666;
    line-height: 1.6;
    margin: 0;
}

.pagination ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.pagination li {
    list-style: none;
}

.pagination .page-numbers {
    padding: 0.5rem 1rem;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    display: block;
}

.pagination .page-numbers:hover {
    background: #005177;
}

.pagination .current {
    background: #005177;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}


@media screen and (max-width: 991px) {
    /* Hide the full menu */
    .wp-block-navigation__responsive-container:not(.is-menu-open.has-modal-open) {
        display: none !important;
    }
    /* Display the hamburger button/mobile menu */
    .wp-block-navigation__responsive-container-open {
        display: block !important;
    }
    .wp-block-group.alignfull.nav-bottom-container.is-content-justification-space-between.is-layout-flex.wp-container-core-group-is-layout-e5edad21.wp-block-group-is-layout-flex,
    .nav-bottom-spacer {
        display: none !important;
    }
    .wp-block-post-featured-image :where(img) {
        object-fit: cover;
        max-height: 240px;
    }
}

@media (min-width: 992px) {
    /* Ensure the full menu is displayed above the new breakpoint */
    .wp-block-navigation__responsive-container {
        display: flex !important; /* or 'block' or 'grid' depending on your specific layout */
    }
     /* Hide the hamburger button/mobile menu icon on desktop sizes */
    .wp-block-navigation__toggle {
        display: none !important;
    }
    .wp-block-group.alignfull.nav-bottom-container.is-content-justification-space-between.is-layout-flex.wp-container-core-group-is-layout-e5edad21.wp-block-group-is-layout-flex,
    .nav-bottom-spacer {
        display: flex !important;
    }

    .wp-block-post-featured-image :where(img) {
        object-fit: cover;
        max-height: 500px;
    }

    .ca4aa-hero::before {
        opacity: 1;
    }

    .ca4aa-content {
        max-width: 1200px;
        margin: 0 auto;
        display: flex;
        flex-wrap:nowrap;
        gap:20px;
        align-items: center;
        line-height: 1.8;
        color: #374151;
        margin-bottom: 20px;
    }

    .ca4aa-numbers-content-l {
        flex:1;
    }

    .ca4aa-numbers-content-r {
        flex:2;
    }


    .ca4aa-mission-content-l {
        flex:1;
    }

    .ca4aa-mission-content-r {
        flex:2;
    }


}
