@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;900&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #1a202c; /* Equivalent to tailwind bg-gray-900 */
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
}

h1, .font-black {
    font-weight: 900;
}

.step-card {
    background-color: #2d3748; /* bg-gray-800 */
    padding: 2rem;
    border-radius: 0.5rem;
    border: 1px solid #4a5568; /* border-gray-700 */
    max-width: 350px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(234, 179, 8, 0.2); /* yellow-400 shadow */
}

/* Prize Card Styles */
.prize-card {
    background-color: #1a202c; /* bg-gray-900 */
    padding: 2rem 1.5rem;
    border-radius: 0.5rem;
    border: 1px solid #4a5568; /* border-gray-700 */
    width: 100%;
    max-width: 320px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prize-card.main-prize {
    padding-top: 3rem;
    padding-bottom: 3rem;
    order: -1; /* Move to middle on mobile */
    border: 2px solid #fbbF24; /* yellow-400 */
    box-shadow: 0 0 30px rgba(251, 191, 36, 0.3);
    transform: scale(1.05);
}

@media (min-width: 768px) {
    .prize-card.main-prize {
        order: 0; /* Reset order for desktop */
        transform: scale(1.15) translateY(-1rem);
    }
    .prize-card:hover {
        transform: translateY(-10px) scale(1.02);
    }
    .prize-card.main-prize:hover {
        transform: scale(1.18) translateY(-1.5rem);
    }
}

/* Mobile Menu Transition */
#mobile-menu {
    transition: opacity 0.3s ease-in-out;
}
#mobile-menu.hidden {
    opacity: 0;
    pointer-events: none;
}
#mobile-menu:not(.hidden) {
    opacity: 1;
}

/* Form Styles */
.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background-color: #2d3748; /* bg-gray-800 */
    border: 1px solid #4a5568; /* border-gray-700 */
    border-radius: 0.375rem;
    color: white;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-input:focus {
    outline: none;
    border-color: #fbbf24; /* yellow-400 */
    box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.5);
}

.form-checkbox {
    background-color: #2d3748;
    border-color: #4a5568;
    color: #fbbf24; /* checked color */
}

/* FAQ Section Styles */
.faq-item {
    background-color: #1a202c; /* bg-gray-900 */
    border: 1px solid #4a5568; /* border-gray-700 */
    border-radius: 0.5rem;
    transition: background-color 0.2s;
}
.faq-item[open] {
    background-color: #2d3748; /* bg-gray-800 */
}

.faq-question {
    font-weight: 700;
    font-size: 1.125rem; /* text-lg */
    color: white;
    cursor: pointer;
    list-style: none; /* Hide default marker */
    position: relative;
    padding: 1.25rem 1.5rem;
    padding-right: 3rem; /* space for icon */
    display: block;
}

.faq-question::-webkit-details-marker {
    display: none; /* Hide default marker for Chrome/Safari */
}

.faq-question:focus {
    outline: none;
}

.faq-question::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 300;
    color: #fbbf24; /* yellow-400 */
    transition: transform 0.2s ease-in-out;
}

.faq-item[open] .faq-question::after {
    content: '−';
    transform: translateY(-50%);
}

.faq-answer {
    padding: 0 1.5rem 1.25rem 1.5rem;
    color: #cbd5e0; /* text-gray-400 */
    border-top: 1px solid #4a5568;
    line-height: 1.6;
}

/* Vote Option Buttons */
.vote-option-btn {
    background-color: #2d3748; /* bg-gray-800 */
    border: 1px solid #4a5568; /* border-gray-700 */
    color: #e2e8f0; /* text-gray-300 */
    padding: 0.5rem;
    border-radius: 0.375rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}
.vote-option-btn:hover {
    background-color: #4a5568; /* bg-gray-700 */
    border-color: #636e82;
}
.vote-option-btn.selected {
    background-color: #fbbf24; /* yellow-400 */
    color: #1a202c; /* bg-gray-900 */
    border-color: #fbbf24;
    transform: scale(1.05);
    box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
}

/* Contestant Card Styles */
.contestant-card {
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contestant-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(234, 179, 8, 0.25);
}

.contestant-card .p-6 {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Legal Page Content */
.legal-content h2 {
    border-bottom: 1px solid #4a5568; /* border-gray-700 */
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Scrollbar styling for modal */
#application-modal > div::-webkit-scrollbar {
    width: 8px;
}
#application-modal > div::-webkit-scrollbar-track {
    background: #2d3748; /* bg-gray-800 */
}
#application-modal > div::-webkit-scrollbar-thumb {
    background-color: #fbbf24; /* yellow-400 */
    border-radius: 10px;
    border: 2px solid #2d3748;
}

