/*!
Theme Name: PDA 2025 Child
Theme URI: https://philstack.com
Description: PDA WordPress 2025 by Philstack
Author: Philstack LLC
Author URI: https://philstack.com
Template: pda2025
Version: 1.1.5
Text Domain: pda2025
*/

/* Add your custom style here */
.breadcrumb {

    max-width: 1170px;
    margin: 0 auto;
    padding: 5px 10px;
}

/* Container for the social icons shortcode */
.social-icon-list-shortcode ul {
    list-style: none;
    /* Removes the bullet points */
    margin: 0;
    padding: 0;
    display: flex;
    /* Aligns icons in a row */
    flex-wrap: wrap;
    /* Allows icons to wrap on small screens */
    gap: 15px;
    /* Creates space between the icons */
}

/* Individual icon link styling */
.social-icon-list-shortcode a {
    display: inline-block;
    font-size: 20px;
    /* Adjust icon size */
    color: #333;
    /* Default icon color */
    transition: color 0.3s ease;
}

/* Change color on hover */
.social-icon-list-shortcode a:hover {
    color: #0073e6;
    /* Hover color */
}

/* Thumb Box Widget Styles */
.thumb-box {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    background: #fff;
}

.thumb-box:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.thumb-box img {
    width: 100%;
    height: auto;
    border-radius: 4px;
    margin-bottom: 15px;
}

.thumb-box h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    color: #333;
}

.thumb-box p {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.5;
    flex-grow: 1;
}

.thumb-box .box-link {
    display: inline-block;
    align-self: flex-start;
    padding: 10px 20px;
    background: #0073e6;
    color: #fff;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s ease;
    margin-top: auto;
}

.thumb-box:hover .box-link {
    background: #005bb5;
}

/* Remove default link styling for thumb-box links */
a:has(.thumb-box) {
    text-decoration: none;
    color: inherit;
    display: flex;
    height: 100%;
}

/* set forms font family */
.wpforms-container {
    font-family: Times New Roman;
}

/* top logo blue ribbon */
.uicore-branding {
    position: relative;
    display: inline-block;
}

.uicore-branding img {
    position: relative;
    z-index: 2;
    display: block;
    margin-top: -18px;
}

.uicore-branding::before {
    content: '';
    position: absolute;
    z-index: 1;
    background-color: var(--e-global-color-uicore_primary);
    width: 65%;
    height: 203%;
    left: 10.33%;
    top: -91%;
    clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
}

.uicore-top-bar .ui-tb-col-2 {
    width: auto !important;
}


.uicore-top-bar {
    border-bottom: 2px solid #043855;
}

.leftLinks {
    text-align: left !important;
    float: left;
    width: 100%;
    margin-left: 160px;
}

.leftLinks a {
    line-height: 1.2em;
    font-weight: 600;
    font-size: 20px;
}

.leftLinks a::before {
    content: "";
    width: 20px;
    height: 25px;
    display: block;
    float: left;
    background-image: url("/wp-content/uploads/2025/10/tooth.png");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 8px;
}

@media (min-width:1500px) {
	.rightLinks {
	    min-width: 600px;
	}
}

.rightLinks {
    min-width: 400px;
    margin-right: 40px;
}

.rightLinks li a::after {
    content: "|";
    margin-left: 10px;
}

.uicore-top-bar .uicore ul li:before,
.rightLinks li:nth-last-child(1) a::after {
    content: ""
}

.rightLinks a,
.leftLinks a {
    font-family: 'ITC Berkeley Oldstyle Std';
}

/* center slideshow content on homepage */
.ui-e-content {
    max-width: 1170px;
    margin: 0 auto;
}

/* top menu auth link styles */
.ps-auth-button a.wp-element-button {
    background: transparent;
    height: auto;
    font-size: 17px;
    font-family: 'ITC Berkeley Oldstyle Std';
}

.ps-auth-button a.wp-element-button:hover {
    color: rgba(255, 255, 255, .75);
}

