/**
 * Abstract Connect Frontend Styles
 * Matches mededsciencesolutions.com site design
 * Cache-bust: 2025-12-02-1920
 *
 * @package AbstractConnect
 */

/* ==========================================================================
   Base Styles - Match Site Theme
   ========================================================================== */

.abstract-single,
.abstract-archive-container {
    font-family: 'Public Sans', sans-serif;
    font-size: 16px;
    color: #282828;
}

/* ==========================================================================
   Single Abstract Page
   ========================================================================== */

.abstract-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: #fff;
}

/* Header Section */
.abstract-header {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #e0e0e0;
    position: relative;
}

/* Action Button (Print) - Match Site Button Style */
.btn-print-abstract {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 40px;
    margin: 20px 10px 0 0;
    background: #cb9798;
    color: #ffffff;
    border: none;
    border-radius: 50px;
    font-family: 'Public Sans', sans-serif;
    font-size: 16px;
    font-weight: inherit;
    line-height: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-print-abstract:hover {
    background: #966263;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(203, 151, 152, 0.3);
}

.btn-print-abstract:active {
    transform: translateY(0);
}

.btn-print-abstract .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.abstract-meta-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.abstract-number {
    background: #4097b2;
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.abstract-congress {
    background: #f0f0f0;
    color: #282828;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
}

.abstract-title {
    font-family: 'Roboto', sans-serif;
    font-size: 48px;
    font-weight: 500;
    line-height: 1.4em;
    margin: 20px 0;
    color: #282828;
}

.abstract-authors {
    font-size: 16px;
    color: #282828;
    font-style: italic;
    margin-bottom: 20px;
}

/* Taxonomies */
.abstract-taxonomies {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.abstract-taxonomies > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.abstract-taxonomies strong {
    color: #333;
    min-width: 140px;
}

.taxonomy-tag {
    display: inline-block;
    padding: 5px 12px;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    text-decoration: none;
    color: #495057;
    font-size: 14px;
    transition: all 0.2s;
}

.taxonomy-tag:hover {
    background: #4097b2;
    color: #fff;
    border-color: #4097b2;
}

.taxonomy-tag.therapeutic-area {
    background: #e3f2fd;
    border-color: #4097b2;
    color: #1e73be;
}

.taxonomy-tag.company {
    background: #fff3e0;
    border-color: #cb9798;
    color: #966263;
}

.study-type-badge {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

/* Media Section */
.abstract-media-section {
    margin: 40px 0;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 8px;
}

.media-section-title {
    font-family: 'Roboto', sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin: 0 0 15px;
}

.abstract-video {
    margin-bottom: 30px;
}

.abstract-audio {
    margin-bottom: 30px;
}

.abstract-audio-player {
    width: 100%;
    border-radius: 8px;
}

.vimeo-embed-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: #000;
    border-radius: 8px;
}

.vimeo-embed-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.abstract-pdf-download {
    text-align: center;
}

.btn-download-pdf {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    background: #1B787C;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-download-pdf:hover {
    background: #145a5d;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.btn-download-pdf .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Content Sections */
.abstract-content {
    margin: 40px 0;
}

.abstract-section {
    margin-bottom: 40px;
}

.abstract-section h2 {
    font-family: 'Public Sans', sans-serif;
    font-size: 35px;
    font-weight: 400;
    line-height: 1.3em;
    color: #282828;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #4097b2;
}

.abstract-section .section-content {
    font-size: 16px;
    line-height: 1.8;
    color: #444;
}

.abstract-section.key-findings .section-content {
    background: #fffbf0;
    padding: 20px;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

/* Navigation */
.abstract-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 2px solid #e0e0e0;
}

.abstract-navigation.abstract-navigation-centered {
    justify-content: center;
}

.abstract-navigation a {
    color: #4097b2;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.abstract-navigation a:hover {
    color: #1e73be;
}

/* Back to List Button */
.btn-back-to-list {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(120deg, #1B787C 0%, #60BBA4 100%);
    color: #fff !important;
    padding: 14px 28px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(27, 120, 124, 0.3);
}

.btn-back-to-list:hover {
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(27, 120, 124, 0.4);
}

.btn-back-to-list .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   Archive Page
   ========================================================================== */

/* ==========================================================================
   Header with Gradient - Matches All Courses / Contact Pages
   ========================================================================== */

/* Give header the gradient background - matches All Courses page exactly */
/* Using very high specificity to override Astra theme */
body.post-type-archive-abstract .site-header,
body.post-type-archive-abstract #masthead,
body.post-type-archive-abstract header.site-header,
body.post-type-archive-medical_poster .site-header,
body.post-type-archive-medical_poster #masthead,
body.post-type-archive-medical_poster header.site-header,
body.tax-therapeutic_area .site-header,
body.tax-congress .site-header,
body.tax-company .site-header,
.post-type-archive-abstract .site-header,
.post-type-archive-abstract #masthead,
.post-type-archive-medical_poster .site-header,
.post-type-archive-medical_poster #masthead,
.tax-therapeutic_area .site-header,
.tax-congress .site-header,
.tax-company .site-header {
    background: linear-gradient(120deg, #1B787C 0%, #60BBA4 100%) !important;
}

/* Inner header elements transparent to show gradient through */
body.post-type-archive-abstract .ast-primary-header-bar,
body.post-type-archive-abstract .ast-main-header-bar-alignment,
body.post-type-archive-abstract .main-header-bar,
body.post-type-archive-abstract .main-header-bar-wrap,
body.post-type-archive-abstract .ast-primary-header,
body.post-type-archive-abstract [data-section="section-primary-header-builder"],
body.post-type-archive-medical_poster .ast-primary-header-bar,
body.post-type-archive-medical_poster .ast-main-header-bar-alignment,
body.post-type-archive-medical_poster .main-header-bar,
body.post-type-archive-medical_poster .main-header-bar-wrap,
body.post-type-archive-medical_poster .ast-primary-header,
body.post-type-archive-medical_poster [data-section="section-primary-header-builder"],
body.tax-therapeutic_area .ast-primary-header-bar,
body.tax-therapeutic_area .main-header-bar,
body.tax-therapeutic_area .main-header-bar-wrap,
body.tax-congress .ast-primary-header-bar,
body.tax-congress .main-header-bar,
body.tax-congress .main-header-bar-wrap,
body.tax-company .ast-primary-header-bar,
body.tax-company .main-header-bar,
body.tax-company .main-header-bar-wrap,
.post-type-archive-abstract .ast-primary-header-bar,
.post-type-archive-abstract .main-header-bar,
.post-type-archive-abstract .main-header-bar-wrap,
.post-type-archive-medical_poster .ast-primary-header-bar,
.post-type-archive-medical_poster .main-header-bar,
.post-type-archive-medical_poster .main-header-bar-wrap,
.tax-therapeutic_area .ast-primary-header-bar,
.tax-therapeutic_area .main-header-bar,
.tax-congress .ast-primary-header-bar,
.tax-congress .main-header-bar,
.tax-company .ast-primary-header-bar,
.tax-company .main-header-bar {
    background: transparent !important;
    background-color: transparent !important;
}

/* All nav links white on gradient header - very high specificity */
body.post-type-archive-abstract .site-header a,
body.post-type-archive-abstract .site-header .menu-link,
body.post-type-archive-abstract .main-header-menu .menu-link,
body.post-type-archive-abstract .main-header-menu .menu-item > .menu-link,
body.post-type-archive-abstract .ast-builder-menu .menu-item > a,
body.post-type-archive-abstract .ast-builder-menu-1 .menu-item > a,
body.post-type-archive-abstract .main-header-menu .menu-item > a,
body.post-type-archive-abstract .ast-header-menu .menu-item > a,
body.post-type-archive-abstract #masthead a,
body.post-type-archive-abstract #masthead .menu-link,
body.post-type-archive-medical_poster .site-header a,
body.post-type-archive-medical_poster .site-header .menu-link,
body.post-type-archive-medical_poster .main-header-menu .menu-link,
body.post-type-archive-medical_poster .main-header-menu .menu-item > .menu-link,
body.post-type-archive-medical_poster .ast-builder-menu .menu-item > a,
body.post-type-archive-medical_poster .ast-builder-menu-1 .menu-item > a,
body.post-type-archive-medical_poster .main-header-menu .menu-item > a,
body.post-type-archive-medical_poster .ast-header-menu .menu-item > a,
body.post-type-archive-medical_poster #masthead a,
body.post-type-archive-medical_poster #masthead .menu-link,
body.tax-therapeutic_area .site-header a,
body.tax-therapeutic_area .site-header .menu-link,
body.tax-therapeutic_area #masthead a,
body.tax-congress .site-header a,
body.tax-congress .site-header .menu-link,
body.tax-congress #masthead a,
body.tax-company .site-header a,
body.tax-company .site-header .menu-link,
body.tax-company #masthead a,
.post-type-archive-abstract .site-header a,
.post-type-archive-abstract .main-header-menu .menu-link,
.post-type-archive-medical_poster .site-header a,
.post-type-archive-medical_poster .main-header-menu .menu-link,
.tax-therapeutic_area .site-header a,
.tax-congress .site-header a,
.tax-company .site-header a {
    color: #ffffff !important;
}

/* Mobile menu toggle (hamburger) - white on gradient background */
body.post-type-archive-abstract .ast-mobile-menu-buttons-minimal.menu-toggle,
body.post-type-archive-abstract .ast-header-break-point .menu-toggle,
body.post-type-archive-abstract .ast-button-wrap .menu-toggle,
body.post-type-archive-abstract .menu-toggle .ast-mobile-svg,
body.post-type-archive-abstract .menu-toggle svg,
body.post-type-archive-medical_poster .ast-mobile-menu-buttons-minimal.menu-toggle,
body.post-type-archive-medical_poster .ast-header-break-point .menu-toggle,
body.post-type-archive-medical_poster .ast-button-wrap .menu-toggle,
body.post-type-archive-medical_poster .menu-toggle .ast-mobile-svg,
body.post-type-archive-medical_poster .menu-toggle svg,
body.tax-therapeutic_area .ast-mobile-menu-buttons-minimal.menu-toggle,
body.tax-therapeutic_area .menu-toggle svg,
body.tax-congress .ast-mobile-menu-buttons-minimal.menu-toggle,
body.tax-congress .menu-toggle svg,
body.tax-company .ast-mobile-menu-buttons-minimal.menu-toggle,
body.tax-company .menu-toggle svg {
    color: #ffffff !important;
    fill: #ffffff !important;
}

/* Mobile menu toggle lines/bars */
body.post-type-archive-abstract .ast-mobile-menu-trigger-minimal .ast-mobile-svg,
body.post-type-archive-abstract .menu-toggle .toggler-icon,
body.post-type-archive-medical_poster .ast-mobile-menu-trigger-minimal .ast-mobile-svg,
body.post-type-archive-medical_poster .menu-toggle .toggler-icon {
    background-color: #ffffff !important;
    color: #ffffff !important;
}

/* ==========================================================================
   Mobile Toggle Menu Fix - Dark text on white background
   When mobile menu opens, override white nav text to be readable
   Astra uses ast-main-header-nav-open class on body when menu is open
   ========================================================================== */
body.post-type-archive-abstract.ast-main-header-nav-open .main-header-menu a,
body.post-type-archive-abstract.ast-main-header-nav-open .main-header-menu .menu-link,
body.post-type-archive-abstract.ast-main-header-nav-open .main-header-bar-navigation a,
body.post-type-archive-abstract.ast-main-header-nav-open .menu-item a,
body.post-type-archive-abstract.ast-main-header-nav-open #primary-menu a,
body.post-type-archive-medical_poster.ast-main-header-nav-open .main-header-menu a,
body.post-type-archive-medical_poster.ast-main-header-nav-open .main-header-menu .menu-link,
body.post-type-archive-medical_poster.ast-main-header-nav-open .main-header-bar-navigation a,
body.post-type-archive-medical_poster.ast-main-header-nav-open .menu-item a,
body.post-type-archive-medical_poster.ast-main-header-nav-open #primary-menu a,
body.tax-therapeutic_area.ast-main-header-nav-open .main-header-menu a,
body.tax-therapeutic_area.ast-main-header-nav-open .menu-item a,
body.tax-therapeutic_area.ast-main-header-nav-open #primary-menu a,
body.tax-congress.ast-main-header-nav-open .main-header-menu a,
body.tax-congress.ast-main-header-nav-open .menu-item a,
body.tax-congress.ast-main-header-nav-open #primary-menu a,
body.tax-company.ast-main-header-nav-open .main-header-menu a,
body.tax-company.ast-main-header-nav-open .menu-item a,
body.tax-company.ast-main-header-nav-open #primary-menu a {
    color: #1B787C !important;
}

/* Mobile menu hover state */
body.post-type-archive-abstract.ast-main-header-nav-open .main-header-menu a:hover,
body.post-type-archive-abstract.ast-main-header-nav-open .menu-item a:hover,
body.post-type-archive-medical_poster.ast-main-header-nav-open .main-header-menu a:hover,
body.post-type-archive-medical_poster.ast-main-header-nav-open .menu-item a:hover,
body.tax-therapeutic_area.ast-main-header-nav-open a:hover,
body.tax-congress.ast-main-header-nav-open a:hover,
body.tax-company.ast-main-header-nav-open a:hover {
    color: #60BBA4 !important;
}

/* Mobile toggle menu background - ensure white for readability */
body.post-type-archive-abstract.ast-main-header-nav-open .main-header-bar-navigation,
body.post-type-archive-abstract.ast-main-header-nav-open .main-header-bar-navigation.toggle-on,
body.post-type-archive-medical_poster.ast-main-header-nav-open .main-header-bar-navigation,
body.post-type-archive-medical_poster.ast-main-header-nav-open .main-header-bar-navigation.toggle-on,
body.tax-therapeutic_area.ast-main-header-nav-open .main-header-bar-navigation,
body.tax-congress.ast-main-header-nav-open .main-header-bar-navigation,
body.tax-company.ast-main-header-nav-open .main-header-bar-navigation {
    background: #ffffff !important;
}

/* Mobile header - center logo */
@media (max-width: 921px) {
    body.post-type-archive-abstract .ast-header-break-point .ast-mobile-header-wrap,
    body.post-type-archive-abstract .ast-header-break-point .main-header-bar,
    body.post-type-archive-medical_poster .ast-header-break-point .ast-mobile-header-wrap,
    body.post-type-archive-medical_poster .ast-header-break-point .main-header-bar,
    body.tax-therapeutic_area .ast-header-break-point .main-header-bar,
    body.tax-congress .ast-header-break-point .main-header-bar,
    body.tax-company .ast-header-break-point .main-header-bar {
        display: flex;
        justify-content: center;
        align-items: center;
    }

    /* Logo centering */
    body.post-type-archive-abstract .ast-header-break-point .site-branding,
    body.post-type-archive-abstract .ast-header-break-point .ast-site-identity,
    body.post-type-archive-medical_poster .ast-header-break-point .site-branding,
    body.post-type-archive-medical_poster .ast-header-break-point .ast-site-identity,
    body.tax-therapeutic_area .ast-header-break-point .site-branding,
    body.tax-congress .ast-header-break-point .site-branding,
    body.tax-company .ast-header-break-point .site-branding {
        text-align: center;
        flex: 1;
    }

    /* Position hamburger menu on right */
    body.post-type-archive-abstract .ast-header-break-point .ast-mobile-menu-buttons,
    body.post-type-archive-medical_poster .ast-header-break-point .ast-mobile-menu-buttons,
    body.tax-therapeutic_area .ast-header-break-point .ast-mobile-menu-buttons,
    body.tax-congress .ast-header-break-point .ast-mobile-menu-buttons,
    body.tax-company .ast-header-break-point .ast-mobile-menu-buttons {
        position: absolute;
        right: 20px;
    }

    /* Adjust hero banner for mobile */
    body.post-type-archive-abstract .abstract-hero-banner,
    body.post-type-archive-medical_poster .abstract-hero-banner {
        padding-top: 120px;
        margin-top: -80px;
    }

    body.post-type-archive-abstract .abstract-hero-banner .hero-title,
    body.post-type-archive-medical_poster .abstract-hero-banner .hero-title {
        font-size: 32px;
    }

    body.post-type-archive-abstract .abstract-hero-banner .hero-description,
    body.post-type-archive-medical_poster .abstract-hero-banner .hero-description {
        font-size: 16px;
    }
}

.abstract-archive-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

/* Hero Banner - Full width, seamless with header */
.abstract-hero-banner {
    background: linear-gradient(120deg, #1B787C 0%, #60BBA4 100%);
    padding: 60px 20px 80px;
    text-align: center;
    position: relative;
    /* Force full viewport width */
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    margin-top: 0;
    box-sizing: border-box;
}

.abstract-hero-banner .hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.abstract-hero-banner .hero-title {
    font-family: 'Roboto', sans-serif;
    font-size: 48px;
    font-weight: 500;
    line-height: 1.3em;
    color: #ffffff;
    margin: 0 0 20px;
}

.abstract-hero-banner .hero-description {
    font-family: 'Public Sans', sans-serif;
    font-size: 18px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin: 0 auto;
}

/* Remove any gap between header and content */
.post-type-archive-abstract #content,
.post-type-archive-abstract .site-content,
.post-type-archive-abstract .ast-container,
.post-type-archive-abstract #primary,
.post-type-archive-abstract .content-area,
.tax-therapeutic_area #content,
.tax-congress #content,
.tax-company #content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

/* Navigation Menu - Abstracts link matches other menu items everywhere */
.menu-item a[href*="/abstracts/"],
.menu-item a[href*="/abstracts"],
.ast-header-menu .menu-item a[href*="/abstracts/"],
.ast-header-menu .menu-item a[href*="/abstracts"],
.main-header-menu .menu-item a[href*="/abstracts/"],
.main-header-menu .menu-item a[href*="/abstracts"],
#ast-hf-menu-1 .menu-item a[href*="/abstracts/"],
#ast-hf-menu-1 .menu-item a[href*="/abstracts"],
.ast-primary-header .menu-item a[href*="/abstracts/"],
.ast-primary-header .menu-item a[href*="/abstracts"] {
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
}

/* Archive Header - below hero */
.archive-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.archive-title {
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.4em;
    margin-bottom: 10px;
    color: #282828;
}

.archive-description {
    font-size: 16px;
    color: #666;
}

/* Results Meta */
.results-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.results-count {
    font-weight: 600;
    color: #333;
}

.view-toggle {
    display: flex;
    gap: 10px;
}

.view-toggle button {
    padding: 8px 15px;
    border: 1px solid #dee2e6;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.view-toggle button:hover,
.view-toggle button.active {
    background: #4097b2;
    color: #fff;
    border-color: #4097b2;
}

.view-toggle .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label {
    font-family: 'Public Sans', sans-serif;
    font-size: 14px;
    color: #282828;
    font-weight: 500;
}

.sort-options select {
    padding: 10px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-family: 'Public Sans', sans-serif;
    font-size: 14px;
    color: #282828;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 160px;
}

.sort-options select:hover {
    border-color: #4097b2;
}

.sort-options select:focus {
    outline: none;
    border-color: #4097b2;
    box-shadow: 0 0 0 3px rgba(64, 151, 178, 0.1);
}

/* Archive Layout */
.abstract-archive-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    margin-top: 30px;
}

/* Sidebar Filters */
.archive-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.filter-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.filter-section h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
    color: #2c3e50;
}

.filter-group {
    margin-bottom: 30px;
}

.filter-group h4 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #555;
    font-weight: 600;
}

.filter-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.filter-list li {
    margin-bottom: 8px;
}

.filter-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    text-decoration: none;
    color: #495057;
    border-radius: 4px;
    transition: all 0.2s;
}

.filter-link:hover {
    background: #fff;
    color: #0073aa;
}

.filter-link .count {
    color: #999;
    font-size: 13px;
}

/* Search Form */
.abstract-search-form {
    display: flex;
    margin-top: 10px;
}

.abstract-search-form .search-field {
    flex: 1;
    padding: 10px;
    border: 1px solid #dee2e6;
    border-right: none;
    border-radius: 4px 0 0 4px;
    font-size: 14px;
}

.abstract-search-form .search-submit {
    padding: 10px 15px;
    background: #4097b2;
    color: #fff;
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    transition: background 0.2s;
}

.abstract-search-form .search-submit:hover {
    background: #1e73be;
}

/* Abstract Grid */
.abstract-grid {
    display: grid;
    gap: 30px;
}

.abstract-grid.view-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.abstract-grid.view-list {
    grid-template-columns: 1fr;
}

/* Abstract Card - Course Style (matching All Courses page) */
.abstract-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    position: relative;
}

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

/* Badge (like "Free" on courses) */
.abstract-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #4097b2;
    color: #fff;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Public Sans', sans-serif;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 10;
}

.abstract-thumbnail {
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: #f4f4f4;
}

.abstract-thumbnail a {
    display: block;
    width: 100%;
    height: 100%;
}

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

.abstract-card:hover .abstract-thumbnail img {
    transform: scale(1.05);
}

/* Placeholder image for abstracts without thumbnails */
.abstract-placeholder-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f4f8 0%, #d4e9ed 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.abstract-placeholder-image .placeholder-icon {
    font-size: 48px;
    color: #4097b2;
    opacity: 0.6;
}

