/**
 * DXPX Sponsors - Single Company Profile Styles
 * Version: 6.0
 * Description: Professional, clean, two-column layout combining the best of previous versions.
 */

:root {
    --company-profile-bg: #f8f9fa; /* Lighter, cleaner background */
    --company-card-bg: #ffffff;
    --company-border-color: #dee2e6;
    --company-text-primary: #191919;
    --company-text-secondary: #5f6368;
    --company-primary-link: #0a66c2;
    --company-border-radius: 12px;
    --company-shadow: 0 1px 2px 0 rgba(60,64,67,.3), 0 2px 6px 2px rgba(60,64,67,.15);
}

/* --- Base & Layout --- */

.dxpx-company-profile-page {
    background-color: var(--company-profile-bg);
}

.dxpx-company-profile-page.content-area,
.dxpx-company-profile-page .site-main {
    width: 100%; max-width: 100%; padding: 0; margin: 0;
}

.company-profile-wrapper {
    max-width: 1128px; /* Wider layout */
    margin: 48px auto;
    padding: 0 24px;
}

/* --- Breadcrumbs (Pimped) --- */
.dxpx-breadcrumbs {
    margin-bottom: 24px;
    font-size: 0.9rem;
    color: var(--company-text-secondary);
    background-color: var(--company-card-bg);
    padding: 12px 20px;
    border-radius: var(--company-border-radius);
    border: 1px solid var(--company-border-color);
    display: flex;
    align-items: center;
    gap: 8px;
}
.dxpx-breadcrumbs a {
    color: var(--company-primary-link);
    text-decoration: none;
    font-weight: 500;
}
.dxpx-breadcrumbs a:hover {
    text-decoration: underline;
}
.dxpx-breadcrumb-separator {
    color: #adb5bd;
    display: inline-flex;
    align-items: center;
}
.dxpx-breadcrumb-current {
    font-weight: 600;
    color: var(--company-text-primary);
}

.company-profile-body {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); /* 2-column layout */
    gap: 24px;
    margin-top: 24px; /* Space between header and body */
}
.event-profile-body {
    grid-template-columns: 1fr;
    margin-top: 24px;
}


/* --- Header (Reusing Modal Styles) --- */

.dxpx-company-profile .dxpx-modal-header {
    border-radius: var(--company-border-radius);
    box-shadow: var(--company-shadow);
    padding: 3em;
    background-size: cover;
    background-position: center;
    position: relative;
    color: #fff;
}

.dxpx-company-profile .dxpx-header-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    border-radius: var(--company-border-radius);
}

.dxpx-company-profile .dxpx-header-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 2em;
    align-items: center;
}
.dxpx-event-header .dxpx-header-content {
    grid-template-columns: 1fr;
    text-align: center;
}
.dxpx-event-header .dxpx-header-content.has-logo {
    grid-template-columns: 150px 1fr;
    text-align: left;
    gap: 2em;
    align-items: center;
}
.event-header-meta {
    margin-top: 1em;
    color: #fff;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
    display: inline-flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.event-header-meta .event-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
}

.dxpx-event-header .event-header-actions {
    margin-top: 20px; /* Add some space above the button */
    text-align: center; /* Center the button by default */
}

.dxpx-event-header .dxpx-header-content.has-logo .event-header-actions {
    text-align: left; /* If there's a logo, align left with the title */
}



