/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* ==========================================================================
   Global Button Styles - Consistent across all AHQ components
   ========================================================================== */

.ahq-button,
.ahq-program-link,
.ahq-view-details,
.ahq-learn-more,
.ahq-event-link,
.ahq-organization-link,
.ahq-gallery-link,
.ahq-news-link {
    display: inline-flex;
    align-items: center;
    background: #5EADB5; /* Teal/blue color from screenshot */
    color: white !important;
    text-decoration: none !important;
    padding: 12px 24px;
    border-radius: 0; /* Square design */
    font-weight: 600;
    font-size: 16px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    position: relative;
    overflow: hidden;
}

/* Arrow that appears on hover */
.ahq-button:after,
.ahq-program-link:after,
.ahq-view-details:after,
.ahq-learn-more:after,
.ahq-event-link:after,
.ahq-organization-link:after,
.ahq-gallery-link:after,
.ahq-news-link:after {
    content: ' →';
    font-size: 18px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    margin-left: 0;
}

/* Hover state */
.ahq-button:hover,
.ahq-program-link:hover,
.ahq-view-details:hover,
.ahq-learn-more:hover,
.ahq-event-link:hover,
.ahq-organization-link:hover,
.ahq-gallery-link:hover,
.ahq-news-link:hover {
    background: #4A9BA3; /* Darker shade on hover */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(94, 173, 181, 0.3);
    padding-right: 36px; /* Make room for arrow */
}

/* Show arrow on hover */
.ahq-button:hover:after,
.ahq-program-link:hover:after,
.ahq-view-details:hover:after,
.ahq-learn-more:hover:after,
.ahq-event-link:hover:after,
.ahq-organization-link:hover:after,
.ahq-gallery-link:hover:after,
.ahq-news-link:hover:after {
    opacity: 1;
    transform: translateX(0);
    margin-left: 8px;
}

/* Remove any existing arrow icons in the HTML */
.ahq-button svg,
.ahq-program-link svg,
.ahq-view-details svg,
.ahq-learn-more svg,
.ahq-event-link svg,
.ahq-organization-link svg,
.ahq-gallery-link svg,
.ahq-news-link svg {
    display: none !important;
}

/* Active/pressed state */
.ahq-button:active,
.ahq-program-link:active,
.ahq-view-details:active,
.ahq-learn-more:active,
.ahq-event-link:active,
.ahq-organization-link:active,
.ahq-gallery-link:active,
.ahq-news-link:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(94, 173, 181, 0.2);
}

/* ==========================================================================
   Events Calendar Styles
   ========================================================================== */

