/* === INDEX.CSS === */
.event-layout { 
    display: grid; 
    grid-template-columns: 1fr; 
    gap: 2rem; 
    align-items: center; 
}

@media (min-width: 768px) { 
    .event-layout { 
        grid-template-columns: 1fr 1.5fr; 
        gap: 3rem; 
    } 
}

.event-poster {
    width: 100%; 
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg); 
    border: 3px solid var(--brand-primary);
}

.lecturer-list {
    list-style: none;
    padding-left: 1rem;
    border-left: 3px solid var(--brand-primary);
}

.carousel-track { 
    display: flex; 
}

.carousel-slide { 
    flex: 0 0 50%; 
    padding: 0 10px; 
}

.carousel-slide img {
    width: 100%; 
    height: 100%;
    object-fit: cover; /* Ensures the image covers the entire area */
    object-position: center; /* Centers the image in the container */
    border-radius: var(--border-radius);
    border: 2px solid var(--border-primary);
}

@media (min-width: 768px) { 
    .carousel-slide { 
        flex: 0 0 25%; 
    } 
}

/* === QUIZ SECTION === */
.quiz-section {
    background-color: var(--bg-secondary);
    padding: 3rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.6s ease-out;
    text-align: center;
}

.quiz-section h2 {
    color: var(--brand-primary);
    font-size: 2rem;
    margin-bottom: 1.5rem;
    font-family: 'Roboto', sans-serif; /* Modern, clean font */
    font-weight: 700;
}

.question-group {
    margin-bottom: 1.5rem;
    background-color: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.question-group:hover {
    transform: scale(1.03); /* Slight zoom effect */
    background-color: var(--brand-primary); /* Slight background change */
    color: white;
}

.question-group h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-family: 'Roboto', sans-serif; /* Consistent font */
    font-weight: 600;
}

.question-group button {
    background-color: var(--brand-secondary);
    color: white;
    padding: 0.8rem 2rem;
    font-size: 1.2rem;
    border: none;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-family: 'Roboto', sans-serif;
}

.question-group button:hover {
    background-color: var(--brand-tertiary); /* Smooth hover effect */
    transform: translateY(-2px); /* Slight lift effect */
}

.map-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* === See My Score Button === */
.score-button {
    background: linear-gradient(
        135deg, 
        var(--brand-primary), 
        var(--brand-secondary), 
        #ff6f61, /* Vibrant accent color */
        #e73c7e  /* Another vibrant color */
    );
    background-size: 400% 400%;
    color: white;
    padding: 1.2rem 4rem; /* Increased padding for a bigger button */
    font-size: 1.7rem; /* Larger font size for more emphasis */
    border: none;
    border-radius: 50px; /* Fully rounded for a modern look */
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2); /* Slightly more intense shadow */
    transition: all 0.5s ease-in-out; /* Smooth transitions for hover effects */
    animation: tempting-gradient 10s ease infinite;
    outline: none;
}

/* Hover Effects */
.score-button:hover {
    transform: scale(1.2) translateY(-7px); /* Larger scaling and smooth lift */
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3); /* Stronger shadow for depth */
    animation-play-state: paused; /* Pause the background gradient on hover */
}

/* Active Button Effect */
.score-button:active {
    transform: scale(1.1) translateY(2px); /* Slightly pressed effect */
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Reduced shadow on press */
}

/* Button Focus for Accessibility */
.score-button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.5), 0 0 0 8px var(--brand-primary); /* Focus glow */
}

/* === Animations === */
@keyframes tempting-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}


/* Hover Effects */
.score-button:hover {
    transform: scale(1.1) translateY(-5px); /* Lift effect */
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3); /* Bigger shadow */
    animation-play-state: paused; /* Pause animation during hover */
}

/* Active Button Effect */
.score-button:active {
    transform: scale(1.05) translateY(1px); /* Pressed effect */
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* Button Focus for Accessibility */
.score-button:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.5), 0 0 0 7px var(--brand-primary); /* Glow effect */
}

/* More specific targeting */
.site-header .quiz-section .quiz-submit-btn {
    background: linear-gradient(
        135deg, 
        var(--brand-primary), 
        var(--brand-secondary), 
        #ff6f61,
        #e73c7e
    );
    background-size: 400% 400%;
    padding: 1.2rem 4rem;
    font-size: 1.7rem;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-family: 'Roboto', sans-serif;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
    transition: all 0.5s ease-in-out;
    animation: tempting-gradient 10s ease infinite;
}


/* === Animations === */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* NEW animation for the button's background */
@keyframes tempting-gradient {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}