.dxpx-company-profile .dxpx-modal-logo {
    width: 150px; height: 150px;
    object-fit: contain;
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    padding: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.dxpx-representative-header-photo {
    width: 150px; height: 150px;
    object-fit: cover; /* This is the fix */
    border-radius: 50%; /* Make it a circle */
    background: #fff;
    border: 6px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.dxpx-company-profile .dxpx-modal-title h1 {
    font-size: 3em;
    margin: 0 0 0.2em 0;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.dxpx-company-profile .dxpx-sponsor-links {
    margin-top: 1em; display: flex; gap: 1em;
}
.dxpx-company-profile .dxpx-sponsor-links a {
    color: #fff; text-decoration: none; display: inline-block;
}
.dxpx-company-profile .dxpx-sponsor-links a svg {
    width: 28px; height: 28px; transition: transform 0.2s ease;
}
.dxpx-company-profile .dxpx-sponsor-links a:hover svg {
    transform: scale(1.1);
}

/* --- Content Cards --- */

.company-profile-card {
    background-color: var(--company-card-bg);
    border-radius: var(--company-border-radius);
    border: 1px solid var(--company-border-color);
    padding: 24px;
}

.company-profile-main .company-profile-card + .company-profile-card {
    margin-top: 24px; /* Space between cards in the main column */
}


.company-profile-card h2 {
    font-size: 20px;
    font-weight: 600;
    color: var(--company-text-secondary);
    margin: 0 0 16px 0;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--company-border-color);
}

/* About Section */
.company-profile-card .entry-content {
    line-height: 1.7;
    color: var(--company-text-primary);
}

/* Representatives Section */

.dxpx-representatives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.dxpx-representative-card {
    display: flex; /* Keep flex for alignment */
    flex-direction: column; /* Stack items vertically */
    align-items: center; /* Center items horizontally */
    text-align: center; /* Center text */
    gap: 12px; /* Adjust gap for vertical layout */
    padding: 16px;
    padding: 24px;
    border-radius: var(--company-border-radius);
    background-color: var(--company-card-bg);
    border: 1px solid var(--company-border-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    color: var(--company-text-primary);
    position: relative;
    text-decoration: none; /* For cases where the card is a link */
}

.dxpx-representative-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--company-shadow);
}
.dxpx-representative-card.is-featured {
    border-color: var(--company-primary-link);
    border-width: 2px;
}


.dxpx-representative-info {
    /* Reverted to simple block layout for clean vertical stacking */
}

.dxpx-representative-photo-wrapper {
    width: 96px; /* Larger photo */
    height: 96px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    margin-bottom: 8px; /* Space below photo */
}
.dxpx-representative-photo {
    width: 100%; height: 100%; object-fit: cover;
}
.dxpx-representative-name {
    font-weight: 600; font-size: 1rem; color: var(--company-text-primary);
    margin-bottom: 0;
}
.dxpx-representative-title {
    font-size: 0.875rem; 
    color: var(--company-text-secondary);
}
.dxpx-representative-actions {
    margin-top: 8px; /* Space between name/title and buttons */
    display: flex;
    align-items: center;
    gap: 12px;
}
.dxpx-representative-actions .dxpx-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border: 1px solid var(--company-border-color);
    border-radius: 50%; /* Make it a circle */
    color: var(--company-text-secondary); 
    transition: all 0.2s ease;
    width: 30px; /* Explicit width */
    height: 30px; /* Explicit height */
}
.dxpx-representative-actions .dxpx-social-link:hover {
    color: var(--company-primary-link);
    border-color: var(--company-primary-link);
}
.dxpx-view-profile-button {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--company-primary-link);
    text-decoration: none;
    padding: 5px 12px; /* Adjusted padding to match height */
    border: 1px solid var(--company-border-color);
    border-radius: 6px; /* Less rounded */
    transition: all 0.2s ease;
}
.dxpx-view-profile-button:hover {
    background-color: var(--company-primary-link);
    color: #fff;
    border-color: var(--company-primary-link);
}

/* Company Gallery Grid */
.dxpx-company-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
}
.dxpx-gallery-item {
    display: block;
    border-radius: var(--company-border-radius);
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
.dxpx-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.dxpx-gallery-item:hover img {
    transform: scale(1.05);
}

/* Representative's Company Card in Sidebar */
.representative-company-card {
    padding: 24px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}
.representative-company-card-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0,0,0,0.6);
    z-index: 1;
}
.representative-company-card .representative-company-details {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 2;
}
.representative-company-card .representative-company-logo {
    width: 90px; /* Adjusted size */
    height: 90px; /* Adjusted size */
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}
.representative-company-card .representative-company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: rgba(255,255,255,0.9);
    border-radius: 8px;
    padding: 5px;
}
.representative-company-card .representative-company-name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #fff;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}
.representative-company-card .dxpx-view-profile-button {
    background-color: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}
.representative-company-card:hover .dxpx-view-profile-button {
    background-color: #fff;
    border-color: #fff;
    color: var(--company-text-primary);
}
.representative-company-card:hover .representative-company-logo {
    transform: scale(1.05);
}

.company-profile-sidebar .archive-list-wrapper .event-meta {
    flex-direction: row;
}