.ahq-events-calendar {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 2rem 0;
    background: #fff;
    border-radius: 0; /* Square design */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.ahq-calendar-header {
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
}

.ahq-calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ahq-calendar-navigation {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ahq-calendar-nav {
    background: #007cba;
    color: white;
    border: none;
    border-radius: 0; /* Square design */
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s;
    font-size: 1.2rem;
}

.ahq-calendar-nav:hover {
    background: #005a87;
}

.ahq-calendar-nav:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.ahq-calendar-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
    min-width: 200px;
    text-align: center;
}

.ahq-calendar-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ahq-filter-label {
    /*! color: #555; */
}

.ahq-program-filter {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 0; /* Square design */
    background: white;
}

.ahq-calendar-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.ahq-calendar-legend {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.ahq-legend-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ahq-legend-color {
    width: 12px;
    height: 12px;
    border-radius: 0; /* Square design */
    display: inline-block;
}

.ahq-event-default {
    background: #007cba;
}

.ahq-event-program-1 { background: #e74c3c; }
.ahq-event-program-2 { background: #3498db; }
.ahq-event-program-3 { background: #2ecc71; }
.ahq-event-program-4 { background: #f39c12; }
.ahq-event-program-5 { background: #9b59b6; }

.ahq-calendar-loading {
    text-align: center;
    padding: 2rem;
    color: #666;
}

.ahq-loading-spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007cba;
    border-radius: 0; /* Square design */
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    display: inline-block;
    margin-right: 0.5rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ahq-calendar-grid {
    background: white;
}

.ahq-calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.ahq-calendar-day-header {
    padding: 1rem;
    text-align: center;
    font-weight: 600;
    color: #555;
    border-right: 1px solid #e9ecef;
}

.ahq-calendar-day-header:last-child {
    border-right: none;
}

.ahq-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    min-height: 400px;
}

.ahq-calendar-day {
    border-right: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
    min-height: 100px;
    position: relative;
}

.ahq-calendar-day:last-child {
    border-right: none;
}

.ahq-calendar-day-content {
    padding: 0.5rem;
    height: 100%;
}

.ahq-calendar-day-number {
    font-weight: 500;
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}

.ahq-other-month .ahq-calendar-day-number {
    color: #ccc;
}

.ahq-today {
    background: #fff3cd;
}

.ahq-today .ahq-calendar-day-number {
    color: #856404;
    font-weight: 600;
}

.ahq-has-events {
    background: #f8f9fa;
}

.ahq-calendar-events {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ahq-calendar-event {
    background: #007cba;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0; /* Square design */
    font-size: 0.75rem;
    line-height: 1.2;
    cursor: pointer;
    position: relative;
    transition: opacity 0.2s;
}

.ahq-calendar-event:hover {
    opacity: 0.8;
}

.ahq-event-title {
    display: block;
    font-weight: 500;
    margin-bottom: 0.125rem;
}

.ahq-event-time {
    font-size: 0.7rem;
    opacity: 0.9;
}

.ahq-event-details-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    border-radius: 0; /* Square design */
    width: 16px;
    height: 16px;
    cursor: pointer;
    font-size: 0.7rem;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.2s;
}

.ahq-calendar-event:hover .ahq-event-details-btn {
    opacity: 1;
}

.ahq-calendar-empty {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.ahq-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.ahq-empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

/* Event Modal Styles */
.ahq-event-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.ahq-event-modal[aria-hidden="false"] {
    opacity: 1;
    visibility: visible;
}

.ahq-modal-content {
    background: white;
    border-radius: 0; /* Square design */
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.ahq-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.ahq-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.ahq-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    border-radius: 0; /* Square design */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.ahq-modal-close:hover {
    background: #f8f9fa;
}

.ahq-modal-body {
    padding: 1.5rem;
}

.ahq-event-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ahq-event-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.ahq-event-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ahq-meta-label {
    font-weight: 600;
    color: #555;
    font-size: 0.9rem;
}

.ahq-meta-value {
    color: #333;
}

.ahq-event-description {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ahq-description-title {

    font-weight: 600;
    color: #333;
    margin: 0;
}

.ahq-modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e9ecef;
    background: #f8f9fa;
}

.ahq-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.ahq-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0; /* Square design */
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ahq-btn-primary {
    background: #007cba;
    color: white;
    border: 1px solid #007cba;
}

.ahq-btn-primary:hover {
    background: #005a87;
    border-color: #005a87;
}

.ahq-btn-secondary {
    background: white;
    color: #007cba;
    border: 1px solid #007cba;
}

.ahq-btn-secondary:hover {
    background: #f8f9fa;
}

/* ==========================================================================
   Organizations Directory Styles
   ========================================================================== */

.ahq-organizations-directory {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    margin: 2rem 0;
}

.ahq-organizations-header {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0; /* Square design */
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.ahq-organizations-title-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.ahq-organizations-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.ahq-organizations-meta {
    color: #666;
    font-size: 0.9rem;
}

.ahq-organizations-controls {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.ahq-organizations-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

.ahq-org-search-input {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0; /* Square design */
    width: 250px;
    font-size: 0.9rem;
}

.ahq-search-btn {
    background: #007cba;
    color: white;
    border: none;
    border-radius: 0; /* Square design */
    padding: 0.75rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.ahq-search-help {
    position: absolute;
    top: 100%;
    left: 0;
    background: #333;
    color: white;
    padding: 0.5rem;
    border-radius: 0; /* Square design */
    font-size: 0.8rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
    z-index: 10;
}

.ahq-org-search-input:focus + .ahq-search-btn + .ahq-search-help {
    opacity: 1;
    visibility: visible;
}

.ahq-organizations-filter {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ahq-filter-label {
    font-weight: 500;
    /*! color: #555; */
}

.ahq-org-filter-select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 0; /* Square design */
    background: white;
    font-size: 0.9rem;
}

.ahq-organizations-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.ahq-grid-cols-1 { grid-template-columns: 1fr; }
.ahq-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ahq-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ahq-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.ahq-grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.ahq-grid-cols-6 { grid-template-columns: repeat(6, 1fr); }

/* Organization card styles moved to ahq-organizations.css for consolidation */

.ahq-org-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

.ahq-org-logo {
    text-align: center;
    margin-bottom: 1rem;
}

.ahq-org-logo-img {
    height: auto;
    padding-right: 30px;
    border-radius: 0; /* Square design */
}

.ahq-org-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
}

h4.ahq-org-title {
    color: #111827 !important;
    margin: 0 0 0.5rem 0;
}

/* Override dark mode for organization titles */
@media (prefers-color-scheme: dark) {
    .ahq-organization-card h4.ahq-org-title,
    .ahq-organization-card .ahq-org-title,
    .ahq-organization-card .ahq-organization-title,
    .ahq-organization-card .ahq-organization-title a {
        color: #111827 !important;
    }
}

.ahq-organization-card .ahq-org-link {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s;
}

.ahq-organization-card .ahq-org-link:hover {
    color: #007cba;
}

.ahq-org-support {
    font-size: 0.9rem;
    color: #666;
}

.ahq-support-label {
    font-weight: 500;
}

.ahq-org-card-body {
    padding: 1.5rem;
}

.ahq-org-description {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.ahq-org-contact {
    margin-bottom: 1.5rem;
}

.ahq-contact-title {

    font-weight: 600;
    color: #333;
    margin: 0 0 0.75rem 0;
}

.ahq-contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ahq-contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.ahq-contact-link {
    color: #007cba;
    text-decoration: none;
}

.ahq-contact-link:hover {
    text-decoration: underline;
}

.ahq-org-programs {
    margin-bottom: 1.5rem;
}

.ahq-programs-title {

    font-weight: 600;
    color: #333;
    margin: 0 0 0.75rem 0;
}

.ahq-programs-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ahq-program-item {
    font-size: 0.9rem;
}

.ahq-program-link {
    color: #007cba;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ahq-program-link:hover {
    text-decoration: underline;
}

.ahq-org-card-footer {
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

.ahq-org-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ahq-org-btn {
    padding: 0.5rem 1rem;
    border-radius: 0; /* Square design */
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.ahq-btn-text {
    background: transparent;
    color: #007cba;
    border: none;
}

.ahq-btn-text:hover {
    background: rgba(0, 124, 186, 0.1);
}

.ahq-organizations-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0; /* Square design */
    margin-bottom: 1rem;
}

.ahq-clear-filters {
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 0; /* Square design */
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.9rem;
}

.ahq-clear-filters:hover {
    background: #5a6268;
}

.ahq-organizations-empty {
    text-align: center;
    padding: 3rem;
    color: #666;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media (max-width: 768px) {
    .ahq-calendar-controls {
        flex-direction: column;
        gap: 1rem;
    }

    .ahq-calendar-navigation {
        order: 2;
    }

    .ahq-calendar-filter {
        order: 1;
    }

    .ahq-calendar-meta {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }

    .ahq-calendar-legend {
        flex-wrap: wrap;
    }

    .ahq-calendar-day-header .ahq-day-full {
        display: none;
    }

    .ahq-calendar-day-header .ahq-day-short {
        display: block;
    }

    .ahq-calendar-day {
        min-height: 80px;
    }

    .ahq-calendar-event {
        font-size: 0.7rem;
        padding: 0.125rem 0.25rem;
    }

    .ahq-organizations-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .ahq-org-search-input {
        width: 100%;
    }

    .ahq-organizations-grid {
        grid-template-columns: 1fr !important;
    }

    .ahq-org-actions {
        flex-direction: column;
    }

    .ahq-modal-content {
        width: 95%;
        margin: 1rem;
    }

    .ahq-event-meta {
        grid-template-columns: 1fr;
    }

    .ahq-modal-actions {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .ahq-calendar-day-header .ahq-day-short {
        display: none;
    }

    .ahq-calendar-day-header::after {
        content: attr(data-day-initial);
    }

    .ahq-calendar-day {
        min-height: 60px;
    }

    .ahq-organizations-title-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

/* ==================================================
   NEWS FEED SHORTCODE STYLES
   ================================================== */

.ahq-news-feed {
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ahq-news-feed-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.ahq-news-feed-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
}

.ahq-news-feed-meta {
    color: #666;
    font-size: 0.875rem;
}

.ahq-news-count {
    background: #f3f4f6;
    padding: 0.25rem 0.75rem;
    border-radius: 0; /* Square design */
    font-weight: 500;
}

/* News Feed List */
.ahq-news-feed-list {
    display: grid;
    gap: 1.5rem;
}

.ahq-news-item {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0; /* Square design */
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ahq-news-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.ahq-news-item-header {
    margin-bottom: 1rem;
}

.ahq-news-item-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
}

.ahq-news-item-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ahq-news-item-title a:hover {
    color: #3b82f6;
}

.ahq-external-link-icon {
    margin-left: 0.25rem;
    font-size: 0.875rem;
    opacity: 0.6;
}

.ahq-news-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    color: #666;
    font-size: 0.875rem;
}

.ahq-news-program {
    font-weight: 500;
    color: #374151;
}

.ahq-news-date {
    color: #666;
}

.ahq-news-item-content {
    margin-bottom: 1rem;
}

.ahq-news-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.ahq-news-item-actions {
    display: flex;
    justify-content: flex-end;
}

.ahq-news-read-more {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 0; /* Square design */
    font-weight: 500;
    font-size: 0.875rem;
    transition: background-color 0.3s ease;
}


.ahq-news-read-more .ahq-arrow {
    margin-left: 0.25rem;
    opacity: 0;
    transform: translateX(-0.25rem);
    transition: all 0.3s ease;
    width: 0;
    margin: 0;
}

.ahq-news-read-more:hover .ahq-arrow {
    width: auto;
    margin-left: 0.25rem;
}

.ahq-news-read-more:hover {
    background: #2563eb;
    color: white;
}

.ahq-news-read-more:hover .ahq-arrow {
    opacity: 1;
    transform: translateX(0);
}

.ahq-news-item-tags {
    border-top: 1px solid #e5e7eb;
    padding-top: 1rem;
    margin-top: 1rem;
}

.ahq-tags-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-right: 0.5rem;
}

.ahq-tags-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ahq-tag-item {
    margin: 0;
}

.ahq-tag {
    display: inline-block;
    background: #f3f4f6;
    color: #374151;
    padding: 0.25rem 0.75rem;
    border-radius: 0; /* Square design */
    font-size: 0.75rem;
    font-weight: 500;
}

/* News Pagination */
.ahq-news-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f9fafb;
    border-radius: 0; /* Square design */
}

.ahq-pagination-info {
    color: #6b7280;
    font-size: 0.875rem;
    font-weight: 500;
}

.ahq-pagination-links {
    display: flex;
    gap: 0.5rem;
}

.ahq-pagination-link {
    padding: 0.5rem 0.75rem;
    background: white;
    color: #374151;
    text-decoration: none;
    border: 1px solid #d1d5db;
    border-radius: 0; /* Square design */
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.ahq-pagination-link:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
    color: #111827;
}

.ahq-pagination-link.ahq-current {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* News Feed Empty State */
.ahq-news-feed-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.ahq-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.ahq-empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.ahq-empty-description {
    color: #666;
    max-width: 400px;
    margin: 0 auto;
}

/* Theme Compatibility for News Feed */
.ahq-news-feed * {
    color: inherit;
}

.ahq-news-feed-title,
.ahq-news-item-title a {
    color: #333 !important;
}

.ahq-news-feed-meta,
.ahq-news-item-meta,
.ahq-news-date,
.ahq-news-excerpt,
.ahq-empty-description {
    color: #666 !important;
}

.ahq-news-item {
    background: #ffffff !important;
    border-color: #e5e7eb !important;
}

.ahq-news-item-categories {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

.ahq-categories-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #444 !important;
    margin-right: 0.5rem;
}

.ahq-categories-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ahq-category-item {
    margin: 0;
}

.ahq-category-link {
    display: inline-block;
    background: #f3f4f6;
    color: #374151 !important;
    padding: 0.25rem 0.75rem;
    border-radius: 0; /* Square design */
    font-size: 0.75rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
}

.ahq-category-link:hover {
    background: #e5e7eb;
    color: #111827 !important;
}

/* ==================================================
   PROGRAM GALLERY SHORTCODE STYLES
   ================================================== */

.ahq-program-gallery {
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.ahq-gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e5e7eb;
}

.ahq-gallery-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.ahq-gallery-filters {
    display: flex;
    gap: 0.5rem;
}

.ahq-filter-btn {
    padding: 0.5rem 1rem;
    background: white;
    color: #374151;
    border: 1px solid #d1d5db;
    border-radius: 0; /* Square design */
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ahq-filter-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.ahq-filter-btn.ahq-filter-active {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Gallery Grid */
.ahq-gallery-grid {
    display: grid;
    gap: 1.5rem;
}

.ahq-gallery-cols-1 { grid-template-columns: repeat(1, 1fr); }
.ahq-gallery-cols-2 { grid-template-columns: repeat(2, 1fr); }
.ahq-gallery-cols-3 { grid-template-columns: repeat(3, 1fr); }
.ahq-gallery-cols-4 { grid-template-columns: repeat(4, 1fr); }
.ahq-gallery-cols-5 { grid-template-columns: repeat(5, 1fr); }
.ahq-gallery-cols-6 { grid-template-columns: repeat(6, 1fr); }

.ahq-gallery-item {
    background: white;
    border-radius: 0; /* Square design */
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.ahq-gallery-item:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.ahq-gallery-item-wrapper {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Gallery Images */
.ahq-gallery-image-container {
    position: relative;
    overflow: hidden;
    flex-grow: 1;
}

.ahq-gallery-link {
    display: block;
    position: relative;
    overflow: hidden;
}

.ahq-gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ahq-gallery-link:hover .ahq-gallery-image {
    transform: scale(1.05);
}

.ahq-gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ahq-gallery-link:hover .ahq-gallery-overlay {
    opacity: 1;
}

.ahq-gallery-overlay-icon {
    font-size: 1.5rem;
    color: white;
}

/* Gallery Videos */
.ahq-gallery-video-container {
    position: relative;
    overflow: hidden;
    flex-grow: 1;
}

.ahq-gallery-video-thumbnail {
    position: relative;
    height: 200px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ahq-gallery-video-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ahq-gallery-video-placeholder {
    width: 100%;
    height: 100%;
    background: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ahq-video-icon {
    font-size: 3rem;
    color: #9ca3af;
}

.ahq-gallery-video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.ahq-gallery-video-link:hover .ahq-gallery-video-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.ahq-gallery-play-icon {
    font-size: 3rem;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.ahq-gallery-video-player {
    width: 100%;
    height: 200px;
    background: #000;
}

/* Gallery Captions */
.ahq-gallery-caption {
    padding: 1rem;
    background: white;
}

.ahq-gallery-item-title {
    margin: 0 0 0.5rem 0;

    font-weight: 600;
    color: #1f2937;
    line-height: 1.4;
}

.ahq-gallery-item-caption {
    margin: 0;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Gallery Empty State */
.ahq-gallery-empty {
    text-align: center;
    padding: 3rem 2rem;
    color: #6b7280;
}

/* ==================================================
   LIGHTBOX STYLES
   ================================================== */

.ahq-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.ahq-lightbox.ahq-lightbox-open {
    display: flex;
}

.ahq-lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.ahq-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: white;
    border-radius: 0; /* Square design */
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.ahq-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 0; /* Square design */
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.ahq-lightbox-close:hover {
    background: rgba(0, 0, 0, 0.7);
}

.ahq-lightbox-prev,
.ahq-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 0; /* Square design */
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    transition: background-color 0.3s ease;
}

.ahq-lightbox-prev {
    left: 1rem;
}

.ahq-lightbox-next {
    right: 1rem;
}

.ahq-lightbox-prev:hover,
.ahq-lightbox-next:hover {
    background: rgba(0, 0, 0, 0.7);
}

.ahq-lightbox-media {
    position: relative;
    max-width: 100%;
    max-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
}

.ahq-lightbox-media img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.ahq-lightbox-media iframe {
    width: 80vw;
    height: 45vw;
    max-width: 1200px;
    max-height: 675px;
    border: none;
}

.ahq-lightbox-info {
    padding: 1.5rem;
    background: white;
}

.ahq-lightbox-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.ahq-lightbox-description {
    margin: 0;
    color: #6b7280;
    line-height: 1.5;
}

/* ==================================================
   RESPONSIVE STYLES
   ================================================== */

@media (max-width: 768px) {
    .ahq-news-feed-header,
    .ahq-gallery-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }

    .ahq-gallery-filters {
        justify-content: center;
    }

    .ahq-gallery-cols-3,
    .ahq-gallery-cols-4,
    .ahq-gallery-cols-5,
    .ahq-gallery-cols-6 {
        grid-template-columns: repeat(2, 1fr);
    }

    .ahq-news-pagination {
        flex-direction: column;
        gap: 1rem;
    }

    .ahq-lightbox-content {
        max-width: 95vw;
        max-height: 95vh;
    }

    .ahq-lightbox-media iframe {
        width: 90vw;
        height: 50.6vw;
    }

    .ahq-lightbox-prev,
    .ahq-lightbox-next {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.25rem;
    }

    .ahq-lightbox-prev {
        left: 0.5rem;
    }

    .ahq-lightbox-next {
        right: 0.5rem;
    }
}

@media (max-width: 480px) {
    .ahq-gallery-cols-2,
    .ahq-gallery-cols-3,
    .ahq-gallery-cols-4,
    .ahq-gallery-cols-5,
    .ahq-gallery-cols-6 {
        grid-template-columns: repeat(1, 1fr);
    }

    .ahq-news-item-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .ahq-pagination-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* ==================================================
   ACCESSIBILITY IMPROVEMENTS
   ================================================== */

.ahq-gallery-link:focus,
.ahq-news-read-more:focus,
.ahq-filter-btn:focus,
.ahq-pagination-link:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.ahq-lightbox-close:focus,
.ahq-lightbox-prev:focus,
.ahq-lightbox-next:focus {
    outline: 2px solid #ffffff;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .ahq-news-item,
    .ahq-gallery-item {
        border-width: 2px;
    }

    .ahq-gallery-overlay {
        background: rgba(0, 0, 0, 0.8);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .ahq-news-item,
    .ahq-gallery-item,
    .ahq-gallery-image,
    .ahq-gallery-overlay,
    .ahq-lightbox-close,
    .ahq-lightbox-prev,
    .ahq-lightbox-next,
    .ahq-news-read-more,
    .ahq-filter-btn,
    .ahq-pagination-link {
        transition: none;
    }

    .ahq-gallery-link:hover .ahq-gallery-image {
        transform: none;
    }
}

/* Print styles */
@media print {
    .ahq-gallery-filters,
    .ahq-news-pagination,
    .ahq-lightbox {
        display: none;
    }

    .ahq-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

    .ahq-news-item,
    .ahq-gallery-item {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #000;
    }
}

/* ==================================================
   EVENTS CALENDAR STYLES
   ================================================== */

.ahq-events-calendar {
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #ffffff;
    border-radius: 0; /* Square design */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Calendar Header */
.ahq-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.ahq-calendar-title {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    flex: 1;
}

.ahq-calendar-nav {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.5rem 0.75rem;
    border-radius: 0; /* Square design */
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ahq-calendar-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.ahq-calendar-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.ahq-calendar-nav .screen-reader-text {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    padding: 0;
    border: 0;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* Calendar Grid */
.ahq-calendar-grid {
    padding: 1rem;
}

.ahq-calendar-days-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    margin-bottom: 1rem;
    background: #f3f4f6;
    border-radius: 0; /* Square design */
    overflow: hidden;
}

.ahq-calendar-day-header {
    background: #6b7280;
    color: white;
    padding: 0.75rem;
    text-align: center;
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ahq-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: #e5e7eb;
    border-radius: 0; /* Square design */
    overflow: hidden;
}

.ahq-calendar-day {
    background: white;
    min-height: 100px;
    padding: 0.5rem;
    position: relative;
    cursor: default;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.ahq-calendar-day.ahq-calendar-empty {
    background: #f9fafb;
    cursor: not-allowed;
}

.ahq-calendar-day.ahq-has-events {
    cursor: pointer;
    background: #fef3c7;
}

.ahq-calendar-day.ahq-has-events:hover {
    background: #fed7aa;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ahq-calendar-day.ahq-today {
    background: #dbeafe;
    border-color: #3b82f6;
}

.ahq-calendar-day.ahq-today.ahq-has-events {
    background: #bfdbfe;
}

.ahq-calendar-day.ahq-day-highlighted {
    background: #fde68a;
    border-color: #f59e0b;
    animation: pulse 0.6s ease-in-out;
}

.ahq-calendar-day-number {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #374151;
    margin-bottom: 0.25rem;
}

.ahq-calendar-empty .ahq-calendar-day-number {
    color: #9ca3af;
}

/* Calendar Events */
.ahq-calendar-events {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ahq-calendar-event {
    background: #6366f1;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0; /* Square design */
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s ease;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ahq-calendar-event:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.ahq-event-title {
    display: block;
    font-weight: 500;
    line-height: 1.2;
}

.ahq-event-time {
    display: block;
    font-size: 0.65rem;
    opacity: 0.9;
    margin-top: 0.125rem;
}

/* Calendar Loading State */
.ahq-events-calendar.ahq-calendar-loading {
    opacity: 0.7;
    pointer-events: none;
}

.ahq-events-calendar.ahq-calendar-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 32px;
    height: 32px;
    margin: -16px 0 0 -16px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #6366f1;
    border-radius: 0; /* Square design */
    animation: spin 1s linear infinite;
}

/* Calendar Update Animation */
.ahq-events-calendar.ahq-calendar-updated .ahq-calendar-days {
    animation: fadeInUp 0.3s ease-out;
}

/* Event Modal */
.ahq-event-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ahq-event-modal.ahq-modal-open {
    display: flex;
    opacity: 1;
}

.ahq-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.ahq-modal-content {
    position: relative;
    background: white;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 0; /* Square design */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: modalSlideIn 0.3s ease-out;
}

.ahq-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}

.ahq-modal-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    flex: 1;
}

.ahq-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    color: #6b7280;
    transition: color 0.2s ease;
    line-height: 1;
}

.ahq-modal-close:hover {
    color: #374151;
}

.ahq-modal-body {
    padding: 1.5rem;
    line-height: 1.6;
}

.ahq-modal-body p {
    margin-bottom: 1rem;
}

.ahq-modal-body strong {
    color: #374151;
}

.ahq-event-register-btn {
    display: inline-block;
    background: #6366f1;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0; /* Square design */
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    margin-top: 1rem;
}

.ahq-event-register-btn:hover {
    background: #4f46e5;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

/* Body scroll lock */
.ahq-modal-body-open {
    overflow: hidden;
}

/* Organizations Grid Styles */
.ahq-organizations-grid {
    display: grid;
    gap: 1.5rem;
    margin: 2rem 0;
}

.ahq-organizations-grid.ahq-columns-1 {
    grid-template-columns: 1fr;
}

.ahq-organizations-grid.ahq-columns-2 {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.ahq-organizations-grid.ahq-columns-3 {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.ahq-organizations-grid.ahq-columns-4 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Organization card styles consolidated in ahq-organizations.css */

.ahq-organization-logo {
    text-align: center;
    margin-bottom: 1rem;
}

.ahq-logo-image {
    max-width: 300px;
    /*! max-height: 60px; */
    width: auto;
    height: auto;
}

.ahq-organization-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.125rem;
    font-weight: 600;
}

.ahq-organization-title a {
    color: #111827 !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ahq-organization-title a:hover {
    color: #6366f1 !important;
}

.ahq-organization-description {
    color: #6b7280;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.ahq-organization-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ahq-contact-phone,
.ahq-contact-email,
.ahq-contact-website {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.ahq-contact-icon {

}

.ahq-contact-phone a,
.ahq-contact-email a,
.ahq-contact-website a {
    color: #6366f1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ahq-contact-phone a:hover,
.ahq-contact-email a:hover,
.ahq-contact-website a:hover {
    color: #4f46e5;
}

.ahq-no-organizations {
    text-align: center;
    padding: 3rem;
    color: #6b7280;
}

/* Animations */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ahq-calendar-header {
        padding: 1rem;
    }

    .ahq-calendar-title {
        font-size: 1.25rem;
    }

    .ahq-calendar-day {
        min-height: 80px;
        padding: 0.25rem;
    }

    .ahq-calendar-day-number {
        font-size: 0.75rem;
    }

    .ahq-calendar-event {
        font-size: 0.625rem;
        padding: 0.125rem 0.25rem;
    }

    .ahq-organizations-grid {
        grid-template-columns: 1fr;
    }

    .ahq-modal-content {
        width: 95%;
        margin: 1rem;
    }
}

@media (max-width: 480px) {
    .ahq-calendar-grid {
        padding: 0.5rem;
    }

    .ahq-calendar-day {
        min-height: 60px;
        font-size: 0.75rem;
    }

    .ahq-calendar-day-header {
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    .ahq-event-time {
        display: none;
    }
}

/* ==========================================================================
   Organization Template Styles
   ========================================================================== */

.ahq-single-organization-container {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    background: #fff;
}

.ahq-single-organization {
    background: #fff;
    border-radius: 0; /* Square design */
    overflow: hidden;
}

/* Organization Header */
.ahq-organization-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.ahq-organization-logo-top {
    margin-bottom: 1.5rem;
}

.ahq-organization-logo-top .ahq-logo-image {
    max-width: 200px;
    max-height: 120px;
    width: auto;
    height: auto;
    display: inline-block;
    border: none;
    box-shadow: none;
    border-radius: 0;
}

.ahq-organization-header-content {
    max-width: 1000px;
    margin: 0 auto;
}

.ahq-organization-logo {
    flex-shrink: 0;
}

.ahq-logo-image {
    /*! max-width: 150px; */
    /*! max-height: 100px; */
    width: auto;
    height: auto;
    border-radius: 0; /* Square design */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.ahq-organization-title-section {
    flex: 1;
}

.ahq-organization-header .ahq-organization-description {
    max-width: 800px;
    margin: 1rem auto;
}

.ahq-organization-header .ahq-organization-description-content {
    color: #555;
}

.ahq-organization-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin: 0 0 1rem 0;
    line-height: 1.2;
}

.ahq-organization-tagline {

    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.ahq-organization-links {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Main Content Layout */
.ahq-organization-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 3rem;
    max-width: 1000px;
    margin: 0 auto;
}

.ahq-organization-main-content {
    min-width: 0; /* Prevents grid items from overflowing */
}

/* Organization Description */
.ahq-organization-description {
    margin-bottom: 3rem;
}

.ahq-organization-description h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    border-bottom: 2px solid #007cba;
    padding-bottom: 0.5rem;
}

.ahq-organization-description-content {

    line-height: 1.6;
    color: #555;
}

.ahq-organization-description-content p {
    margin-bottom: 1rem;
}

/* Programs Section */
.ahq-organization-programs {
    margin-bottom: 3rem;
}

.ahq-organization-programs h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #007cba;
    padding-bottom: 0.5rem;
}

.ahq-programs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.ahq-program-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0; /* Square design */
    padding: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.ahq-program-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-color: #007cba;
}

.ahq-program-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
    gap: 1rem;
}

.ahq-program-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    flex: 1;
}

.ahq-program-link {
    color: #007cba;
    text-decoration: none;
    transition: color 0.2s;
}

.ahq-program-link:hover {
    color: #005a87;
    text-decoration: underline;
}

.ahq-program-location-type {
    background: #f8f9fa;
    color: #666;
    padding: 0.25rem 0.5rem;
    border-radius: 0; /* Square design */
    font-size: 0.75rem;
    font-weight: 500;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.ahq-program-location-type.ahq-location-virtual {
    background: #e7f3ff;
    color: #0066cc;
}

.ahq-program-location-type.ahq-location-hybrid {
    background: #fff3e0;
    color: #ff8f00;
}

.ahq-program-location-type.ahq-location-physical {
    background: #e8f5e8;
    color: #2e7d32;
}

.ahq-program-excerpt {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.ahq-program-meta {
    margin-bottom: 1rem;
}

.ahq-program-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.ahq-program-meta-item i {
    color: #007cba;
    width: 16px;
    text-align: center;
}

.ahq-meta-label {
    font-weight: 500;
    color: #333;
}

.ahq-meta-value {
    color: #666;
}

.ahq-program-skills {
    margin-top: 1rem;
}

.ahq-skills-label {
    font-weight: 500;
    color: #333;
    display: block;
    margin-bottom: 0.5rem;
}

.ahq-skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ahq-skill-tag {
    background: #e9ecef;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 0; /* Square design */
    font-size: 0.75rem;
    font-weight: 500;
}

.ahq-skill-more {
    color: #666;
    font-size: 0.75rem;
    font-style: italic;
}

.ahq-program-card-footer {
    border-top: 1px solid #e9ecef;
    padding-top: 1rem;
    margin-top: 1rem;
}

/* No Programs Message */
.ahq-no-programs {
    text-align: center;
    padding: 3rem 2rem;
    background: #f8f9fa;
    border-radius: 0; /* Square design */
    border: 1px dashed #dee2e6;
}

.ahq-no-programs-message {
    color: #666;

    line-height: 1.5;
}

/* Organization Sidebar */
.ahq-organization-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-self: flex-start;
    position: sticky;
    top: 2rem;
}

.ahq-organization-contact-card,
.ahq-organization-actions,
.ahq-organization-stats {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0; /* Square design */
    padding: 1.5rem;
}

.ahq-organization-contact-card h3,
.ahq-organization-actions h4,
.ahq-organization-stats h4 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 1rem 0;
}

.ahq-contact-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ahq-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.ahq-contact-item i {
    color: #007cba;

    margin-top: 0.125rem;
    flex-shrink: 0;
}

.ahq-contact-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.ahq-contact-label {
    font-weight: 500;
    color: #333;
    font-size: 0.9rem;
}

.ahq-contact-value {
    color: #666;
    text-decoration: none;
    word-wrap: break-word;
}

.ahq-contact-value:hover {
    color: #007cba;
}


/* Organization Actions */
.ahq-organization-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ahq-btn-full {
    width: 100%;
    text-align: center;
    justify-content: center;
}

.ahq-apprenticeship-cta {
    font-weight: 600;

}

.ahq-organization-share {
    border-top: 1px solid #dee2e6;
    padding-top: 1rem;
    margin-top: 1rem;
}

.ahq-organization-share h4 {

    margin-bottom: 0.75rem;
    color: #333;
}

.ahq-share-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.ahq-share-btn {
    width: 40px;
    height: 40px;
    border-radius: 0; /* Square design */
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.ahq-share-facebook {
    background: #1877f2;
    color: white;
}

.ahq-share-twitter {
    background: #1da1f2;
    color: white;
}

.ahq-share-linkedin {
    background: #0077b5;
    color: white;
}

.ahq-share-copy {
    background: #6c757d;
    color: white;
}

.ahq-share-btn:hover {
    transform: scale(1.1);
    opacity: 0.9;
}

/* Organization Stats */
.ahq-organization-stats {
    text-align: center;
}

.ahq-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.ahq-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #007cba;
    line-height: 1;
}

.ahq-stat-label {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.25rem;
}

/* Related Organizations */
.ahq-related-organizations {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e9ecef;
}

.ahq-related-organizations h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
    text-align: center;
}

.ahq-related-orgs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.ahq-related-org-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 0; /* Square design */
    padding: 1.5rem;
    text-align: center;
    transition: all 0.3s ease;
}

.ahq-related-org-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.ahq-related-org-logo {
    margin-bottom: 1rem;
}

.ahq-related-org-logo img {
    max-width: 80px;
    max-height: 60px;
    width: auto;
    height: auto;
    border-radius: 0; /* Square design */
}

.ahq-related-org-title {

    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.ahq-related-org-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.ahq-related-org-title a:hover {
    color: #007cba;
}

.ahq-related-org-tagline {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Navigation */
.ahq-organization-navigation {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e9ecef;
}

.ahq-back-to-organizations {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

/* Organization Content Partial Styles */
.ahq-organization-content-partial {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 0; /* Square design */
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.ahq-organization-content-partial:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-color: #007cba;
}

.ahq-org-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ahq-org-logo {
    flex-shrink: 0;
}

.ahq-org-logo-image {
    max-width: 60px;
    max-height: 40px;
    width: auto;
    height: auto;
    border-radius: 0; /* Square design */
}

.ahq-org-title-section {
    flex: 1;
    min-width: 0;
}

.ahq-org-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.ahq-organization-content-partial .ahq-org-link {
    color: #333;
    text-decoration: none;
    transition: color 0.2s;
}

.ahq-organization-content-partial .ahq-org-link:hover {
    color: #007cba;
}

.ahq-org-tagline {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

.ahq-org-quick-contact {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.ahq-org-contact-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #666;
}

.ahq-org-contact-item i {
    color: #007cba;
}

.ahq-org-contact-item a {
    color: inherit;
    text-decoration: none;
}

.ahq-org-contact-item a:hover {
    color: #007cba;
}

.ahq-org-description {
    color: #666;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.ahq-org-programs-summary {
    margin-bottom: 1rem;
}

.ahq-org-programs-summary h4 {

    font-weight: 600;
    color: #333;
    margin: 0 0 0.5rem 0;
}

.ahq-org-programs-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.ahq-org-program-item {
    background: #e9ecef;
    border-radius: 0; /* Square design */
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

.ahq-program-quick-link {
    color: #495057;
    text-decoration: none;
    font-weight: 500;
}

.ahq-program-quick-link:hover {
    color: #007cba;
}

.ahq-org-program-more {
    font-size: 0.8rem;
}

.ahq-view-all-programs {
    color: #007cba;
    text-decoration: none;
    font-weight: 500;
}

.ahq-view-all-programs:hover {
    text-decoration: underline;
}

.ahq-org-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.ahq-org-meta {
    text-align: center;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
}

.ahq-org-program-count {
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Button Styles */
.ahq-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    border-radius: 0; /* Square design */
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    justify-content: center;
}

.ahq-btn-primary {
    background: #007cba;
    color: white;
}

.ahq-btn-primary:hover {
    background: #005a87;
    color: white;
}

.ahq-btn-secondary {
    background: #6c757d;
    color: white;
}

.ahq-btn-secondary:hover {
    background: #545b62;
    color: white;
}

.ahq-btn-outline {
    background: transparent;
    color: #007cba;
    border: 1px solid #007cba;
}

.ahq-btn-outline:hover {
    background: #007cba;
    color: white;
}

.ahq-btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ahq-single-organization-container {
        padding: 1rem 0.5rem;
    }

    .ahq-organization-header {
        padding: 1.5rem 1rem;
    }

    .ahq-organization-header-content {
        flex-direction: column;
        text-align: left;
        gap: 1rem;
    }

    .ahq-organization-title {
        font-size: 2rem;
    }

    .ahq-organization-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .ahq-organization-sidebar {
        position: static;
    }

    .ahq-programs-grid {
        grid-template-columns: 1fr;
    }

    .ahq-program-card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .ahq-organization-links {
        justify-content: center;
    }

    .ahq-related-orgs-grid {
        grid-template-columns: 1fr;
    }

    .ahq-org-actions {
        justify-content: center;
    }

    .ahq-org-quick-contact {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .ahq-organization-title {
        font-size: 1.75rem;
    }

    .ahq-organization-links {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .ahq-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .ahq-program-card {
        padding: 1rem;
    }

    .ahq-skills-list {
        justify-content: center;
    }

    .ahq-contact-item {
        flex-direction: column;
        text-align: center;
        gap: 0.25rem;
    }
}

/* ==========================================================================
   Program Posts Shortcode Styles
   ========================================================================== */

.ahq-program-posts {
    margin: 2rem 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Layout Styles */
.ahq-posts-wrapper {
    display: grid;
    gap: 1.5rem;
}

.ahq-layout-list .ahq-posts-wrapper {
    grid-template-columns: 1fr;
}

.ahq-layout-grid.ahq-columns-1 .ahq-posts-wrapper {
    grid-template-columns: 1fr;
}

.ahq-layout-grid.ahq-columns-2 .ahq-posts-wrapper {
    grid-template-columns: repeat(2, 1fr);
}

.ahq-layout-grid.ahq-columns-3 .ahq-posts-wrapper {
    grid-template-columns: repeat(3, 1fr);
}

.ahq-layout-grid.ahq-columns-4 .ahq-posts-wrapper {
    grid-template-columns: repeat(4, 1fr);
}

.ahq-layout-masonry .ahq-posts-wrapper {
    column-count: 3;
    column-gap: 1.5rem;
}

.ahq-layout-masonry.ahq-columns-1 .ahq-posts-wrapper {
    column-count: 1;
}

.ahq-layout-masonry.ahq-columns-2 .ahq-posts-wrapper {
    column-count: 2;
}

.ahq-layout-masonry.ahq-columns-4 .ahq-posts-wrapper {
    column-count: 4;
}

/* Post Card Styles */
.ahq-program-post {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 0; /* Square design */
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    break-inside: avoid;
    margin-bottom: 1.5rem;
    position: relative;
}

.ahq-program-post:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-color: #3b82f6;
}

/* Post Format Indicators */
.ahq-program-post.ahq-format-video {
    border-top: 3px solid #ef4444;
}

.ahq-program-post.ahq-format-gallery {
    border-top: 3px solid #10b981;
}

.ahq-program-post.ahq-format-aside {
    border-top: 3px solid #f59e0b;
}

/* Thumbnail Styles */
.ahq-post-thumbnail {
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

/* Ensure badge stays visible over thumbnail */
.ahq-program-post:has(.ahq-post-thumbnail) .ahq-location-badge {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 0; /* Square design */
    padding: 0.25rem;
}

.ahq-post-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ahq-program-post:hover .ahq-post-thumbnail img {
    transform: scale(1.05);
}

/* Post Content */
.ahq-post-content {
    padding: 1.5rem;
}

.ahq-post-title {
    margin: 0 0 0.75rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.3;
}

.ahq-post-title a {
    color: #111827;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ahq-post-title a:hover {
    color: #3b82f6;
}

/* Post Meta */
.ahq-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
    color: #6b7280;
}

/* Location Badge Positioning */
.ahq-location-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 10;
}

/* Location Pills */
.ahq-location-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 0; /* Square design */
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ahq-location-physical-location {
    background-color: #dbeafe;
    color: #1e40af;
}

.ahq-location-virtual {
    background-color: #e0e7ff;
    color: #4338ca;
}

.ahq-location-hybrid {
    background-color: #fef3c7;
    color: #d97706;
}

/* Cost Display */
.ahq-post-cost {
    color: #4b5563;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.ahq-post-cost strong {
    color: #1f2937;
    font-weight: 600;
}

.ahq-post-date::before {
    content: '📅 ';
}

.ahq-post-author::before {
    content: '✍️ ';
}

/* Post Excerpt */
.ahq-post-excerpt {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Format-specific Content */
.ahq-post-video {
    margin: 1rem 0;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.ahq-post-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.ahq-post-gallery {
    margin: 1rem 0;
}

.ahq-post-gallery .wp-block-gallery {
    margin: 0;
}

/* Read More Link */
.ahq-post-actions {
    margin-top: 1rem;
}

.ahq-read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.ahq-read-more:hover {
    color: #2563eb;
    gap: 0.5rem;
}

.ahq-read-more::after {
    content: '→';
    transition: transform 0.2s ease;
}

.ahq-read-more:hover::after {
    transform: translateX(2px);
}

/* No Posts Message */
.ahq-no-posts {
    text-align: center;
    padding: 3rem 2rem;
    background: #f9fafb;
    border-radius: 0; /* Square design */
    color: #6b7280;
    border: 1px dashed #e5e7eb;
}

/* Pagination */
.ahq-pagination {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
}

.ahq-pagination ul {
    display: flex;
    gap: 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.ahq-pagination li {
    margin: 0;
}

.ahq-pagination a,
.ahq-pagination span {
    display: block;
    padding: 0.5rem 0.75rem;
    background: white;
    color: #374151;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 0; /* Square design */
    transition: all 0.2s ease;
}

.ahq-pagination a:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.ahq-pagination .current span {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ahq-layout-grid.ahq-columns-3 .ahq-posts-wrapper,
    .ahq-layout-grid.ahq-columns-4 .ahq-posts-wrapper {
        grid-template-columns: repeat(2, 1fr);
    }

    .ahq-layout-masonry.ahq-columns-3 .ahq-posts-wrapper,
    .ahq-layout-masonry.ahq-columns-4 .ahq-posts-wrapper {
        column-count: 2;
    }

    .ahq-post-content {
        padding: 1rem;
    }

    .ahq-post-title {
        font-size: 1.125rem;
    }
}

@media (max-width: 480px) {
    .ahq-layout-grid.ahq-columns-2 .ahq-posts-wrapper,
    .ahq-layout-grid.ahq-columns-3 .ahq-posts-wrapper,
    .ahq-layout-grid.ahq-columns-4 .ahq-posts-wrapper {
        grid-template-columns: 1fr;
    }

    .ahq-layout-masonry .ahq-posts-wrapper {
        column-count: 1;
    }

    .ahq-post-meta {
        flex-direction: column;
        gap: 0.5rem;
        align-items: flex-start;
    }

    .ahq-location-badge {
        top: 0.5rem;
        right: 0.5rem;
    }

    .ahq-location-pill {
        font-size: 0.7rem;
        padding: 0.2rem 0.6rem;
    }
}

/* ==========================================================================
   Single Page Photo Gallery and Video Sections
   ========================================================================== */

.ahq-organization-photo-gallery,
.ahq-organization-videos,
.ahq-photo-gallery-section,
.ahq-video-gallery-section {
    margin: 3rem 0;
    padding: 2rem 0;
    border-top: 1px solid #e9ecef;
}

.ahq-organization-photo-gallery h2,
.ahq-organization-videos h2,
.ahq-photo-gallery-section h2,
.ahq-video-gallery-section h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1.5rem;
}

/* Override inline styles for better integration */
.ahq-single-organization .ahq-photo-gallery,
.ahq-single-program .ahq-photo-gallery {
    margin: 1.5rem 0 0 0;
}

.ahq-single-organization .ahq-videos-grid,
.ahq-single-program .ahq-videos-grid {
    margin: 1.5rem 0 0 0;
}

/* Single Program Template Specific */
.ahq-photo-gallery-section,
.ahq-video-gallery-section {
    grid-column: 1 / -1; /* Full width in grid layout */
}