/*
Theme Name: P2 Public Affairs
Theme URI: https://p2publicaffairs.com/
Description: Child theme
Template: twentytwentyfive
Version: 1.0.0
Text Domain: p2-public-affairs
*/

/* Add your custom styles after this line */

:where(.wp-site-blocks) > * {
        margin-block-start: 0;
}


:where(.wp-site-blocks *:focus) {
   outline-style: none !important;
}

/* Link Styling */

a:where(:not(.wp-element-button)) {
	text-decoration: none;
}
:root :where(a:where(:not(.wp-element-button)):hover) {
	text-decoration: underline;
}


/* Apply Interstate font to all headings */
h1, h2, h3, h4, h5, h6 {
    font-family: "interstate", sans-serif !important;
    font-weight: 400;
}

/* If you want different heading weights */
h1 {
    font-weight: 500; /* Bold for larger headings if needed */
}

/* Add more specific styles as needed */
/*.wp-block-heading {
    font-family: "interstate", sans-serif !important;
}*/

@media (max-width: 768px) {
    h3.pull-center {
    text-align: center;
    }
}


/**
 * Improved Pagination Styles with Larger Chevrons for P2 Public Affairs
 * Add this to your child theme's style.css
 */

/* Container styles */
.wp-block-query-pagination {
    margin: 3rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--wp--preset--color--accent-1);
}

/* Page numbers styles */
.wp-block-query-pagination-numbers {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    height: 2rem;
    text-decoration: none;
    color: var(--wp--preset--color--accent-1);
    font-weight: 500;
}

.page-numbers.current {
    border-radius: 50%;
    background-color: var(--wp--preset--color--accent-1);
    color: var(--wp--preset--color--base);
    font-weight: 700;
}

/* Circular navigation arrows */
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: 2px solid var(--wp--preset--color--accent-1);
    text-decoration: none;
    color: var(--wp--preset--color--accent-1);
    background-color: transparent;
    transition: all 0.2s ease-in-out;
    position: relative;
    /* Hide text content but keep for screen readers */
    text-indent: -9999px;
    overflow: hidden;
}

.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover {
    background-color: var(--wp--preset--color--accent-1);
    border: 2px solid var(--wp--preset--color--accent-1);

}

/* CSS chevron arrows - larger size */
.wp-block-query-pagination-previous::after,
.wp-block-query-pagination-next::after {
    content: '';
    position: absolute;
    width: 0.6rem;
    height: 0.6rem;
    border-style: solid;
    border-width: 0 0 2px 2px;
    top: 50%;
    left: 50%;
    text-indent: 0;
    transition: border-color 0.2s ease-in-out;
    border-color: currentColor;
}

.wp-block-query-pagination-previous::after {
    transform: translate(-35%, -50%) rotate(45deg);
}

.wp-block-query-pagination-next::after {
    transform: translate(-65%, -50%) rotate(225deg);
}

/* IMPORTANT: Make the chevron white on hover */
.wp-block-query-pagination-previous:hover::after,
.wp-block-query-pagination-next:hover::after {
    border-color: var(--wp--preset--color--base); /* This will make the chevron white on hover */
}

/* Hide the original arrows */
.wp-block-query-pagination-previous-arrow,
.wp-block-query-pagination-next-arrow {
    display: none;
}

/* For the SVG solution, add these styles too */
.wp-block-query-pagination-previous svg,
.wp-block-query-pagination-next svg {
    width: 24px; /* Increased from 20px */
    height: 24px; /* Increased from 20px */
    fill: currentColor;
}

.wp-block-query-pagination-previous:hover svg,
.wp-block-query-pagination-next:hover svg {
    fill: var(--wp--preset--color--base); /* Makes the SVG chevron white on hover */
}

/**
 * Position header on top of background video on home page only
 */

/* Target the header template part only on the home page */
body.home header.wp-block-template-part {
    position: absolute;
    width: 100%;
    z-index: 100;
    top: 0;
    left: 0;
}

/* Fix for admin bar pushing the header down on home page */
body.home.admin-bar header.wp-block-template-part {
    top: 32px; /* Height of admin bar on desktop */
}

@media screen and (max-width: 782px) {
    body.home.admin-bar header.wp-block-template-part {
        top: 46px; /* Height of admin bar on mobile */
    }
}

/* Ensure video background stays behind the header on home page */
body.home .wp-block-cover__video-background,
body.home .wp-block-cover__background {
    z-index: 1;
}

/* Ensure video cover has proper positioning context on home page */
body.home .wp-block-cover {
    position: relative;
    z-index: 2;
}
/* Align "Get in Touch" and "Explore P2" headings to the top of their containers */
footer .wp-block-group.is-layout-flex > .wp-block-group.is-layout-constrained h3 {
    margin-top: 0;
}

footer .wp-block-group.is-nowrap.is-layout-flex {
    align-items: flex-start;
}

/* Center the logo image vertically */
footer .wp-block-group.is-content-justification-space-between {
    align-items: center;
}

/* Then align the right-side columns to the top */
footer .wp-block-group.is-nowrap.is-layout-flex {
    align-self: flex-start;
}

/* Make sure the logo container doesn't stretch too much */
footer .wp-block-group.is-content-justification-space-between > .wp-block-group:first-child {
    align-self: center;
}

/* Form Styles for Gutena Forms
 */

.wp-container-gutena-forms-is-layout-1 > * + * {
margin-block-start: 0 !important;
}

/* Form input fields */
.gutena-forms-field,
.gutena-forms-text-field input, 
.gutena-forms-email-field input, 
.gutena-forms-textarea-field textarea {
    color: white !important;
    font-family: var(--wp--preset--font-family--dm-sans) !important;
    font-size: 1rem !important;
}

/* Placeholder styling */
.gutena-forms-field::placeholder,
.gutena-forms-text-field input::placeholder, 
.gutena-forms-email-field input::placeholder, 
.gutena-forms-textarea-field textarea::placeholder {
    color: white !important;
    opacity: 0.9;
    font-family: var(--wp--preset--font-family--dm-sans) !important;
    font-size: 1rem !important;
}

/* Form field backgrounds - make them darker with some opacity to see white text better */
.gutena-forms-text-field,
.gutena-forms-email-field,
.gutena-forms-textarea-field {
    background-color: rgba(234, 244, 244, 0.1) !important;
}

/* Ensure text and textarea have white text even when focused/active */
.gutena-forms-field:focus,
.gutena-forms-text-field input:focus, 
.gutena-forms-email-field input:focus, 
.gutena-forms-textarea-field textarea:focus {
    color: white !important;
}

.font-highlight em {
    color: #5b96c3 !important;
}

/* Make hero video shorter on mobile devices */
@media screen and (max-width: 768px) {
  .wp-block-cover.alignfull {
    height: 100vh !important; /* Reduce height on mobile */
  }
}

/* For even smaller screens like phones in portrait mode */
@media screen and (max-width: 480px) {
  .wp-block-cover.alignfull {
    height: 100vh !important; /* Further reduce height on smaller devices */
  }
}