/*
Theme Name: Avada Child
Description: Child theme for Avada theme
Author: ThemeFusion
Author URI: https://theme-fusion.com
Template: Avada
Version: 1.0.1
Text Domain:  Avada
*/

/* SANA Event Type Card Colors */
.sana-event-type-book-prize-ceremony .sana-event-card-inner,
.type-sana_event.sana-event-type-book-prize-ceremony { border-left-color: #1D9045 !important; }
.sana-event-type-roundtable .sana-event-card-inner,
.type-sana_event.sana-event-type-roundtable { border-left-color: #2C4EA1 !important; }
.sana-event-type-panel .sana-event-card-inner,
.type-sana_event.sana-event-type-panel { border-left-color: #2C4EA1 !important; }
.sana-event-type-social .sana-event-card-inner,
.type-sana_event.sana-event-type-social { border-left-color: #63A4D9 !important; }
.sana-event-type-business-meeting .sana-event-card-inner,
.type-sana_event.sana-event-type-business-meeting { border-left-color: #1A1A2E !important; }
.sana-event-type-community-event .sana-event-card-inner,
.type-sana_event.sana-event-type-community-event { border-left-color: #63A4D9 !important; }
/* Post Cards grid spacing */
.fusion-post-cards .fusion-post-card-wrap { margin-bottom: 0; }
/* Remove Avada default 20px column margin from color strip bar */
.fusion-tb-header .fusion-fullwidth:last-child .fusion-layout-column {
    margin-bottom: 0;
}
/* Meetings page — All Upcoming Events data table */
.sana-data-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.sana-data-table table thead th { background-color: #1A1A2E; color: #ffffff; font-weight: 600; text-align: left; padding: 12px 14px; }
.sana-data-table table tbody tr:nth-child(odd)  { background-color: #F7F7F9; }
.sana-data-table table tbody tr:nth-child(even) { background-color: #ffffff; }
.sana-data-table table tbody td { padding: 12px 14px; color: #444444; vertical-align: top; border-bottom: 1px solid #EBEBEB; }
.sana-data-table table tbody a { color: #2C4EA1; text-decoration: none; }
.sana-data-table table tbody a:hover { text-decoration: underline; }
/* Hide duplicate post title rendered by Avada default single template — title bar (section 5210) already shows it */
.single-sana_news .sana-news-detail > h1 { display: none; }
/* Announcement/news post card — border on image area so placeholder doesn't get lost on white */
.sana-article-card .fusion-post-card-image { border: 1px solid #EBEBEB; }

/* Footer navigation menus */
.sana-footer-nav { list-style: none; padding: 0; margin: 0; }
.sana-footer-nav a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 14px; display: block; padding: 3px 0; line-height: 1.6; }
.sana-footer-nav a:hover { color: #fff; }
/* Footer hover links — SANA red on hover */
.footer_hover_links a:hover { color: #e01c4c; }

/* ── Mobile header: logo + hamburger row ─────────────────────────────────── */
/* Avada's flex-column CSS is compiled per-element via Fusion Builder.
   Columns inserted via PHP don't get that compiled CSS, so we override here. */
.sana-mobile-header .fusion-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}
.sana-mobile-header .fusion-row .fusion-flex-column {
    width: 50% !important;
    max-width: 50% !important;
    flex: 0 0 50% !important;
    min-width: 0 !important;
    margin-bottom: 0 !important;
}
/* Hamburger button: white icon, transparent bg on dark header */
.sana-mobile-header .awb-menu__m-toggle {
    color: #ffffff !important;
    background-color: transparent !important;
    border-color: transparent !important;
    display: flex !important;
    margin-left: auto !important;
}

/* ── Mobile nav: escape stacking context, cover full viewport ────────────── */
/* fusion-builder-row has z-index:10 which traps the nav ul inside it.
   Switching to fixed positioning at open time escapes that context. */
.sana-mobile-header nav.awb-menu.expanded .awb-menu__main-ul {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    min-height: -webkit-fill-available !important;
    overflow-y: auto !important;
    padding-top: 70px !important;
    background-color: #ffffff !important;
    z-index: 100000 !important;
}
/* Keep close button on top of the fixed overlay */
.sana-mobile-header nav.awb-menu.expanded .awb-menu__m-toggle {
    position: fixed !important;
    top: 18px !important;
    right: 20px !important;
    z-index: 100001 !important;
}

/* ---- DA Prize — current recipient section padding ---- */
/* !important needed to beat Avada's compiled CSS which loads after child theme and
   sets --awb-padding-top via --container_padding_100_top. Can't remove that rule. */
.fusion-fullwidth.da-prize-current-section {
    --awb-padding-top: 48px !important;
    --awb-padding-bottom: 48px !important;
}

/* ---- DA Prize post card ---- */
.da-prize-card .sana-read-citation-link {
    display: inline-block;
    color: #1D9045;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
}
.da-prize-card .sana-read-citation-link:hover {
    text-decoration: underline;
}

/* ---- DA Prize single post page ---- */
.da-prize-single {
    background: #fff;
    min-height: 60vh;
}
.da-prize-single__inner {
    max-width: 860px;
    margin: 0;
    padding: 56px 32px 80px;
}
.da-prize-single__back {
    font-size: 13px;
    color: #1D9045;
    margin-bottom: 32px;
}
.da-prize-single__back a {
    color: #1D9045;
    text-decoration: none;
}
.da-prize-single__back a:hover {
    text-decoration: underline;
}
.da-prize-single__year {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1D9045;
    font-weight: 600;
    margin-bottom: 12px;
}
.da-prize-single__name {
    font-size: 36px;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 12px;
    line-height: 1.2;
}
.da-prize-single__institution {
    font-size: 15px;
    color: #555;
    margin-bottom: 40px;
    line-height: 1.5;
    border-bottom: 1px solid #eee;
    padding-bottom: 32px;
}
.da-prize-single__citation {
    font-size: 16px;
    line-height: 1.75;
    color: #333;
}
.da-prize-single__citation p {
    margin-bottom: 1.4em;
}
.da-prize-single__citation em {
    font-style: italic;
}

@media (max-width: 640px) {
    .da-prize-single__inner {
        padding: 32px 20px 56px;
    }
    .da-prize-single__name {
        font-size: 26px;
    }
}

/* ── J&S Prize single post page ─────────────────────────────────────────── */
.js-prize-single {
    background: #fff;
    min-height: 60vh;
}
.js-prize-single__inner {
    max-width: 860px;
    margin: 0;
    padding: 56px 32px 80px;
}
.js-prize-single__back {
    font-size: 13px;
    color: #1D9045;
    margin-bottom: 32px;
}
.js-prize-single__back a {
    color: #1D9045;
    text-decoration: none;
}
.js-prize-single__back a:hover {
    text-decoration: underline;
}
.js-prize-single__meta {
    font-size: 11px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #1D9045;
    font-weight: 600;
    margin-bottom: 8px;
}
.js-prize-single__category {
    font-size: 13px;
    color: #888888;
    font-weight: 500;
    margin-bottom: 12px;
}
.js-prize-single__name {
    font-size: 36px;
    font-weight: 700;
    color: #1A1A2E;
    margin-bottom: 28px;
    line-height: 1.2;
}
.js-prize-single__cover {
    margin-bottom: 32px;
}
.js-prize-single__cover img {
    max-width: 160px;
    height: auto;
    display: block;
    box-shadow: 0 2px 12px rgba(0,0,0,0.12);
}
.js-prize-single__citation {
    font-size: 17px;
    line-height: 1.7;
    color: #333;
    border-bottom: 1px solid #eee;
    padding-bottom: 32px;
    margin-bottom: 32px;
}
.js-prize-single__citation em {
    font-style: italic;
}
.js-prize-single__content {
    font-size: 16px;
    line-height: 1.75;
    color: #444;
}
.js-prize-single__content p {
    margin-bottom: 1.4em;
}

@media (max-width: 640px) {
    .js-prize-single__inner {
        padding: 32px 20px 56px;
    }
    .js-prize-single__name {
        font-size: 26px;
    }
}
