/* style/past-results.css */
.page-past-results {
    font-family: 'Arial', sans-serif;
    color: #343a40; /* Dark grey for general text, contrast 12.1:1 on #f8f9fa */
    line-height: 1.6;
    background-color: #f8f9fa; /* Light background */
}

.page-past-results__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-past-results__hero {
    background: linear-gradient(135deg, #007bff, #4da3ff); /* Gradient with main color and lighter variant */
    color: #ffffff; /* White text on blue background, contrast 4.53:1 */
    padding: 100px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-past-results__hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('[GALLERY:bg:abstract,geometric,pattern]') no-repeat center center/cover;
    opacity: 0.1;
    z-index: 0;
}

.page-past-results__hero .page-past-results__container {
    position: relative;
    z-index: 1;
}

.page-past-results__title {
    font-size: 3.5em;
    margin-bottom: 20px;
    font-weight: bold;
    color: #ffffff; /* White text on blue background, contrast 4.53:1 */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-past-results__subtitle {
    font-size: 1.4em;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #e9ecef; /* Lighter grey for subtitle on blue background, contrast 3.55:1 - adjusting to white */
    color: #ffffff; /* Adjusted to white for better contrast on blue background */
}

.page-past-results__section {
    padding: 60px 0;
    border-bottom: 1px solid #e9ecef;
}

.page-past-results__section:last-of-type {
    border-bottom: none;
}

.page-past-results__section-title {
    font-size: 2.5em;
    color: #007bff; /* Main brand color, contrast 4.53:1 on #f8f9fa */
    text-align: center;
    margin-bottom: 40px;
    font-weight: bold;
    position: relative;
}

.page-past-results__section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: #ffc107; /* Auxiliary color */
    margin: 15px auto 0 auto;
    border-radius: 2px;
}

.page-past-results__text-center {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.1em;
    color: #555; /* Dark grey, contrast 9.09:1 on #f8f9fa */
}

.page-past-results__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-past-results__feature-item,
.page-past-results__cta-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-past-results__feature-item:hover,
.page-past-results__cta-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-past-results__feature-icon,
.page-past-results__cta-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.page-past-results__feature-title,
.page-past-results__cta-title {
    font-size: 1.8em;
    color: #007bff; /* Main brand color, contrast 4.53:1 on white */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-past-results__game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.page-past-results__game-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.page-past-results__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.page-past-results__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 1px solid #e9ecef;
}

.page-past-results__game-card h3 {
    font-size: 1.6em;
    color: #007bff; /* Main brand color, contrast 4.53:1 on white */
    margin: 20px 15px 10px 15px;
    font-weight: bold;
}

.page-past-results__game-description {
    padding: 0 20px 20px 20px;
    color: #6c757d; /* Dark grey, contrast 6.09:1 on white */
    flex-grow: 1;
}

.page-past-results__game-card .page-past-results__btn {
    margin: 0 20px 20px 20px;
}

.page-past-results__steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    counter-reset: step-counter;
}

.page-past-results__step-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    text-align: center;
    position: relative;
    padding-top: 60px;
}

.page-past-results__step-number {
    counter-increment: step-counter;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ffc107; /* Auxiliary color */
    color: #343a40; /* Dark text for contrast on auxiliary color, contrast 4.55:1 */
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    font-weight: bold;
    border: 3px solid #007bff; /* Main color border */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-past-results__step-title {
    font-size: 1.6em;
    color: #007bff; /* Main brand color, contrast 4.53:1 on white */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-past-results__list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.page-past-results__list li {
    background-color: #ffffff;
    margin-bottom: 10px;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 5px solid #007bff; /* Main color highlight */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    font-size: 1.1em;
    color: #343a40; /* Dark grey, contrast 12.1:1 on white */
}

.page-past-results__list li strong {
    color: #0056b3; /* Darker main color, contrast 6.99:1 on white */
}

.page-past-results__faq-item {
    background-color: #ffffff;
    margin-bottom: 15px;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-past-results__faq-question {
    font-size: 1.5em;
    color: #007bff; /* Main brand color, contrast 4.53:1 on white */
    margin-bottom: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-past-results__faq-question::after {
    content: '+';
    font-size: 1.2em;
    font-weight: bold;
    transition: transform 0.3s ease;
}

.page-past-results__faq-question.active::after {
    content: '-';
    transform: rotate(180deg);
}

.page-past-results__faq-answer {
    font-size: 1.1em;
    color: #555; /* Dark grey, contrast 9.09:1 on white */
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding-top: 0;
}

.page-past-results__faq-answer.active {
    max-height: 200px; /* Adjust as needed */
    padding-top: 15px;
}

/* Buttons */
.page-past-results__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    font-size: 1.1em;
    text-align: center;
    cursor: pointer;
    border: none;
}

.page-past-results__btn--primary {
    background-color: #007bff; /* Main color */
    color: #ffffff; /* White text on blue background, contrast 4.53:1 */
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.4);
}

.page-past-results__btn--primary:hover {
    background-color: #0056b3; /* Darker main color */
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.6);
    transform: translateY(-2px);
}

.page-past-results__btn--secondary {
    background-color: #ffc107; /* Auxiliary color */
    color: #343a40; /* Dark text for contrast on auxiliary color, contrast 4.55:1 */
    box-shadow: 0 4px 10px rgba(255, 193, 7, 0.4);
}

.page-past-results__btn--secondary:hover {
    background-color: #e0a800; /* Darker auxiliary color */
    box-shadow: 0 6px 15px rgba(255, 193, 7, 0.6);
    transform: translateY(-2px);
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-past-results__title {
        font-size: 2.8em;
    }
    .page-past-results__subtitle {
        font-size: 1.2em;
    }
    .page-past-results__section-title {
        font-size: 2em;
    }
    .page-past-results__grid,
    .page-past-results__game-list,
    .page-past-results__steps-grid {
        grid-template-columns: 1fr;
    }
    .page-past-results__hero {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .page-past-results__hero {
        padding: 60px 0;
    }
    .page-past-results__title {
        font-size: 2.2em;
    }
    .page-past-results__subtitle {
        font-size: 1em;
    }
    .page-past-results__section-title {
        font-size: 1.8em;
    }
    .page-past-results__feature-item,
    .page-past-results__cta-item,
    .page-past-results__game-card,
    .page-past-results__step-item,
    .page-past-results__faq-item {
        padding: 20px;
    }
    .page-past-results__feature-title,
    .page-past-results__cta-title {
        font-size: 1.5em;
    }
    .page-past-results__game-card h3 {
        font-size: 1.4em;
    }
    .page-past-results__faq-question {
        font-size: 1.3em;
    }
    .page-past-results__btn {
        padding: 10px 20px;
        font-size: 1em;
    }
}

@media (max-width: 576px) {
    .page-past-results__hero {
        padding: 40px 0;
    }
    .page-past-results__title {
        font-size: 1.8em;
    }
    .page-past-results__section-title {
        font-size: 1.5em;
    }
    .page-past-results__feature-icon,
    .page-past-results__cta-icon {
        width: 60px;
        height: 60px;
    }
    .page-past-results__step-number {
        width: 40px;
        height: 40px;
        font-size: 1.5em;
        top: -15px;
    }
}