/* Competition Timeline Styles */
.timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 0;
}

.timeline::before {
    content: '';
    position: absolute;
    width: 3px;
    background-color: #4a5568; /* gray-700 */
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -1.5px;
    z-index: 0;
}

.timeline-item {
    padding: 10px 0;
    position: relative;
    width: 50%;
    text-align: right;
    padding-right: 30px; /* Space for dot and line */
    margin-bottom: 20px;
    z-index: 1;
}

.timeline-item:nth-child(even) {
    left: 50%;
    text-align: left;
    padding-left: 30px;
    padding-right: 0;
}

.timeline-item::before {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #fbbf24; /* yellow-400 */
    border: 2px solid #1a202c; /* bg-gray-900 */
    top: 20px;
    border-radius: 50%;
    z-index: 1;
}

.timeline-item:nth-child(odd)::before {
    right: -7.5px; /* Position dot on the line */
}

.timeline-item:nth-child(even)::before {
    left: -7.5px; /* Position dot on the line */
}

.timeline-date {
    font-size: 1.25rem; /* text-xl */
    font-weight: 700;
    color: #fbbf24; /* yellow-400 */
    margin-bottom: 5px;
}

.timeline-content {
    background-color: #2d3748; /* bg-gray-800 */
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #4a5568;
    color: #e2e8f0; /* text-gray-200 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* Arrow for timeline content */
.timeline-item:nth-child(odd) .timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -10px; /* Position arrow on the right */
    border-style: solid;
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent #2d3748; /* bg-gray-800 */
}

.timeline-item:nth-child(even) .timeline-content::after {
    content: '';
    position: absolute;
    top: 20px;
    left: -10px; /* Position arrow on the left */
    border-style: solid;
    border-width: 10px 10px 10px 0;
    border-color: transparent #2d3748 transparent transparent; /* bg-gray-800 */
}

/* Carousel Styles */
.carousel-container {
    max-height: 500px; /* Limit height for desktop */
    margin-top: -96px; /* Adjust to pull carousel up under header */
    width: 100%;
}

@media (max-width: 768px) {
    .carousel-container {
        max-height: 300px; /* Shorter on mobile */
        margin-top: -72px; /* Adjust for mobile header height */
    }
}

.carousel-slide {
    display: flex;
    width: 300%; /* For 3 images, each 100% width of the viewport */
    transition: transform 0.5s ease-in-out;
}

/* Individual slide item */
.carousel-slide-item {
    width: calc(100% / 3); /* Each slide item takes 1/3 of the carousel-slide width */
    height: 500px; /* Fixed height for consistency, adjust as needed */
    position: relative; /* For absolute positioning of overlay */
    overflow: hidden;
}

@media (max-width: 768px) {
    .carousel-slide-item {
        height: 300px;
    }
}

.carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the area, cropping if necessary */
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay for text readability */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

.carousel-cta-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px; /* rounded-full */
    font-weight: 700; /* font-bold */
    transition: background-color 0.3s ease;
    margin-top: 1rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 1rem;
    cursor: pointer;
    font-size: 2rem;
    z-index: 10;
    transition: background-color 0.3s ease;
    height: 100%;
    display: flex;
    align-items: center;
}

.carousel-btn.left-0 {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.carousel-btn.right-0 {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.carousel-btn:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.carousel-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.dot.active {
    background-color: #fbbf24; /* yellow-400 */
    transform: scale(1.2);
    border-color: #fbbf24;
}

/* Adjust for smaller screens */
@media (max-width: 768px) {
    .timeline::before {
        left: 20px; /* Move line to left on small screens */
        margin-left: 0;
    }

    .timeline-item {
        width: 100%;
        padding-left: 50px; /* Adjust padding for line and dot */
        padding-right: 0;
        text-align: left !important; /* Force left align */
    }

    .timeline-item:nth-child(odd),
    .timeline-item:nth-child(even) {
        left: 0;
        padding-right: 0;
    }

    .timeline-item::before {
        left: 12px; /* Position dot relative to the new line position */
    }

    .timeline-item:nth-child(odd) .timeline-content::after,
    .timeline-item:nth-child(even) .timeline-content::after {
        border-width: 10px 10px 10px 0;
        border-color: transparent #2d3748 transparent transparent;
        left: -10px;
        right: auto;
    }
}