/* Professional Testimonials in Sidebar */
.dxpx-testimonials-compact-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.dxpx-testimonial-sidebar-item {
    display: flex;
    gap: 15px;
    align-items: flex-start;
}
.dxpx-testimonial-sidebar-photo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.dxpx-testimonial-sidebar-quote {
    font-style: italic;
    color: var(--company-text-secondary);
    margin: 0 0 8px 0;
    border: none;
    padding: 0;
}
.dxpx-testimonial-sidebar-giver {
    font-weight: 600;
    color: var(--company-text-primary);
    font-size: 0.9rem;
    text-align: left;
}

/* --- Sidebar Cards --- */
.company-profile-sidebar .company-profile-card + .company-profile-card {
    margin-top: 24px;
}

/* Event Participation Card */
.event-participation-card .event-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}
.event-participation-card .event-title a {
    color: var(--company-text-primary);
    text-decoration: none;
}
.event-participation-card .event-title a:hover {
    color: var(--company-primary-link);
    text-decoration: underline;
}

.event-level-badge {
    display: inline-block;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    border-radius: 15px;
    margin: 8px 0 16px 0;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    line-height: 1.4;
}

.event-participation-card .event-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 0.9rem;
    color: var(--company-text-secondary);
    padding-top: 16px;
    border-top: 1px solid var(--company-border-color);
}
.event-participation-card .event-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Engagement History Section */
.company-engagement-wrapper {
    display: flex;
    flex-direction: column;
    gap: 24px;
}
.company-engagement-section h3 {
    font-size: 1rem; font-weight: 600; color: var(--company-text-primary); margin: 0 0 12px 0;
}
.company-engagement-list {
    list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px;
}
.company-engagement-list li {
    font-size: 14px; line-height: 1.4;
}
.company-engagement-list li a {
    font-weight: 600; color: var(--company-text-primary); text-decoration: none; transition: color 0.2s ease;
}
.company-engagement-list li a:hover {
    text-decoration: underline; color: var(--company-primary-link);
}
.company-engagement-list li span {
    display: block; color: var(--company-text-secondary); font-size: 0.875rem;
}



.dxpx-company-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}

.dxpx-company-card {
    display: block;
    background-color: var(--company-card-bg);
    border-radius: var(--company-border-radius);
    border: 1px solid var(--company-border-color);
    text-decoration: none;
    color: var(--company-text-primary);
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden; /* To make sure the logo doesn't overflow the border-radius */
}

.dxpx-company-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--company-shadow);
}

.dxpx-company-card.is-featured {
    border-color: var(--company-primary-link);
    border-width: 2px;
}

.dxpx-featured-badge {
    position: absolute;
    top: 0;
    left: 16px;
    background-color: var(--company-primary-link);
    color: #fff;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 0 0 var(--company-border-radius) var(--company-border-radius);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 2;
    line-height: 1.5;
}

.dxpx-company-card-logo-wrapper {
    height: 180px;
    background-color: #f0f0f0; /* A light background for the logo area */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.dxpx-company-card-logo-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.dxpx-company-card-content {
    padding: 24px;
}

.dxpx-company-card-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.dxpx-company-card-excerpt {
    font-size: 0.9rem;
    color: var(--company-text-secondary);
    margin: 0;
    /* Truncate the excerpt to 3 lines */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.dxpx-representative-company-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto; /* Push to the bottom */
    padding-top: 16px;
    border-top: 1px solid var(--company-border-color); /* Separator line */
    justify-content: center; /* Center the logo wrapper */
    width: 100%; /* Ensure the container takes full width */
}

.dxpx-representative-company-info .dxpx-company-logo-wrapper {
    width: 100%; /* Allow wrapper to take full width */
    height: 85px; /* Adjust container height to be slightly larger than the image */
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dxpx-representative-company-info .dxpx-company-logo-wrapper img {
    max-width: 100%;
    height: 75px; /* Set a fixed height for the logo */
    object-fit: contain;
    width: auto; /* Let width adjust to maintain aspect ratio */
}

.dxpx-representative-company-info .dxpx-company-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--company-text-secondary);
}

/* --- Responsive --- */
@media (max-width: 992px) {
    .company-profile-body {
        grid-template-columns: 1fr; /* Stack to single column */
    }
}

