html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: "Segoe UI", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f9f9f9;
}

.container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 5rem;
}

/* Header – red gradient */
.header-layout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to right, rgb(155, 0, 20), rgb(180, 20, 40));
    color: white;
}

.header-left {
    flex: 1;
    text-align: left;
    max-width: 55%;
    padding-left: 5rem;
    line-height: 1.3;
}

.header-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 3rem 0 3rem 5rem;
    justify-content: flex-end;
}

header .logo {
    max-height: 8rem;
    width: auto;
    max-width: 100%;
    float: right;
}

.conference-title {
    font-size: 8rem;
    margin-bottom: 3rem;
}
.conference-date {
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-weight: 300;
}

/* Buttons */
.btn {
    padding: 12px 30px;
    background: #c0392b;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-block;
    margin-bottom: 30px;
}
.btn:hover {
    background: rgb(155, 0, 20);
    transform: translateY(3px);
    box-shadow: 0 4px 12px rgba(155, 0, 20, 0.8);
}

/* Navigation */
nav {
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    text-align: center;
}
nav ul {
    list-style: none;
    padding: 1rem 0;
    margin: 0;
}
nav li {
    display: inline;
    margin: 0 1.2rem;
}
nav a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}
nav a:hover {
    color: rgb(155, 0, 20);
}

/* General */
main {
    padding: 3rem 0;
}
section {
    margin: 4rem 0;
}
h2 {
    color: rgb(155, 0, 20);
    text-align: center;
    position: relative;
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}
h2:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: rgb(155, 0, 20);
}

/* Intro */
#intro p {
    text-align: center;
}

/* Speakers – cards */
.speakers {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 2rem;
    scroll-snap-type: x mandatory;
    padding: 1rem 0;
}
.speaker-card {
    flex: 0 0 260px;
    scroll-snap-align: start;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    transition:
        transform 0.3s,
        box-shadow 0.3s;
}
.speaker-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 40px rgba(155, 0, 20, 0.15);
}
.speaker-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    background: #ddd;
}
.speaker-info {
    padding: 20px;
    text-align: center;
}
.speaker-info h3 {
    font-size: 20px;
    margin-bottom: 8px;
}
.speaker-info p {
    color: rgb(155, 0, 20);
    font-weight: 600;
    font-size: 15px;
}

/* Program tabs */
.tabs {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
    flex-wrap: nowrap;
    gap: 10px;
    border-bottom: 1px solid #ddd;
}
.tab {
    padding: 12px 28px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: #555;
    transition: all 0.3s;
    position: relative;
}
.tab.active {
    color: rgb(155, 0, 20);
}
.tab.active:after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 4px;
    background: rgb(155, 0, 20);
}

/* Schedule items */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}
.schedule-item {
    background: white;
    padding: 2rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}
.schedule-item:hover {
    transform: translateX(8px);
}
.time {
    font-weight: 700;
    color: rgb(155, 0, 20);
    min-width: 130px;
    font-size: 1rem;
}
.event-details {
    flex: 1;
    padding: 0 0 0 2rem;
    border-left: 3px solid rgb(155, 0, 20);
    font-size: 1.1rem;
}

/* Venue */
.venue {
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
    align-items: center;
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}
.venue > div {
    flex: 1;
    /*min-width: 300px;*/
}
.venue-img img {
    width: 100%;
    border-radius: 10px;
    background: #ddd;
}

.sponsors {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    overflow-x: auto;
    justify-content: center;
    gap: 2rem;
    scroll-snap-type: x mandatory;
    padding: 2rem 0;
}

.sponsors a img {
    height: 7rem;
    float: none;
}

/* Footer */
footer {
    background: rgb(155, 0, 20);
    color: white;
    padding: 3rem 0;
    text-align: center;
}

footer a {
    color: white;
    text-decoration: underline;
}

/* Mobile adjustments */
@media (orientation: portrait) or (max-width: 1000px) {
    .container {
        padding: 0 2rem;
    }

    .header-layout {
        flex-direction: column;
        text-align: center;
        align-items: stretch;
    } /*
    @keyframes scroll {
        0% { transform: translateX(0); }
        100% { transform: translateX(-100%); }
    }*/
    .header-right {
        /*animation: scroll 1s linear infinite; /* Matches JS */
        display: flex;
        justify-content: flex-start;
        margin: 2rem 1rem;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
    }

    .header-left {
        padding: 0 1rem;
        line-height: 1.3;
        text-align: center;
        justify-items: center;
        max-width: 100%;
    }

    header .logo {
        min-height: 8rem;
        float: none;
        max-width: none;
    }

    .conference-title {
        font-size: 4rem;
        margin-left: .5rem;
    }

    nav ul {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        display: flex;
    }

    .tabs {
        flex-wrap: nowrap;
        overflow-x: auto;
        justify-content: flex-start;
        scroll-snap-type: x mandatory;
    }

    .schedule-item {
        flex-direction: column;
    }

    .time {
        text-align: center;
        padding: 0 0 .8rem 0;
    }

    .event-details {
        border-top: 3px solid rgb(155, 0, 20);
        border-left: none;
        padding: 1rem 0 0 0;
        text-align: center;
    }

    .venue{
        flex-direction: column;
    }
    .sponsors {
        flex-direction: column;
        align-items: center;
    }

    .sponsors a img {
        max-width: 100%;
        float: none;
    }
}
