:root {
    --ted-red: #EB0028;
    --ted-red-dark: #c40022;
    --ted-black: #1a1a1a;
    --ted-gray: #6c757d;
}

body.site-body {
    font-family: 'Inter', Helvetica, Arial, sans-serif;
    background-color: #f8f9fa;
    color: var(--ted-black);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.navbar-tedx {
    --bs-navbar-padding-y: 0.2rem;
    background-color: var(--ted-red) !important;
    align-items: center;
}

.navbar-tedx .navbar-brand {
    font-weight: 700;
    font-size: 2.8rem;
    line-height: 1.1;
    padding-top: 0;
    padding-bottom: 0;
}

.navbar-tedx .brand-tedx {
    color: #fff !important;
}

.navbar-tedx .brand-rest {
    color: var(--ted-black) !important;
}

.navbar-tedx .nav-link {
    color: var(--ted-black) !important;
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.2;
    padding: 0.2rem 0.85rem !important;
}

.navbar-tedx .nav-link:hover,
.navbar-tedx .nav-link.active {
    color: #fff !important;
}

.navbar-tedx .navbar-brand:hover .brand-tedx {
    color: rgba(255, 255, 255, 0.9) !important;
}

.navbar-tedx .navbar-brand:hover .brand-rest {
    color: var(--ted-black) !important;
    opacity: 0.85;
}

.navbar-tedx .navbar-toggler {
    border-color: rgba(0, 0, 0, 0.35);
    padding: 0.25rem 0.5rem;
}

.navbar-tedx .navbar-toggler-icon {
    filter: none;
}

.page-title,
.section-title {
    color: var(--ted-red);
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.search-result-card {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    padding: 0.85rem 1rem;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    text-decoration: none;
    color: var(--ted-black);
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.search-result-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transform: translateY(-1px);
    color: var(--ted-black);
}

.search-result-thumb {
    flex: 0 0 7rem;
    aspect-ratio: 16 / 9;
    background: #111;
    border-radius: 0.35rem;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-result-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.search-result-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.search-result-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.search-result-meta {
    font-size: 0.875rem;
    color: var(--ted-gray);
}

.site-footer {
    background: #fff;
}

.site-footer a {
    color: var(--ted-red);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--ted-red-dark);
    text-decoration: underline;
}

.site-visit-counter {
    white-space: nowrap;
}

.btn-tedx {
    background-color: var(--ted-red);
    border-color: var(--ted-red);
    color: #fff;
}

.btn-tedx:hover,
.btn-tedx:focus {
    background-color: var(--ted-red-dark);
    border-color: var(--ted-red-dark);
    color: #fff;
}

.btn-outline-tedx {
    color: var(--ted-red);
    border-color: var(--ted-red);
}

.btn-outline-tedx:hover,
.btn-outline-tedx:focus {
    background-color: var(--ted-red);
    border-color: var(--ted-red);
    color: #fff;
}

.event-card {
    color: var(--ted-black);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(235, 0, 40, 0.12) !important;
}

.conference-card {
    color: var(--ted-black);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.conference-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1) !important;
}

.conference-thumb {
    aspect-ratio: 16 / 9;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.conference-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.video-embed {
    background: #000;
}

.video-embed iframe {
    border: 0;
}

.conference-description {
    line-height: 1.65;
}

.breadcrumb a {
    color: var(--ted-gray);
    text-decoration: none;
}

.breadcrumb a:hover {
    color: var(--ted-red);
    text-decoration: underline;
}

.intro-text {
    color: #333;
}