/* Results Page Styles */
.results-page-container {
    padding: 60px 0;
    font-family: 'Montserrat', sans-serif;
    background-color: #f9f9f9;
}

.results-header {
    text-align: center;
    margin-bottom: 50px;
    animation: fadeInDown 0.8s ease-out;
}

.results-header h3 {
    font-size: 2.5rem;
    color: #2272bc;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.results-header h3::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: #2272bc;
    margin: 10px auto 0;
    border-radius: 2px;
}

/* Grid Layout - 3 Columns */
.results-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 0 15px;
    animation: fadeInUp 1s ease-out;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card Styles */
.result-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    /* Soft initial shadow */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    /* Bouncy effect */
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.02);
    max-width: 350px;
    margin: 0 auto;
}

/* Hover Effect: Floating Card */
.result-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    /* Deep shadow on hover */
    z-index: 2;
}

.result-card-image {
    position: relative;
    overflow: hidden;
    padding-top: 65%;
    /* Slightly taller image area */
}

/* Image Zoom */
.result-card-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    /* Smooth zoom */
}

.result-card:hover .result-card-image img {
    transform: scale(1.15);
    /* Slight zoom on hover */
}

/* Overlay effect on image (optional for readability/style) */
.result-card-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent 60%, rgba(0, 0, 0, 0.4));
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.result-card:hover .result-card-image::after {
    opacity: 0.3;
}

.result-card-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    background: #fff;
}

.result-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 20px;
    line-height: 1.4;
    min-height: 3.5em;
    transition: color 0.3s ease;
}

.result-card:hover .result-card-title {
    color: #2272bc;
}

.result-card-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Button Styles with Shine Effect */
.btn-result {
    display: inline-block;
    padding: 12px 20px;
    background-color: transparent;
    color: #2272bc;
    border: 2px solid #2272bc;
    border-radius: 50px;
    /* Rounded pill buttons */
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-result:hover {
    background-color: #2272bc;
    color: #fff;
    box-shadow: 0 5px 15px rgba(34, 114, 188, 0.4);
}

.btn-result.primary {
    background-color: #2272bc;
    color: #fff;
}

.btn-result.primary:hover {
    background-color: #1a5a96;
    border-color: #1a5a96;
    box-shadow: 0 5px 15px rgba(26, 90, 150, 0.4);
}

/* Shine Animation */
.btn-result::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s;
    z-index: -1;
    transform: skewX(-20deg);
}

.btn-result:hover::before {
    left: 100%;
    transition: left 0.7s;
}

/* Responsive */
@media (max-width: 992px) {
    .results-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .results-grid {
        grid-template-columns: 1fr;
    }
}