/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/hello-theme/?utm_source=wp-themes&utm_campaign=theme-uri&utm_medium=wp-dash
Template: hello-elementor
Author: Elementor Team
Author URI: https://elementor.com/?utm_source=wp-themes&utm_campaign=author-uri&utm_medium=wp-dash
Description: Hello Elementor is a lightweight and minimalist WordPress theme that was built specifically to work seamlessly with the Elementor site builder plugin. The theme is free, open-source, and designed for users who want a flexible, easy-to-use, and customizable website. The theme, which is optimized for performance, provides a solid foundation for users to build their own unique designs using the Elementor drag-and-drop site builder. Its simplicity and flexibility make it a great choice for both beginners and experienced Web Creators.
Tags: accessibility-ready,flexible-header,custom-colors,custom-menu,custom-logo,featured-images,rtl-language-support,threaded-comments,translation-ready
Version: 3.3.0.1784834980
Updated: 2026-07-23 15:29:40

*/

/* ==========================================================================
   PAST MASTERS DIRECTORY STYLES (EQUAL HEIGHT CARDS)
   ========================================================================== */

/* Screen Reader Visually Hidden Helper (WCAG) */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    width: 1px;
    word-wrap: normal !important;
}

/* Outer Container Wrapper */
.pm-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0;
    box-sizing: border-box;
}

/* Accessible Search Field */
.pm-search-container {
    margin-bottom: 30px;
    width: 100%;
}

#pm-search-input {
    width: 100%;
    padding: 14px 20px;
    font-size: 1rem;
    color: #333333;
    background-color: #ffffff;
    border: 2px solid #cccccc;
    border-radius: 30px;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#pm-search-input:focus-visible {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.25);
}

/* Grid Layout - Enforces Equal Row Heights */
.pm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 25px;
    margin-bottom: 35px;
    align-items: stretch; /* Stretches cards to equal height per row */
}

/* Individual Card Structure (Flexbox Column) */
.pm-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%; /* Fills full row height */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pm-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
}

/* Fixed-Height Image Container with Aspect Ratio Preservation */
.pm-image-wrapper {
    width: 100%;
    height: 220px; /* Fixed height for image area */
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid #f0f0f0;
    padding: 10px;
    box-sizing: border-box;
}

.pm-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain; /* Preserves full aspect ratio without cropping */
    display: block;
}

.pm-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #888888;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Card Information Body - Stretches to fill available space */
.pm-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Pushes content and locks footer alignment */
}

.pm-name {
    margin: 0 0 10px 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: #222222;
    line-height: 1.3;
}

.pm-years-container {
    font-size: 0.95rem;
    color: #444444;
    margin-bottom: 8px;
}

.pm-years-text {
    font-weight: 600;
    color: #0073aa;
}

.pm-dates {
    margin: 0 0 12px 0;
    color: #666666;
    font-size: 0.85rem;
}

/* Biography & View More Button - Anchored at the bottom */
.pm-bio-wrapper {
    border-top: 1px solid #f0f0f0;
    padding-top: 10px;
    margin-top: auto; /* Aligns bio section evenly across all cards */
}

.pm-bio {
    margin: 0 0 6px 0;
    font-size: 0.9rem;
    color: #555555;
    line-height: 1.5;
}

.pm-toggle-bio {
    background: none;
    border: none;
    color: #0073aa;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
}

.pm-toggle-bio:hover {
    color: #005177;
}

.pm-toggle-bio:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Pagination Control Buttons */
.pm-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.pm-pagination button {
    background-color: #ffffff;
    border: 1px solid #cccccc;
    color: #333333;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pm-pagination button:hover:not(:disabled) {
    background-color: #0073aa;
    border-color: #0073aa;
    color: #ffffff;
}

.pm-pagination button.active {
    background-color: #0073aa;
    border-color: #0073aa;
    color: #ffffff;
    cursor: default;
}

.pm-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pm-pagination button:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
    .pm-grid {
        grid-template-columns: 1fr;
    }
}