@media (max-width: 768px) {
    .company-profile-wrapper {
        margin: 0; padding: 0;
    }
    .dxpx-company-profile .dxpx-modal-header,
    .company-profile-card {
        border-radius: 0;
    }
    .dxpx-company-profile .dxpx-header-content {
        grid-template-columns: 1fr; text-align: center;
    }
    .dxpx-company-profile .dxpx-modal-logo {
        margin: 0 auto 1em;
    }
    .dxpx-event-header .dxpx-header-content.has-logo {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .dxpx-event-header .dxpx-header-content.has-logo .dxpx-modal-logo-wrapper {
        margin: 0 auto 1em;
    }
    .dxpx-company-profile .dxpx-modal-title h1 {
        font-size: 2.2em;
    }
    .dxpx-company-profile .dxpx-sponsor-links {
        justify-content: center;
    }
    .event-header-meta {
        flex-direction: column;
    }
}

/* --- Archive Page Styles --- */
.archive-header {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--company-border-color);
}

.archive-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--company-text-primary);
    margin: 0;
}

.archive-list-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.archive-item-card {
    display: block;
    background-color: var(--company-card-bg);
    border-radius: var(--company-border-radius);
    border: 1px solid var(--company-border-color);
    padding: 24px;
    text-decoration: none;
    color: var(--company-text-primary);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.archive-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.archive-item-card h3 {
    margin: 0 0 12px 0;
    font-size: 1.25rem;
}

.event-archive-card {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 24px;
    align-items: center;
}

.archive-item-logo-wrapper {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
    border-radius: 8px;
    overflow: hidden;
}

.archive-item-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


/* Single Event Tabs */
.dxpx-tabs-container {
    background-color: var(--company-card-bg);
    border-radius: var(--company-border-radius);
    border: 1px solid var(--company-border-color);
    overflow: hidden;
}
.dxpx-tabs-nav {
    display: flex;
    border-bottom: 1px solid var(--company-border-color);
    margin: 0;
    padding: 0;
    list-style: none;
}

.dxpx-tabs-nav li {
    margin: 0;
}

.dxpx-tabs-nav a {
    display: block;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--company-text-secondary);
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
}

.dxpx-tabs-nav li.active a,
.dxpx-tabs-nav a:hover {
    color: var(--company-primary-link);
    border-bottom-color: var(--company-primary-link);
}

.dxpx-tabs-content {
    padding: 24px;
}

.dxpx-tab-pane {
    display: none;
}

.dxpx-tab-pane.active {
    display: block;
}

/* Ticket Shop Button */
.dxpx-ticket-shop-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background-color: #0a66c2; /* A strong blue, similar to LinkedIn primary */
    border: 1px solid #0a66c2;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dxpx-ticket-shop-button:hover {
    background-color: #084c91; /* Darker blue on hover */
    border-color: #084c91;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.dxpx-ticket-shop-button svg {
    width: 20px;
    height: 20px;
    stroke: currentColor; /* Ensures SVG icon color matches text color */
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* --- About Tab Grid --- */
.about-tab-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.about-tab-main {
    display: flex;
    flex-direction: column;
    gap: 24px; /* This adds space between the 'About' card and the 'Map' card */
}

.about-tab-grid.has-sidebar {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
}

.about-tab-sidebar .dxpx-event-countdown-wrapper {
    height: 100%;
}

@media (max-width: 992px) {
    .about-tab-grid.has-sidebar {
        grid-template-columns: 1fr;
    }
}

/* --- Event Countdown Timer --- */
.dxpx-event-countdown-wrapper {
    text-align: center;
    background-color: var(--company-card-bg);
    border-radius: var(--company-border-radius);
    border: 1px solid var(--company-border-color);
    padding: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%; /* Keep height to fill the grid cell */
    justify-content: flex-start; /* Align content to the top */
    box-sizing: border-box; /* Ensure padding is included in height */
}

.dxpx-countdown-heading {
    font-size: 1rem;
    font-weight: 500;
    color: var(--company-text-primary);
    margin: 0;
    margin-bottom: 15px;
    text-align: center;
}

.dxpx-event-countdown-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 100%;
    flex-wrap: wrap;
    /* Reset properties moved to wrapper */
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    margin-bottom: 0;
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: var(--company-profile-bg);
    padding: 8px 4px;
    border-radius: 8px;
    min-width: 55px;
    flex-grow: 1;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.countdown-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--company-primary-link);
    line-height: 1;
    margin-bottom: 4px;
}

.countdown-label {
    font-size: 0.55rem;
    font-weight: 600;
    color: var(--company-text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.countdown-separator {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--company-border-color);
    padding-bottom: 12px;
}

.dxpx-event-countdown-container .countdown-ended {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--company-primary-link);
    padding: 20px;
    background-color: var(--company-profile-bg);
    border-radius: var(--company-border-radius);
    margin-top: 0;
    width: 100%;
    text-align: center;
}

