body {
    background-color: #ffffff;
    scroll-behavior: smooth;
    margin: 0;
    padding-top: 66px;
}

/* Flexible page wrapper */
#page-wrapper {
    min-height: calc(100vh - 66px);
    display: flex;
    flex-direction: column;
}

/* Main content pushes footer down */
main {
    flex: 1;
}

/* Specific to index hero section */
.hero-container {
    margin-top: 2rem; /* avoid touching navbar */
}

/* On medium+ screens, vertically center the hero */
@media (min-width: 768px) {
    main {
        min-height: calc(100vh - 66px - 40px); 
        /* 66 = navbar height, 40 = approximate footer height */
        /* adjust if footer is taller/shorter */
    }

    .hero-container {
        margin-top: 0; /* remove extra top space when centered */
    }
}

.nav-link.active {
    font-weight: bold;
    color: #007bff !important;
}

.rounded-box {
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    padding: 15px;
    margin-bottom: 15px;
}

/* Logo spinner animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* Style for loading screen */
#loading {
    position: fixed;
    width: 100%;
    height: 100%;
    background: white;
    top: 0;
    left: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
}

#loading img {
    height: 80px;
    animation: spin 2s linear infinite;
}

@keyframes rotate-logo {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.rotating-logo {
    animation: rotate-logo 5s linear infinite;
}

.social-icon {
    color: #000;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #007bff;
}

a {
    text-decoration: none !important;
}

a:hover {
    text-decoration: underline !important;
}

.navbar a:hover {
    text-decoration: none !important;
}
.navbar .nav-link {
    text-decoration: none;
    transition: color 0.25s ease, transform 0.25s ease; /* smooth hover */
}

.navbar .nav-link:hover {
    text-decoration: none !important;
    color: #007bff;   /* or whichever color you prefer */
    transform: translateY(-2px); /* subtle lift effect */
}

.bio {
    font-size: large;
}

.talks-page-list {
    width: min(100%, 1050px);
}