/* Hide the event description in List View */
.tribe-common--breakpoint-medium.tribe-events .tribe-events-calendar-list__event-description {
    display: none !important;
}

/* calendar item number styling */
.tribe-events .tribe-events-calendar-month__day-date-link,
.tribe-events .tribe-events-calendar-month__day-date-daynum {color:var(--uicore-secondary-color);}

/* thumb box link styling */
.thumb-box .box-link {
	color:#ef8b46!important;
	padding:0!important;
	margin-top: auto; /* Pushes button to the bottom */
	background-color: transparent!important;
}

.thumb-box:hover .box-link {
	text-decoration:underline!important;
}

/* PDA Search Toggle Styles */
.pda-search-wrapper {
    position: relative;
    display: inline-block;
}

.pda-search-trigger {
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: inherit; /* Inherit font from parent/theme */
    font-size: 16px;     /* Adjust as needed */
    color: inherit;
    padding: 0;
}

.pda-search-trigger:focus {
    outline: 2px solid #0073e6; /* Accessibility focus ring */
}

.pda-search-trigger i {
    font-size: 18px;
}

.pda-search-bar {
    display: none; /* Hidden by default */
    position: absolute;
    top: 100%; /* Position below the button */
    right: 0;  /* Align to the right edge of the button/wrapper */
    background: #fff;
    padding: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    min-width: 300px;
    border-radius: 4px;
    margin-top: 15px;
    border: 1px solid #eee;
}

/* Add a small arrow/triangle pointing up */
.pda-search-bar::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 20px;
    width: 12px;
    height: 12px;
    background: #fff;
    transform: rotate(45deg);
    border-left: 1px solid #eee;
    border-top: 1px solid #eee;
}

.pda-search-bar form {
    display: flex;
    gap: 8px;
    margin: 0;
}

.pda-search-bar label {
    flex-grow: 1;
    margin: 0;
}

.pda-search-bar .search-field {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.pda-search-bar .search-submit {
    background: #0073e6; /* Match theme primary color if possible */
    color: #fff;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.pda-search-bar .search-submit:hover {
    background: #005bb5;
}

/* Stack the search bar and navigation menu in the header */
.uicore-nav-menu {
    display: flex;
    flex-direction: column !important;
    align-items: flex-end; /* Aligns items to the right */
}

/*
 * Thumb Box Grid Layout
 * This ensures the thumb boxes align in a responsive grid.
 * We use flexbox to control alignment and wrapping, and center the items
 * so that the last row appears balanced if it has fewer items.
 */
@media (min-width: 769px) {
    .elementor-widget-wrap:has(.elementor-widget-thumb_box) {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }

    .elementor-widget-wrap:has(.elementor-widget-thumb_box) > .elementor-widget-thumb_box {
        width: 25% !important;
        flex-grow: 0;
    }
}

/* Tablet Portrait Layout for Thumb Box widgets */
@media (min-width: 481px) and (max-width: 768px) {
    .elementor-widget-wrap:has(.elementor-widget-thumb_box) {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
    }

    .elementor-widget-wrap:has(.elementor-widget-thumb_box) > .elementor-widget-thumb_box {
        min-width: 150px;
        flex-grow: 1;
        flex-basis: 0;
    }
}

#pda-search-to-move {
	margin:20px;
	border:solid 1px;
	border-radius:3px;
	padding:5px 10px 0px;
	margin-bottom:-20px;
	margin-top:10px;
	z-index:20;
}

/* center up content on 404 and other error pages */
.utility-page {
	max-width:1170px;
	margin:0 auto;
	text-align:center;
}

/* center custom search input field on search results page */
.search-form {
   	max-width:1170px;
	margin:0 auto;
}

/* show screen reader text on input button on search control */
.search-submit .screen-reader-text {
	position:relative;
	height:auto;
	width:auto;
	margin:unset;
	top:unset;
	clip-path:unset;
}