/**
 * Conference Grid Styles - Clean & Professional
 * Modern, minimal design with focus on clarity and hierarchy
 */

.conference-grid,
.series-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    width: 100%;
}

.series-card,
.conference-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* Flagship Series (homepage) */
.flagship-section {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.flagship-shell {
    max-width: 1180px;
    margin: 0 auto;
}

.flagship-heading {
    max-width: 760px;
    margin: 0 auto 2rem;
}

.flagship-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
    margin-top: 1.5rem;
}

.flagship-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    height: 100%;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.flagship-card:hover,
.flagship-card:focus-within,
.flagship-card.active {
    transform: translateY(-4px);
    border-color: #0052cc;
    box-shadow: 0 14px 30px rgba(0, 82, 204, 0.08);
}

.flagship-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.flagship-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f2f6ff, #e6edff);
    border: 1px solid #d8e5ff;
    color: #0b3b8f;
    flex-shrink: 0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.flagship-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    background: #f7f9ff;
    border: 1px solid #dfe6f5;
    font-size: 0.85rem;
    font-weight: 600;
    color: #0b3b8f;
    white-space: nowrap;
}

.flagship-badge span {
    opacity: 0.7;
}

.flagship-body {
    display: grid;
    gap: 0.4rem;
}

.flagship-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #111827;
}

.flagship-subtitle {
    margin: 0;
    font-size: 0.95rem;
    color: #4b5563;
    line-height: 1.5;
}

.flagship-cta {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 700;
    color: #0b3b8f;
    text-decoration: none;
    padding-top: 0.25rem;
}

.flagship-cta::after {
    content: '→';
    transition: transform 0.2s ease;
}

.flagship-card:hover .flagship-cta::after,
.flagship-card:focus-within .flagship-cta::after,
.flagship-card.active .flagship-cta::after {
    transform: translateX(3px);
}

.flagship-grid.is-compact .flagship-card {
    padding: 1.1rem;
}

.flagship-grid.is-compact .flagship-subtitle {
    font-size: 0.9rem;
}

@media (max-width: 767px) {
    .flagship-section {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .flagship-grid {
        gap: 1rem;
    }

    .flagship-card {
        padding: 1.25rem;
    }
}

.series-card:hover,
.conference-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #0052cc;
}

.series-top,
.conference-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.series-icon,
.conference-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.5rem;
    background-color: #f0f6ff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid #e0e0e0;
    color: #0052cc;
}

.series-title,
.conference-card-title {
    font-size: 1.25rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 600;
    line-height: 1.3;
    color: #1a1a1a;
}

.series-tagline,
.conference-card-tagline {
    font-size: 0.875rem;
    color: #5a5a5a;
    line-height: 1.6;
    margin: 0;
}

.series-footer,
.conference-card-footer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
    margin-top: auto;
}

.series-cta,
.conference-card-action {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0052cc;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.series-card:hover .series-cta,
.conference-card:hover .conference-card-action {
    color: #0040a6;
    transform: translateX(2px);
}

.series-card .pill,
.conference-card .pill {
    margin-left: auto;
}

@media (max-width: 1199px) {
    .conference-grid,
    .series-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .conference-grid,
    .series-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Events Rail */
.events-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    width: 100%;
}

.event-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    scroll-snap-align: start;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    border-color: #0052cc;
}

.event-visual {
    width: 100%;
    height: 200px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, #f0f6ff, #e6f0ff);
    border: 1px solid #e0e0e0;
}

.event-meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.event-title {
    font-size: 1.5rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.event-location {
    font-size: 0.875rem;
    color: #5a5a5a;
    margin: 0;
}

.event-description {
    font-size: 0.875rem;
    color: #5a5a5a;
    line-height: 1.6;
    margin: 0;
}

.event-cta {
    margin-top: auto;
    font-weight: 600;
    font-size: 0.875rem;
    color: #0052cc;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.event-cta::after {
    content: '→';
    font-size: 0.875rem;
    transition: transform 0.2s ease;
}

.event-card:hover .event-cta::after {
    transform: translateX(4px);
}

@media (max-width: 991px) {
    .events-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .events-rail {
        grid-template-columns: repeat(3, minmax(260px, 1fr));
        grid-auto-flow: column;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 1rem;
    }
}

/* Speakers Carousel */
.speaker-marquee {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    background-color: #ffffff;
    padding: 1rem;
}

.speaker-window {
    width: 100%;
    overflow: hidden;
}

.speaker-track {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    transition: transform 0.45s ease;
    will-change: transform;
}

.speaker-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 999px;
    padding: 0.75rem 1rem;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.speaker-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f5f5f5, #f0f0f0);
    border: 1px solid #e0e0e0;
    display: grid;
    place-items: center;
    color: #0052cc;
}

.speaker-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.speaker-name {
    font-size: 0.875rem;
    font-weight: 600;
}

.speaker-role {
    font-size: 0.75rem;
    color: #5a5a5a;
}

.speaker-arrow {
    height: 44px;
    width: 44px;
    border-radius: 50%;
    border: 1px solid #d0d0d0;
    background: #ffffff;
    color: #1a1a1a;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.speaker-arrow:hover:not(:disabled) {
    border-color: #0052cc;
    color: #0052cc;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.speaker-arrow:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Partners Grid */
.partners-grid {
    display: grid;
    gap: 2rem;
    align-items: center;
    justify-items: center;
    width: 100%;
}

.partners-wall {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.partner-tile,
.partner-logo {
    width: 100%;
    min-height: 96px;
    background-color: #ffffff;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px solid #e0e0e0;
    transition: all 0.2s ease;
    filter: grayscale(100%);
    color: #5a5a5a;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    text-align: center;
}

.partner-tile:hover,
.partner-logo:hover {
    filter: grayscale(10%);
    border-color: #0052cc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    color: #1a1a1a;
}

.partner-name {
    pointer-events: none;
}

@media (max-width: 1199px) {
    .partners-wall {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .partners-wall {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

/* CTA Section */
.cta-section {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.cta-section h2 {
    font-size: 2rem;
    margin: 0 0 0.5rem;
    color: #1a1a1a;
}

.cta-section p {
    font-size: 1rem;
    color: #5a5a5a;
    margin: 0;
    max-width: 520px;
}

.refined-cta {
    flex-direction: row;
}

.cta-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

@media (max-width: 767px) {
    .cta-section {
        flex-direction: column;
        text-align: center;
        align-items: flex-start;
    }
    
    .cta-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Update Card */
.update-card {
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 2rem;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.update-card:hover {
    border-color: #0052cc;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.update-meta {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 0.75rem;
}

.update-date {
    font-size: 0.75rem;
    color: #5a5a5a;
}

.update-card-title {
    font-size: 2rem;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: #1a1a1a;
}

.update-card-lede,
.update-card-body {
    font-size: 1rem;
    color: #5a5a5a;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.update-card-link {
    display: inline-flex;
    align-items: center;
    font-weight: 600;
    color: #0052cc;
    text-decoration: none;
    gap: 0.5rem;
}

.update-card-link::after {
    content: '→';
    transition: transform 0.2s ease;
}

.update-card:hover .update-card-link::after {
    transform: translateX(4px);
}
