﻿.award-section {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 35px 40px 80px;
    font-family: "Kanit", sans-serif;
    background: radial-gradient( circle at 10% 20%, rgba(32, 24, 63, 0.035), transparent 30% ), radial-gradient( circle at 90% 80%, rgba(196, 166, 90, 0.045), transparent 30% );
}


/* =========================================================
   PAGE TITLE
========================================================= */

.award-title {
    position: relative;
    width: 82%;
    margin: 0 auto 40px;
    padding: 20px 30px;
    color: #fff;
    text-align: center;
    background: linear-gradient( 135deg, #17112f 0%, #241b47 50%, #30235a 100% );
    border-radius: 4px;
    box-shadow: 0 15px 35px rgba(32, 24, 63, 0.18);
    overflow: hidden;
}


    /* Gold line */

    .award-title::before {
        content: "";
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 90px;
        height: 3px;
        background: linear-gradient( 90deg, transparent, #c8a95b, transparent );
    }


    /* Decorative circle */

    .award-title::after {
        content: "";
        position: absolute;
        width: 220px;
        height: 220px;
        top: -150px;
        right: -60px;
        border-radius: 50%;
        background: rgba(255,255,255,0.05);
    }


    .award-title h2 {
        position: relative;
        z-index: 2;
        margin: 0;
        font-size: 28px;
        font-weight: 500;
        letter-spacing: .5px;
    }


/* =========================================================
   CATEGORY NAVIGATION
========================================================= */

.award-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    max-width: 1250px;
    margin: 0 auto 35px;
    border-bottom: 1px solid rgba(32,24,63,0.12);
}


.award-tab {
    position: relative;
    padding: 15px 20px 18px;
    text-align: center;
    color: #777;
    font-size: 18px;
    font-weight: 500;
    transition: all .3s ease;
    cursor: pointer;
}


    /* Active */

    .award-tab.active {
        color: #241b47;
    }


        .award-tab.active::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: -1px;
            transform: translateX(-50%);
            width: 75px;
            height: 3px;
            border-radius: 10px;
            background: linear-gradient( 90deg, #b08b3c, #dfc77f );
        }


    .award-tab:hover {
        color: #241b47;
    }


/* =========================================================
   AWARD GRID
========================================================= */

.award-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
    max-width: 1250px;
    margin: 0 auto;
}


/* =========================================================
   AWARD CARD
========================================================= */

.award-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(32,24,63,0.08);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(32,24,63,0.07);
    transition: transform .35s ease, box-shadow .35s ease;
}


    /* Top Gold line */

    .award-card::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 3px;
        background: linear-gradient( 90deg, #20183f, #c4a65a, #20183f );
        z-index: 3;
    }


    /* Hover */

    .award-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 22px 45px rgba(32,24,63,0.14);
    }


/* =========================================================
   IMAGE CONTAINER
========================================================= */

.award-image {
    position: relative;
    width: 100%;
    height: 390px;
    padding: 18px;
    background: linear-gradient( 145deg, #f7f6fa, #ffffff );
    display: flex;
    align-items: center;
    justify-content: center;
}


    /* Image */

    .award-image img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        display: block;
        border-radius: 7px;
        transition: transform .5s ease;
    }


.award-card:hover .award-image img {
    transform: scale(1.025);
}


/* =========================================================
   IMAGE OVERLAY
========================================================= */

.award-image::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(196,166,90,0.35);
    border-radius: 7px;
    pointer-events: none;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.award-content {
    position: relative;
    padding: 20px 22px 24px;
    background: #fff;
    border-top: 1px solid rgba(32,24,63,0.06);
}


    .award-content h3 {
        margin: 0 0 7px;
        color: #241b47;
        font-size: 18px;
        font-weight: 500;
        line-height: 1.45;
    }


    .award-content p {
        margin: 0;
        color: #777;
        font-size: 13px;
        line-height: 1.6;
    }


    /* Gold small line */

    .award-content h3::before {
        content: "";
        display: inline-block;
        width: 25px;
        height: 2px;
        margin-right: 8px;
        vertical-align: middle;
        background: #c4a65a;
    }


/* =========================================================
   BADGE
========================================================= */

.award-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    padding: 5px 12px;
    color: #fff;
    font-size: 11px;
    border-radius: 20px;
    background: rgba(32,24,63,0.88);
    backdrop-filter: blur(5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}


/* =========================================================
   BROKEN IMAGE FALLBACK
========================================================= */

.award-image img[src=""],
.award-image img:not([src]) {
    display: none;
}


/* =========================================================
   SECTION DIVIDER
========================================================= */

.award-divider {
    width: 100%;
    max-width: 1250px;
    height: 1px;
    margin: 45px auto 0;
    background: linear-gradient( 90deg, transparent, rgba(196,166,90,0.5), transparent );
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .award-section {
        padding: 30px 25px 60px;
    }

    .award-title {
        width: 90%;
    }

    .award-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .award-image {
        height: 360px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 650px) {

    .award-section {
        padding: 25px 15px 50px;
    }


    .award-title {
        width: 100%;
        margin-bottom: 25px;
        padding: 16px 15px;
    }


        .award-title h2 {
            font-size: 22px;
        }


    .award-tabs {
        grid-template-columns: 1fr;
        margin-bottom: 25px;
    }


    .award-tab {
        padding: 12px;
        font-size: 16px;
    }


    .award-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }


    .award-image {
        height: auto;
        min-height: 350px;
        padding: 15px;
    }


    .award-content {
        padding: 17px 18px 20px;
    }


        .award-content h3 {
            font-size: 17px;
        }
}
