/*styling for navigation bar*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #800101;
    padding: 1rem 2rem;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.navbar-logo {
    font-size: 1.5rem;
    color: #fff;
    font-weight: bold;
}

.navbar-menu {
    display: flex;
    list-style: none;
}

.navbar-item {
    margin-left: 2rem;
}

.navbar-link {
    text-decoration: none;
    color: #fff;
    font-size: 1rem;
    position: relative;
    transition: color 0.3s;
}

.navbar-link::before {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -6px;
    left: 0;
    background-color: #fff;
    visibility: hidden;
    transform: scaleX(0);
    transition: all 0.3s ease-in-out;
}

.navbar-link:hover::before {
    visibility: visible;
    transform: scaleX(1);
}

.navbar-link:hover {
    color: #f39c12;
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.navbar-toggle-bar {
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 4px 0;
}

@media (max-width: 768px) {
    .navbar-menu {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 70px;
        left: 0;
        background-color: #800101;
    }

    .navbar-item {
        margin: 0;
        padding: 1rem;
        text-align: center;
    }

    .navbar-link {
        font-size: 1.2rem;
    }

    .navbar-toggle {
        display: flex;
    }

    .navbar-menu.active {
        display: flex;
    }
}

/* General styling */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.past-events {
    padding: 2rem;
    text-align: center;
}

.past-events-header {
    font-size: 3rem;
    color: #800101;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(-20px);
    animation: slideInFromTop 1s ease-out forwards;
}

.event-details {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 1.5s ease-out forwards;
    animation-delay: 0.5s;
}

.event-topic {
    font-size: 2rem;
    color: #800101;
    margin-bottom: 1rem;
    opacity: 0;
    animation: slideInFromLeft 1s ease-out forwards;
    animation-delay: 1s;
}

.event-subtopic {
    font-size: 1.5rem;
    color: #f39c12;
    margin-bottom: 1rem;
    opacity: 0;
    animation: slideInFromRight 1s ease-out forwards;
    animation-delay: 1.5s;
}

.event-paragraph {
    font-size: 1rem;
    color: #333;
    margin-bottom: 1rem;
    opacity: 0;
    animation: fadeIn 2s ease-out forwards;
    animation-delay: 2s;
}

.event-image-tile {
    margin: 1rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: zoomIn 2.5s ease-out forwards;
    animation-delay: 2.5s;
}

.event-image-tile img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.organizing-committee {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-top: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 3s ease-out forwards;
    animation-delay: 3s;
}

.committee-header {
    font-size: 1.8rem;
    color: #800101;
    margin: 1rem 0;
    opacity: 0;
    animation: slideInFromTop 1s ease-out forwards;
    animation-delay: 3.5s;
}

.committee-members {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.committee-member {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 1s ease-out forwards;
    animation-delay: 4s;
}

.committee-member img {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.member-name {
    font-size: 1rem;
    color: #333;
    margin-top: 0.5rem;
}

/* Keyframes for animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInFromTop {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInFromLeft {
    from { transform: translateX(-50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideInFromRight {
    from { transform: translateX(50px); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes fadeInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Responsive design */
@media (max-width: 768px) {
    .event-details, .organizing-committee {
        padding: 1rem;
    }

    .event-topic, .committee-header {
        font-size: 1.5rem;
    }

    .event-subtopic {
        font-size: 1.2rem;
    }

    .event-paragraph {
        font-size: 0.9rem;
    }
}


/*styling for footer*/
.footer {
    background-color: #800101;
    color: white;
    padding: 3rem 1rem;
    position: relative;
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    flex: 1;
    margin: 1rem;
    min-width: 200px;
}

.footer-section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    position: relative;
}

.footer-section h2::after {
    content: '';
    width: 50px;
    height: 2px;
    background-color: #f39c12;
    position: absolute;
    left: 0;
    bottom: -10px;
    animation: expand 1s ease-in-out;
}

@keyframes expand {
    from {
        width: 0;
    }
    to {
        width: 50px;
    }
}

.footer-section p, .footer-section ul {
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section ul li a {
    color: #f39c12;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section ul li a:hover {
    color: #e67e22;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icons a {
    color: white;
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: #f39c12;
}

.footer-bottom {
    text-align: center;
    padding: 1rem 0;
    background-color: #111;
    position: relative;
}

.footer-bottom p {
    margin: 0;
    font-size: 1rem;
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        align-items: center;
    }

    .footer-section {
        margin-bottom: 2rem;
    }
}
