/* SECTION */
#talks {
    background: #F4F7FB;
    padding: 70px 0;
    color: #363232;
}

/* HEADER */
.talks-header h2 {
    font-family: 'Russo One', sans-serif;
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.talks-header .sub {
    font-size: 13px;
    opacity: 0.8;
}

/* YEAR NAV (RIGHT SIDE) */
.year-nav {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.year-nav li {
    padding: 8px 3px;
    cursor: pointer;
    font-size: 15px;
    border-left: 3px solid transparent;
    transition: all .3s;
}

.year-nav li:hover,
.year-nav li.active {
    background: #F4F7FB;
    border-left: 3px solid #00e5ff;
}

.year-nav li a {
    color: #282c2c;
    text-decoration: none;
}

/* TALKS */
.talks-year {
    display: none;
}

.talks-year.active {
    display: block;
}

/* CARD */
.talk-card {
    background: #ffffff; /* Symmetrical soft card background */
    border-radius: 12px;
    padding: 20px 24px;
    margin-bottom: 18px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform .3s, box-shadow .3s;
}

.talk-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* YEAR BADGE (RIGHT OF CARD) */
.badge-year {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 12px;
    font-weight: 600;
    color: #0077b6;
    background: #eef3ff;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

/* TEXT */
.talk-card h4 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
    padding-right: 120px; /* Prevent text from colliding with absolute date badge */
}

.talk-card p {
    font-size: 14px;
    color: #555;
    margin-bottom: 0;
}

.talk-card .date {
    font-size: 12px;
    opacity: 0.7;
}

/* HOVER BADGE */
.talk-card:hover .badge-year {
    background: #0077b6;
    color: #ffffff;
}

/* MOBILE RESPONSIVENESS */
@media(max-width: 768px) {
    #talks {
        padding: 40px 0;
    }

    .talk-card {
        padding: 16px 20px !important;
    }

    .talk-card h4 {
        padding-right: 0 !important;
        font-size: 15px !important;
    }

    .badge-year {
        position: relative !important;
        display: inline-block !important;
        margin-bottom: 10px !important;
        top: auto !important;
        right: auto !important;
        font-size: 11px !important;
        padding: 2px 10px !important;
    }
}