@media (max-width: 480px) {
    .countdown-item {
        min-width: 60px;
        padding: 10px 5px;
    }
    .countdown-number {
        font-size: 2.2rem;
    }
    .countdown-label {
        font-size: 0.65rem;
    }
    .countdown-separator {
        font-size: 2rem;
        padding-bottom: 5px;
    }
    .dxpx-countdown-heading {
        font-size: 1.2rem;
    }
    .dxpx-event-countdown-container .countdown-ended {
        font-size: 1.2rem;
    }
}

/* --- Countdown Meta Info --- */
.dxpx-countdown-meta {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--company-border-color);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
}

.countdown-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--company-text-secondary);
    font-weight: 500;
}

.countdown-meta-item.dxpx-highlight-item .dxpx-highlight-tag {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5em;
    background-color: var(--company-profile-bg);
    border: 1px solid var(--company-border-color);
    border-radius: 20px; /* Pill shape */
    padding: 6px 12px;
    font-size: 0.875rem;
    line-height: 1.4;
}

.dxpx-highlight-tag.is-text-only {
    font-weight: 500;
    color: var(--company-text-secondary);
}

.dxpx-highlight-tag .dxpx-highlight-label {
    font-weight: 600;
    color: var(--company-text-primary);
}

.dxpx-highlight-tag .dxpx-highlight-date {
    color: var(--company-text-secondary);
}

/* --- Add to Calendar Button --- */
.dxpx-add-to-calendar-wrapper {
    margin-top: 20px;
    position: relative;
    width: 100%; /* Take full width */
    display: flex; /* Make it a flex container */
    justify-content: center; /* Center items horizontally */
    align-items: center; /* Align items vertically */
    gap: 10px; /* Space between buttons */
    flex-wrap: wrap; /* Allow buttons to wrap on small screens */
}

.dxpx-calendar-button-container {
    position: relative; /* This is the new anchor for the dropdown */
}

.dxpx-add-to-calendar-button {
    flex-grow: 1; /* Allow button to grow if there's space */
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--company-profile-bg);
    color: var(--company-primary-link);
    border: 1px solid var(--company-border-color);
    font-weight: 600;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dxpx-add-to-calendar-button:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
}

.dxpx-calendar-links {
    display: none;
    position: absolute;
    bottom: 100%; /* Position above the container */
    left: 50%; /* Center relative to the container */
    transform: translateX(-50%);
    margin-bottom: 8px;
    background-color: var(--company-card-bg);
    border: 1px solid var(--company-border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 10;
    width: max-content;
    overflow: hidden;
}

.dxpx-calendar-links a {
    display: block;
    padding: 10px 20px;
    color: var(--company-text-primary);
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.dxpx-calendar-links a:hover {
    background-color: var(--company-profile-bg);
    color: var(--company-primary-link);
}

.dxpx-countdown-ticket-button {
    flex-grow: 2; /* Make this button take more space */
    justify-content: center;
    padding: 8px 16px; /* Match the other button's padding */
}

.dxpx-share-button {
    padding: 8px;
    width: 38px; /* Square shape */
    height: 38px;
    justify-content: center;
    flex-grow: 0; /* Don't grow */
    flex-shrink: 0;
    background-color: var(--company-profile-bg);
    color: var(--company-text-secondary);
    border: 1px solid var(--company-border-color);
}

.dxpx-share-button:hover {
    color: #fff;
}

.dxpx-linkedin-share:hover {
    background-color: #0a66c2; /* LinkedIn Blue */
    border-color: #0a66c2;
}

.dxpx-whatsapp-share:hover {
    background-color: #25D366; /* WhatsApp Green */
    border-color: #25D366;
}

/* --- Countdown Logo --- */
.dxpx-countdown-logo-wrapper {
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
}

.dxpx-countdown-logo {
    max-height: 80px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    background-color: #fff;
    padding: 5px;
    border-radius: 8px;
    border: 1px solid var(--company-border-color);
}

/* --- Event Map --- */
.dxpx-event-map-container {
    height: 400px;
    border-radius: var(--company-border-radius);
    border: 1px solid var(--company-border-color);
}

.dxpx-event-map-card {
    padding: 0; /* Remove padding to allow map to fill the card */
    overflow: hidden; /* Ensure map respects the border-radius */
    height: 400px;
}
