/*
Theme Name:   CE Crowd (Astra Child)
Theme URI:    https://cecrowd.com
Description:  Child theme for Astra
Author:       CE Crowd
Author URI:   https://cecrowd.com
Template:     astra
Version:      1.0.0
Text Domain:  astra-child
*/

/* Add your custom CSS below this line */

/* Footer */

.ast-footer-copyright > p{
	font-size:80%;
}
.disclaimer{
	font-size:68%;
	line-height:1.4;
	display:block;
	clear:both;
	color:#555;
	margin:30px 10px;
}
.disclaimer a{
	text-decoration:underline;
	color:#555;
	font-weight:bold;
}
.disclaimer a:hover{
	color:#000;
}

/* ================================
   CE Crowd Modern Event Styles
   Astra Theme Compatible
   ================================ */

/* Container - Use Astra's content width */
.cecrowd-modern-event {
    max-width: var(--ast-container-default-xlg-width, 1400px);
    margin: 0 auto;
    padding: 0;
}

/* Back Link - Match Astra buttons */
.cecrowd-back-link {
    margin-bottom: 20px;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--ast-global-color-5, #f5f5f5);
    border-radius: var(--ast-border-radius, 4px);
    text-decoration: none;
    color: var(--ast-global-color-3, #333);
    font-family: var(--ast-font-family-base, inherit);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid var(--ast-border-color, #eaeaea);
}

.back-button:hover {
    background: var(--ast-global-color-4, #e0e0e0);
    color: var(--ast-global-color-2, #000);
    transform: translateX(-4px);
}

/* Hero Section */
.cecrowd-event-hero {
    position: relative;
    height: 400px;
    border-radius: var(--ast-border-radius, 4px);
    overflow: hidden;
    margin-bottom: 40px;
    background: linear-gradient(135deg, var(--ast-global-color-0, #0170B9) 0%, var(--ast-global-color-1, #3a3a3a) 100%);
}

.cecrowd-hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.cecrowd-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cecrowd-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    padding: 40px;
    color: white;
}

.cecrowd-event-categories {
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--ast-global-color-5, #fbbf24);
}

.cecrowd-event-title {
    font-size: 42px;
    font-weight: 700;
    font-family: var(--ast-font-family-heading, inherit);
    margin: 0 0 16px 0;
    line-height: 1.2;
    color: white;
}

.cecrowd-event-meta-quick {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}

.cecrowd-event-meta-quick span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: rgba(255,255,255,0.9);
}

.cecrowd-event-meta-quick svg {
    opacity: 0.8;
}

/* Grid Layout - Responsive like Astra */
.cecrowd-event-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: start;
}

/* Sidebar */
.cecrowd-event-sidebar {
    position: sticky;
    top: 20px;
}

/* Cards - Match Astra's card style */
.cecrowd-card {
    background: var(--ast-global-color-5, white);
    border-radius: var(--ast-border-radius, 4px);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid var(--ast-border-color, #e5e7eb);
    transition: box-shadow 0.3s ease;
}

.cecrowd-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    font-family: var(--ast-font-family-heading, inherit);
    color: var(--ast-global-color-2, #111827);
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ast-border-color, #f3f4f6);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Event Details */
.detail-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid var(--ast-border-color, #f3f4f6);
}

.detail-item:last-child {
    border-bottom: none;
}

.detail-item.highlight {
    background: rgba(var(--ast-global-color-0-rgb, 1, 112, 185), 0.08);
    margin: 0 -24px;
    padding: 16px 24px;
    border-radius: var(--ast-border-radius, 4px);
}

.detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--ast-global-color-4, #f3f4f6);
    border-radius: var(--ast-border-radius, 4px);
    color: var(--ast-global-color-0, #0170B9);
}

.detail-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-content strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--ast-global-color-3, #6b7280);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    font-family: var(--ast-font-family-base, inherit);
}

.detail-content span {
    font-size: 16px;
    color: var(--ast-global-color-2, #111827);
    font-weight: 500;
    font-family: var(--ast-font-family-base, inherit);
}

.detail-secondary {
    font-size: 14px !important;
    color: var(--ast-global-color-3, #6b7280) !important;
    font-weight: 400 !important;
}

/* Format Badge */
.format-badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

.format-in-person {
    background: #dcfce7;
    color: #166534;
}

.format-virtual {
    background: #dbeafe;
    color: #1e40af;
}

.format-hybrid {
    background: #fef3c7;
    color: #92400e;
}

/* CE Credits & Cost Highlight */
.ce-value,
.cost-value {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: var(--ast-global-color-0, #0170B9) !important;
}

/* Register Button - Use Astra's button styles */
.cecrowd-register-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 16px 24px;
    background: var(--ast-global-color-0, #0170B9);
    color: white;
    font-size: 18px;
    font-weight: 600;
    font-family: var(--ast-font-family-button, inherit);
    border-radius: var(--ast-border-radius, 4px);
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(1, 112, 185, 0.3);
    margin-bottom: 24px;
    border: 2px solid var(--ast-global-color-0, #0170B9);
}

.cecrowd-register-button:hover {
    background: var(--ast-global-color-1, #3a3a3a);
    border-color: var(--ast-global-color-1, #3a3a3a);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(1, 112, 185, 0.4);
    color: white;
}

.cecrowd-register-button svg {
    transition: transform 0.3s ease;
}

.cecrowd-register-button:hover svg {
    transform: translateX(4px);
}

/* Venue Card */
.venue-name {
    font-size: 18px;
    font-weight: 600;
    font-family: var(--ast-font-family-heading, inherit);
    color: var(--ast-global-color-2, #111827);
    margin-bottom: 8px;
}

.venue-name a {
    color: var(--ast-global-color-2, #111827);
    text-decoration: none;
    transition: color 0.3s ease;
}

.venue-name a:hover {
    color: var(--ast-global-color-0, #0170B9);
}

.venue-address {
    font-size: 14px;
    color: var(--ast-global-color-3, #6b7280);
    line-height: 1.6;
    margin-bottom: 12px;
    font-family: var(--ast-font-family-base, inherit);
}

.cecrowd-venue-card a.venue-map-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ast-global-color-0, #0170B9);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cecrowd-venue-card a.venue-map-link:hover {
    color: var(--ast-global-color-1, #3a3a3a);
    transform: translateX(2px);
}

/* Organizer Card */
.organizer-name {
    font-size: 18px;
    font-weight: 600;
    font-family: var(--ast-font-family-heading, inherit);
    color: var(--ast-global-color-2, #111827);
    margin-bottom: 8px;
}

.organizer-name a {
    color: var(--ast-global-color-2, #111827);
    text-decoration: none;
    transition: color 0.3s ease;
}

.organizer-name a:hover {
    color: var(--ast-global-color-0, #0170B9);
}

.organizer-website {
    margin-top: 8px;
}

.cecrowd-organizer-card .organizer-website a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ast-global-color-0, #0170B9);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.cecrowd-organizer-card .organizer-website a:hover {
    color: var(--ast-global-color-1, #3a3a3a);
    transform: translateX(2px);
}

/* Main Content */
.cecrowd-event-main {
    min-width: 0;
}

.section-title {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--ast-font-family-heading, inherit);
    color: var(--ast-global-color-2, #111827);
    margin: 0 0 20px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title svg {
    color: var(--ast-global-color-0, #0170B9);
}

/* Description Card */
.cecrowd-description-card .event-excerpt {
    font-size: 18px;
    line-height: 1.6;
    color: var(--ast-global-color-2, #111827);
    font-weight: 500;
    margin-bottom: 24px;
    padding: 20px;
    background: var(--ast-global-color-4, #f9fafb);
    border-left: 4px solid var(--ast-global-color-0, #0170B9);
    border-radius: var(--ast-border-radius, 4px);
}

.cecrowd-description-card .tribe-events-content {
    font-size: var(--ast-font-size-body, 17px);
    line-height: var(--ast-body-line-height, 1.8);
    color: var(--ast-global-color-3, #374151);
    font-family: var(--ast-font-family-base, inherit);
}

.cecrowd-description-card .tribe-events-content p {
    margin-bottom: 16px;
}

.cecrowd-description-card .tribe-events-content h2,
.cecrowd-description-card .tribe-events-content h3,
.cecrowd-description-card .tribe-events-content h4 {
    font-family: var(--ast-font-family-heading, inherit);
    color: var(--ast-global-color-2, #111827);
    margin-top: 24px;
    margin-bottom: 12px;
}

.cecrowd-description-card .tribe-events-content ul,
.cecrowd-description-card .tribe-events-content ol {
    margin: 16px 0;
    padding-left: 24px;
}

.cecrowd-description-card .tribe-events-content li {
    margin-bottom: 8px;
}

.cecrowd-description-card .tribe-events-content a {
    color: var(--ast-global-color-0, #0170B9);
    text-decoration: underline;
}

.cecrowd-description-card .tribe-events-content a:hover {
    color: var(--ast-global-color-1, #3a3a3a);
}

/* Objectives & Audience Lists */
.objectives-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--ast-global-color-3, #374151);
    font-family: var(--ast-font-family-base, inherit);
}

.objectives-list li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
}

.objectives-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--ast-global-color-0, #0170B9);
    font-weight: bold;
    font-size: 18px;
}

.audience-list {
    font-size: 16px;
    line-height: 1.8;
    color: var(--ast-global-color-3, #374151);
    font-family: var(--ast-font-family-base, inherit);
}

/* Responsive - Match Astra breakpoints */
@media (max-width: 1200px) {
    .cecrowd-event-grid {
        grid-template-columns: 340px 1fr;
        gap: 30px;
    }
}

@media (max-width: 1024px) {
    .cecrowd-event-grid {
        grid-template-columns: 1fr;
    }
    
    .cecrowd-event-sidebar {
        position: static;
        order: 2;
    }
    
    .cecrowd-event-main {
        order: 1;
    }
}

@media (max-width: 768px) {
    .cecrowd-event-hero {
        height: 300px;
    }
    
    .cecrowd-event-title {
        font-size: 32px;
    }
    
    .cecrowd-hero-overlay {
        padding: 24px;
    }
    
    .cecrowd-event-grid {
        gap: 24px;
    }
    
    .cecrowd-card {
        padding: 20px;
    }
    
    .section-title {
        font-size: 24px;
    }
}

@media (max-width: 544px) {
    .cecrowd-event-title {
        font-size: 24px;
    }
    
    .cecrowd-event-meta-quick {
        flex-direction: column;
        gap: 12px;
    }
    
    .detail-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .detail-icon {
        margin-bottom: 8px;
    }
    
    .cecrowd-hero-overlay {
        padding: 20px;
    }
}

/* Astra Content Layout Compatibility */
.ast-separate-container .cecrowd-modern-event {
    padding: 0;
}

.ast-plain-container .cecrowd-modern-event {
    padding: 0;
}

.ast-page-builder-template .cecrowd-modern-event {
    max-width: 100%;
}

/* Astra Sidebar Layout Compatibility */
.ast-left-sidebar .cecrowd-event-grid,
.ast-right-sidebar .cecrowd-event-grid {
    grid-template-columns: 1fr;
}

.ast-left-sidebar .cecrowd-event-sidebar,
.ast-right-sidebar .cecrowd-event-sidebar {
    position: static;
}

/* Print Styles */
@media print {
    .cecrowd-back-link,
    .cecrowd-register-button,
    .cecrowd-hero-image {
        display: none;
    }
    
    .cecrowd-event-grid {
        display: block;
    }
    
    .cecrowd-card {
        break-inside: avoid;
    }
}