/* IFX Awards Plugin Styles */

.ifx-awards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-column-gap: 30px;
    column-gap: 30px;
    grid-row-gap: 15px;
    row-gap: 15px;
    align-items: start;
}

.ifx-award-item {
    background: #F5F5F7;
    border-radius: 24px;
    /* overflow: hidden; */
    cursor: pointer;
    padding: 32px;
    border: 1px solid transparent;
    transition: border 0.3s ease;
    position: relative;
	height: 100%;
}

.ifx-award-item::after {
    content: '';
    width: 0px;
    height: 0px;
    border-style: solid;
    border-width: 0 14px 18px 14px;
    border-color: transparent transparent #ED1C24 transparent;
    position: absolute;
    bottom: -18px;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* .ifx-award-item:hover, */
.ifx-award-item.active {
    border: 1px solid #ED1C24;
}

@media screen and (min-width: 1180px) {
	.ifx-award-item:hover {
		border: 1px solid #ED1C24;
	}
}

.ifx-award-item.active::after {
    opacity: 1;
}

.ifx-award-image {
    text-align: center;
    display: flex;
    justify-content: center;
}

.ifx-award-thumbnail {
    width: 100%;
    max-width: 230px !important;
    height: 230px;
    object-fit: contain;
}

.ifx-award-title {
    font-family: Inter;
    font-weight: 500;
    font-size: 22px;
    line-height: 27px;
    text-align: center;
    text-transform: capitalize;
    margin: 0;
    margin-top: 49px;
}

/* Expanded Content Styles */
.ifx-awards-expanded-row {
    grid-column: 1 / -1;
    /* Span all columns */
    width: 100%;
}

.ifx-award-expanded-content {
    width: 100%;
    background: #F5F5F7;
    border-radius: 24px;
    overflow: hidden;
    padding: 24px;
	margin: 15px 0;
}

.ifx-award-expanded-inner {
    position: relative;
}

.ifx-award-content-title {
    font-family: Inter;
    font-weight: 400;
    font-size: 22px;
    line-height: 100%;
    text-transform: capitalize;
    margin-bottom: 8px;
	
}

.ifx-award-content-title p {
    margin: 0;
    color: #2F2C2B;
}


.ifx-award-content-subtitle *,
.ifx-award-content-subtitle {
    font-family: Inter;
    font-weight: 400;
    font-size: 22px;
    line-height: 27px;
    text-transform: capitalize;
	letter-spacing:0px;
}


.ifx-award-content-subtitle * {
    margin-bottom: 0;
    color: #2F2C2B;
}

.ifx-award-description {
    margin: 24px 0 0;
    font-family: Inter;
    font-weight: 400;
    font-size: 16px;
    line-height: 24px;
    letter-spacing: 0%;
    color: #2F2C2B;
}

.ifx-award-close-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.ifx-award-close-btn:hover {
    background: #c82333;
}

/* Load More Button Styles */
.ifx-awards-load-more-container {
    text-align: center;
    margin-top: 40px;
}


#ifx-load-more-btn:hover,
#ifx-load-more-btn {
    background: #fff;
    color: #006DFE;
    font-family: Inter;
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: center;
	margin-bottom:80px;
}

#ifx-load-more-btn .ifx-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ifx-awards-load-more-container {
    display: flex;
    justify-content: center;
}

#ifx-load-more-btn:disabled {
    /* background: #ccc; */
    cursor: not-allowed;
    transform: none;
    opacity: 0.4;
}

#ifx-load-more-btn.loading {
    background: #999;
    cursor: wait;
}

#ifx-load-more-btn.loading::after {
    content: '...';
    animation: dots 1s infinite;
}

@keyframes dots {

    0%,
    20% {
        content: '';
    }

    40% {
        content: '.';
    }

    60% {
        content: '..';
    }

    80%,
    100% {
        content: '...';
    }
}

/* Mobile Description Styles */
.ifx-award-mobile-description {
    display: none;
    width: 100%;
    background: #F5F5F7;
    border-radius: 24px;
    margin-top: 10px;
    overflow: hidden;
}

.ifx-award-mobile-inner {
    padding: 24px;
    position: relative;
}

.ifx-award-mobile-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 15px;
    padding: 5px 10px;
    font-size: 0.8rem;
    cursor: pointer;
}

/* Responsive design */
@media (min-width: 1025px) {

    /* Desktop: Use the expanded row system */
    .ifx-award-mobile-description {
        display: none !important;
    }

    .ifx-awards-expanded-row {
        display: block;
    }
}

@media (max-width: 1024px) {

    /* Mobile/Tablet: Use inline descriptions */
    .ifx-awards-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .ifx-awards-expanded-row {
        display: none !important;
    }

    .ifx-award-mobile-description {
        display: block;
        grid-column: 1;
		text-align:left;
    }

    .ifx-award-title {
        font-size: 22px;
    }

    .ifx-award-content-title {
        font-size: 22px;
    }

    .ifx-award-content-subtitle {
        font-size: 22px;
    }
}
