/* Custom Styles for Award 2 Page */

/* ===== PURE CSS MARQUEE SECTION ===== */
.award-carousel-section {
    padding: 60px 0;
    background-color: #f0f4f8;
    overflow: hidden;
    /* Prevent horizontal scrollbar on body */
}

.award-carousel-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.award-carousel-section h2::after {
    content: "";
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--dark), var(--secondary), var(--secondary));
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    border-radius: 10px;
}

.marquee-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.marquee-track {
    display: flex;
    width: max-content;
    /* Let it expand to fit all items */
    gap: 30px;
    padding: 20px 0;
    animation: marquee-scroll 45s linear infinite;
    /* Adjust speed here */
}

.marquee-track:hover {
    animation-play-state: paused;
    /* Pause on hover */
}

.marquee-item {
    flex: 0 0 auto;
    width: 340px;
    height: 350px;
    background-color: #ffffff;
    border-radius: 12px;
    padding: 25px 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.marquee-img {
    height: 220px;
    width: 100%;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.marquee-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.marquee-text h5 {
    font-size: 18px;
    color: var(--dark);
    margin-bottom: 8px;
    line-height: 1.3;
}

.marquee-text p {
    font-size: 14px;
    color: #555;
    margin-bottom: 0;
    line-height: 1.4;
}

@keyframes marquee-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        /* Translates exactly half of the flex track (since we have 2 identical sets of items) */
        transform: translateX(calc(-50% - 15px));
        /* -15px to account for half the gap */
    }
}

@media (max-width: 768px) {
    .marquee-item {
        width: 240px;
        height: auto;
    }

    .marquee-item img {
        max-height: 250px;
    }

    .award-carousel-section h2 {
        font-size: 26px;
    }

    .marquee-track {
        padding-bottom: 100px;
    }
}


/* ===== AWARD CARDS GRID SECTION ===== */
.award-grid-section {
    padding: 60px 0;
    background-color: #f8f9fa;
}

.award-grid-section h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 40px;
    position: relative;
    display: inline-block;
}

.award-grid-section h2::after {
    content: "";
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--dark), var(--secondary), var(--secondary));
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
    border-radius: 10px;
}

/* Card Styling */
.award-card {
    display: flex;
    flex-direction: row;
    height: 100%;
    border-radius: 12px;
    overflow: visible;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
    background-color: #eeeeee;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.award-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.award-card-img {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0px;
    background-color: #eeeeee;
}

.award-card-img img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

/* Right side - Content */
.award-card-content {
    flex: 1;
    background-color: var(--primary);
    /* Solid dark blue */
    padding: 30px 30px 15px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

.award-card-content .award-year {
    position: absolute;
    top: -8px;
    left: 30px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
    line-height: 1;
    color: var(--dark);
    background: linear-gradient(to bottom, #f3d488, #d3a452);
    padding: 10px 15px 15px 15px;
    display: inline-flex;
    letter-spacing: 1px;
    clip-path: polygon(-20px -20px, 120% -20px, 120% 120%, 50% 85%, -20px 120%);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.award-card-content .award-year::before {
    content: "";
    position: absolute;
    top: 0;
    left: -8px;
    border-bottom: 8px solid #8a682b;
    border-left: 8px solid transparent;
}

.award-card-content .award-points {
    list-style-type: none;
    padding-left: 0;
    margin-bottom: 0;
}

.award-card-content .award-points li {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    padding-left: 15px;
}

.award-card-content .award-points li::before {
    content: "•";
    color: #ffffff;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
    position: absolute;
    left: 0;
}

/* Responsive adjustments */
@media (max-width: 991px) {
    .award-card {
        flex-direction: row;
        /* Keep image on left, text on right */
    }

    .award-card-img {
        flex: 0 0 40%;
        /* Maintain 40% width */
        height: auto;
        min-height: 200px;
    }

    .award-card-content {
        flex: 1;
        padding: 20px 15px;
    }

    .award-card-content .award-year {
        font-size: 16px;
        left: 20px;
        padding: 8px 12px 12px 12px;
    }

    .award-card-content .award-points li {
        font-size: 13px;
        margin-bottom: 10px;
    }
}

@media (max-width: 576px) {
    .award-card-img {
        flex: 0 0 35%;
        min-height: 160px;
    }

    .award-card-img img {
        height: 160px;
    }

    .award-card-content {
        padding-top: 22px;
    }

    .award-card-content .award-year {
        font-size: 14px;
        left: 15px;
        padding: 6px 10px 10px 10px;
    }

    .award-card-content .award-points li {
        font-size: 11px;
        margin-bottom: 6px;
        line-height: 1.3;
    }

    .award-card-content .award-points li::before {
        margin-left: 0em;
    }
}

.award-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}