/*
Theme Name: Astra Child
Template: astra
Version: 1.1.0
Description: Merged from style.css + custom.css — deduplicated and organized.
*/

/* =====================================================
   WCA BRAND TOKENS
===================================================== */

:root {
    --wca-blue:      #465D7B;
    --wca-red:       #96120C;
    --wca-red-hover: #7a0f0a;
}


/* =====================================================
   GLOBAL BASE
===================================================== */

.site-header {
    z-index: 999 !important;
}

span {
    font-variant: normal;
    opacity: 1;
}

.entry-meta,
.hide-for-now {
    display: none !important;
}

.menu-link {
    z-index: 9999;
}

.row-title {
    display: inline-block !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap !important;
    max-width: 100%;
}

.hide-this-row,
.panel-grid.hide-this-row {
    display: none !important;
}


/* =====================================================
   BUTTON SYSTEM
===================================================== */

/* Reset link decoration inside any SO button widget */
.sow-button-base a,
.sowb-button {
    text-decoration: none !important;
}

/* Uniform button container */
.button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    text-align: center;
    white-space: normal;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: inherit;
    cursor: pointer;
}

/* Primary button theme */
.button--primary {
    background-color: #8b0c1a;
    color: #fff;
}

/* Fixed-height button for even grid rows */
.button--equal {
    min-height: 120px;
    height: 100%;
}

/* Grid container for button rows */
.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    justify-content: center;
}

/* SiteOrigin button widget */
.so-widget-sow-button .ow-button-base a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-align: center;
    padding: 10px;
    box-sizing: border-box;
}


/* =====================================================
   IMAGE REFINEMENTS
===================================================== */

.wp-image-3846 {
    padding-top: 24px;
}

.wp-image-1970 {
    width: 479px;
}


/* =====================================================
   EVENTS NAVIGATION
===================================================== */

.tribe-events-c-nav__list {
    display: flex;
    flex-direction: row;
    white-space: nowrap;
}


/* =====================================================
   POPUP MAKER
===================================================== */

.pum-overlay.pum-active,
.pum-overlay.pum-active .popmake.active {
    display: block !important;
    opacity: 1 !important;
}


/* =====================================================
   APS COMPONENTS
===================================================== */

/* TL;DR block */
.aps-tldr {
    background: linear-gradient(135deg, #0f172a, #020617);
    border-left: 4px solid #8224e3;
    padding: 18px;
    margin-bottom: 30px;
    border-radius: 6px;
    color: #ffffff;
}

/* TL;DR label badge */
.aps-label {
    background: #8224e3;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 12px;
    display: inline-block;
    margin-bottom: 10px;
    font-weight: 600;
}

/* Section block */
.aps-section {
    margin: 30px 0;
}

.aps-section h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

/* Divider — uses brand token */
.aps-divider {
    height: 2px;
    background: var(--wca-red);
    border: none;
    margin: 30px 0;
}

/* Speaker grid */
.aps-speaker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.aps-speaker {
    text-align: center;
}

.aps-speaker img {
    width: 100%;
    border-radius: 6px;
}

.aps-speaker h4 {
    margin: 10px 0 5px;
}

/* CTA button */
.aps-cta {
    text-align: center;
    margin: 40px 0;
}

.aps-cta a {
    background: linear-gradient(135deg, #8224e3, #a855f7);
    color: #ffffff;
    padding: 14px 28px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.25s ease;
}

.aps-cta a:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(130, 36, 227, 0.35);
}


/* =====================================================
   WCA VIDEO GRID
===================================================== */

/*
 * Fix: WordPress HTML widget (textwidget) renders inside
 * .custom-html-widget on the frontpage. Astra's global h3
 * rule sets font-size: 26px which overrides component styling.
 * This block fully normalizes the video card title.
 */
html body .wca-video-item h3 {
    font-size: 16px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;
    margin: 10px 0 0 !important;
    text-align: center !important;
    color: inherit !important;
}


/* =====================================================
   WCA SPEAKER SYSTEM
===================================================== */

/* Suppress empty WordPress paragraph wrappers */
.wca-speakers > p:empty {
    display: none;
}

/* 4-column grid */
.wca-speakers {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin: 40px 0;
}

/*
 * KEY FIX: WordPress wraps each shortcode in a <p> tag.
 * display:contents makes the <p> invisible to the grid
 * so .wca-speaker cards become direct grid items.
 */
.wca-speakers > p {
    display: contents;
}

/* Speaker card */
.wca-speakers .wca-speaker,
.wca-speaker {
    max-width: 260px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Image — all dimensions locked */
.wca-speaker img {
    width: 200px !important;
    height: 200px !important;
    max-width: 200px !important;
    max-height: 200px !important;
    object-fit: cover !important;
    object-position: center;
    display: block;
    margin: 0 auto 12px;
    border-radius: 50%;
}

/* Name */
.wca-speaker-name {
    margin: 10px 0 4px;
    font-size: 18px;
    color: var(--wca-blue);
    font-weight: 600;
}

/* Role */
.wca-speaker-role {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Button base */
.wca-speaker .wca-speaker-btn {
    display: block;
    width: 100%;
    margin-top: auto;
    padding: 12px 16px;
    background-color: var(--wca-red);
    color: #ffffff !important;
    text-align: center;
    border-radius: 6px;
    text-decoration: none !important;
}

/* Link states */
.wca-speaker .wca-speaker-btn:link,
.wca-speaker .wca-speaker-btn:visited,
.wca-speaker .wca-speaker-btn:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Hover */
.wca-speaker .wca-speaker-btn:hover {
    background-color: var(--wca-red-hover) !important;
}


/* =====================================================
   POPUP MAKER — SPEAKER BUTTON OVERRIDE
===================================================== */

.wca-speaker a.wca-speaker-btn.pum-trigger {
    display: block !important;
    width: 100% !important;
    margin-top: auto !important;
    padding: 12px 16px !important;
    background-color: var(--wca-red) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-align: center !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    box-sizing: border-box;
}

.wca-speaker a.wca-speaker-btn.pum-trigger:link,
.wca-speaker a.wca-speaker-btn.pum-trigger:visited,
.wca-speaker a.wca-speaker-btn.pum-trigger:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

.wca-speaker a.wca-speaker-btn.pum-trigger:hover {
    background-color: var(--wca-red-hover) !important;
    color: #ffffff !important;
    transform: translateY(-1px);
}


/* =====================================================
   RESPONSIVE / MOBILE
===================================================== */

@media (max-width: 1024px) {
    .wca-speakers {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .so-widget-sow-button .ow-button-base a {
        width: 100%;
        height: auto;
    }
}

@media (max-width: 600px) {
    .wca-speakers {
        grid-template-columns: 1fr;
    }
}
/* Hide inherited title on SiteOrigin Mirror Widget instances */
.so-widget-siteorigin-mirror .widget-title {
    display: none;
}