.abstract-card-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    text-align: center;
}

.abstract-card .abstract-meta-header {
    margin-bottom: 12px;
}

/* Card Title - h3 like courses */
.abstract-card-title,
h3.abstract-card-title {
    font-family: 'Public Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 10px;
    line-height: 1.3;
}

.abstract-card-title a {
    color: #282828;
    text-decoration: none;
    transition: color 0.2s;
}

.abstract-card-title a:hover {
    color: #4097b2;
}

/* Authors - like instructor name */
.abstract-card .abstract-authors {
    font-family: 'Public Sans', sans-serif;
    font-size: 14px;
    font-style: normal;
    color: #555;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* View Abstract Button - like "Enroll Now" */
.btn-view-abstract {
    display: inline-block;
    background: #cb9798;
    color: #fff;
    padding: 12px 30px;
    border-radius: 50px;
    font-family: 'Public Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-top: auto;
}

.btn-view-abstract:hover {
    background: #966263;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(203, 151, 152, 0.3);
}

.abstract-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
    flex: 1;
}

.abstract-card-footer {
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.abstract-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.abstract-tags .tag {
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 3px;
    text-decoration: none;
    transition: all 0.2s;
}

.abstract-tags .tag.therapeutic-area {
    background: #e3f2fd;
    color: #1976d2;
}

.abstract-tags .tag.company {
    background: #fff3e0;
    color: #f57c00;
}

.abstract-tags .tag.study-type {
    background: #e8f5e9;
    color: #2e7d32;
}

.read-more {
    display: inline-block;
    color: #4097b2;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: color 0.2s;
}

.read-more:hover {
    color: #1e73be;
}

/* Pagination */
.abstract-pagination {
    margin-top: 50px;
    text-align: center;
}

.abstract-pagination .page-numbers {
    display: inline-block;
    padding: 10px 15px;
    margin: 0 5px;
    background: #fff;
    border: 1px solid #dee2e6;
    color: #495057;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s;
}

.abstract-pagination .page-numbers:hover,
.abstract-pagination .page-numbers.current {
    background: #4097b2;
    color: #fff;
    border-color: #4097b2;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.no-results h2 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.no-results p {
    color: #666;
}

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

@media (max-width: 1024px) {
    .abstract-archive-layout {
        grid-template-columns: 1fr;
    }

    .archive-sidebar {
        position: static;
    }

    .filter-section {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
    }

    .filter-group {
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .abstract-hero-banner {
        padding: 40px 20px 50px;
    }

    .abstract-hero-banner .hero-title {
        font-size: 28px;
    }

    .abstract-hero-banner .hero-description {
        font-size: 16px;
    }

    .abstract-title {
        font-size: 24px;
    }

    .archive-title {
        font-size: 24px;
    }

    .results-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .abstract-grid.view-grid {
        grid-template-columns: 1fr;
    }

    .filter-section {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .abstract-single,
    .abstract-archive-container {
        padding: 20px 15px;
    }

    .abstract-meta-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .abstract-taxonomies > div {
        flex-direction: column;
        align-items: flex-start;
    }
}
